diff --git a/pom.xml b/pom.xml
index a3314daf54..ce1a1cd63f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,7 +35,7 @@
${project.build.directory}/alf_data
convert
- 7.3
+ 7.4
7.3
8.9
1.1
diff --git a/src/main/java/org/alfresco/repo/web/scripts/bean/AbstractLoginBean.java b/src/main/java/org/alfresco/repo/web/scripts/bean/AbstractLoginBean.java
index 45e3d2d068..660d92482b 100644
--- a/src/main/java/org/alfresco/repo/web/scripts/bean/AbstractLoginBean.java
+++ b/src/main/java/org/alfresco/repo/web/scripts/bean/AbstractLoginBean.java
@@ -1,28 +1,28 @@
-/*
- * #%L
- * Alfresco Remote API
- * %%
- * Copyright (C) 2005 - 2016 Alfresco Software Limited
- * %%
- * This file is part of the Alfresco software.
- * If the software was purchased under a paid Alfresco license, the terms of
- * the paid license agreement will prevail. Otherwise, the software is
- * provided under the following open source license terms:
- *
- * Alfresco is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Alfresco is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with Alfresco. If not, see .
- * #L%
- */
+/*
+ * #%L
+ * Alfresco Remote API
+ * %%
+ * Copyright (C) 2005 - 2016 Alfresco Software Limited
+ * %%
+ * This file is part of the Alfresco software.
+ * If the software was purchased under a paid Alfresco license, the terms of
+ * the paid license agreement will prevail. Otherwise, the software is
+ * provided under the following open source license terms:
+ *
+ * Alfresco is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Alfresco is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with Alfresco. If not, see .
+ * #L%
+ */
package org.alfresco.repo.web.scripts.bean;
import java.util.Date;
@@ -31,10 +31,10 @@ import java.util.Map;
import javax.servlet.http.HttpServletResponse;
-import org.alfresco.events.types.Event;
-import org.alfresco.events.types.RepositoryEventImpl;
-import org.alfresco.repo.events.EventPreparator;
-import org.alfresco.repo.events.EventPublisher;
+import org.alfresco.sync.events.types.Event;
+import org.alfresco.sync.events.types.RepositoryEventImpl;
+import org.alfresco.sync.repo.events.EventPreparator;
+import org.alfresco.sync.repo.events.EventPublisher;
import org.alfresco.repo.security.authentication.AuthenticationException;
import org.alfresco.repo.security.authentication.AuthenticationUtil;
import org.alfresco.service.cmr.security.AuthenticationService;
diff --git a/src/main/java/org/alfresco/repo/web/scripts/content/ContentStreamer.java b/src/main/java/org/alfresco/repo/web/scripts/content/ContentStreamer.java
index 3816c9ba69..efbd743aa4 100644
--- a/src/main/java/org/alfresco/repo/web/scripts/content/ContentStreamer.java
+++ b/src/main/java/org/alfresco/repo/web/scripts/content/ContentStreamer.java
@@ -41,7 +41,7 @@ import javax.servlet.http.HttpServletResponse;
import org.alfresco.model.ContentModel;
import org.alfresco.repo.content.MimetypeMap;
import org.alfresco.repo.content.filestore.FileContentReader;
-import org.alfresco.repo.events.EventPublisher;
+import org.alfresco.sync.repo.events.EventPublisher;
import org.alfresco.repo.web.util.HttpRangeProcessor;
import org.alfresco.rest.framework.resource.content.CacheDirective;
import org.alfresco.service.cmr.repository.ContentIOException;
diff --git a/src/main/java/org/alfresco/repo/webdav/ActivityPosterImpl.java b/src/main/java/org/alfresco/repo/webdav/ActivityPosterImpl.java
index 544eac7bb9..3a1e6486bf 100644
--- a/src/main/java/org/alfresco/repo/webdav/ActivityPosterImpl.java
+++ b/src/main/java/org/alfresco/repo/webdav/ActivityPosterImpl.java
@@ -1,35 +1,35 @@
-/*
- * #%L
- * Alfresco Remote API
- * %%
- * Copyright (C) 2005 - 2016 Alfresco Software Limited
- * %%
- * This file is part of the Alfresco software.
- * If the software was purchased under a paid Alfresco license, the terms of
- * the paid license agreement will prevail. Otherwise, the software is
- * provided under the following open source license terms:
- *
- * Alfresco is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Alfresco is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with Alfresco. If not, see .
- * #L%
- */
+/*
+ * #%L
+ * Alfresco Remote API
+ * %%
+ * Copyright (C) 2005 - 2016 Alfresco Software Limited
+ * %%
+ * This file is part of the Alfresco software.
+ * If the software was purchased under a paid Alfresco license, the terms of
+ * the paid license agreement will prevail. Otherwise, the software is
+ * provided under the following open source license terms:
+ *
+ * Alfresco is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Alfresco is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with Alfresco. If not, see .
+ * #L%
+ */
package org.alfresco.repo.webdav;
import javax.servlet.http.HttpServletResponse;
import org.alfresco.error.AlfrescoRuntimeException;
-import org.alfresco.repo.Client;
-import org.alfresco.repo.Client.ClientType;
+import org.alfresco.sync.repo.Client;
+import org.alfresco.sync.repo.Client.ClientType;
import org.alfresco.repo.activities.ActivityType;
import org.alfresco.service.cmr.activities.ActivityPoster;
import org.alfresco.service.cmr.model.FileInfo;
diff --git a/src/main/java/org/alfresco/repo/webdav/WebDAVHelper.java b/src/main/java/org/alfresco/repo/webdav/WebDAVHelper.java
index 35ecf68fd5..34e7fc0cce 100644
--- a/src/main/java/org/alfresco/repo/webdav/WebDAVHelper.java
+++ b/src/main/java/org/alfresco/repo/webdav/WebDAVHelper.java
@@ -39,15 +39,15 @@ import java.util.regex.Pattern;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import org.alfresco.events.types.ContentEvent;
-import org.alfresco.events.types.ContentEventImpl;
-import org.alfresco.events.types.Event;
+import org.alfresco.sync.events.types.ContentEvent;
+import org.alfresco.sync.events.types.ContentEventImpl;
+import org.alfresco.sync.events.types.Event;
import org.alfresco.jlan.util.IPAddress;
import org.alfresco.model.ContentModel;
-import org.alfresco.repo.Client;
-import org.alfresco.repo.Client.ClientType;
-import org.alfresco.repo.events.EventPreparator;
-import org.alfresco.repo.events.EventPublisher;
+import org.alfresco.sync.repo.Client;
+import org.alfresco.sync.repo.Client.ClientType;
+import org.alfresco.sync.repo.events.EventPreparator;
+import org.alfresco.sync.repo.events.EventPublisher;
import org.alfresco.repo.lock.LockUtils;
import org.alfresco.repo.model.filefolder.HiddenAspect;
import org.alfresco.repo.policy.BehaviourFilter;
diff --git a/src/main/java/org/alfresco/rest/api/Activities.java b/src/main/java/org/alfresco/rest/api/Activities.java
index 1a7abcf8b9..590f5c236e 100644
--- a/src/main/java/org/alfresco/rest/api/Activities.java
+++ b/src/main/java/org/alfresco/rest/api/Activities.java
@@ -23,27 +23,27 @@
* along with Alfresco. If not, see .
* #L%
*/
-package org.alfresco.rest.api;
-
-import java.util.Map;
-
-import org.alfresco.repo.Client;
-import org.alfresco.repo.domain.activities.ActivityFeedEntity;
-import org.alfresco.rest.api.model.Activity;
-import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo;
-import org.alfresco.rest.framework.resource.parameters.Parameters;
-import org.json.JSONException;
-
-public interface Activities
-{
+package org.alfresco.rest.api;
+
+import java.util.Map;
+
+import org.alfresco.sync.repo.Client;
+import org.alfresco.repo.domain.activities.ActivityFeedEntity;
+import org.alfresco.rest.api.model.Activity;
+import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo;
+import org.alfresco.rest.framework.resource.parameters.Parameters;
+import org.json.JSONException;
+
+public interface Activities
+{
static final String APP_TOOL = "restapi";
static final Client RESTAPI_CLIENT = Client.asType(Client.ClientType.restapi);
- public static enum ActivityWho
- {
- me, others;
- };
-
- public Map getActivitySummary(ActivityFeedEntity entity) throws JSONException;
- public CollectionWithPagingInfo getUserActivities(String personId, final Parameters parameters);
-}
+ public static enum ActivityWho
+ {
+ me, others;
+ };
+
+ public Map getActivitySummary(ActivityFeedEntity entity) throws JSONException;
+ public CollectionWithPagingInfo getUserActivities(String personId, final Parameters parameters);
+}
diff --git a/src/main/java/org/alfresco/rest/api/impl/node/ratings/AbstractRatingScheme.java b/src/main/java/org/alfresco/rest/api/impl/node/ratings/AbstractRatingScheme.java
index 471fd49bf7..47773b6ad0 100644
--- a/src/main/java/org/alfresco/rest/api/impl/node/ratings/AbstractRatingScheme.java
+++ b/src/main/java/org/alfresco/rest/api/impl/node/ratings/AbstractRatingScheme.java
@@ -1,28 +1,28 @@
-/*
- * #%L
- * Alfresco Remote API
- * %%
- * Copyright (C) 2005 - 2016 Alfresco Software Limited
- * %%
- * This file is part of the Alfresco software.
- * If the software was purchased under a paid Alfresco license, the terms of
- * the paid license agreement will prevail. Otherwise, the software is
- * provided under the following open source license terms:
- *
- * Alfresco is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Alfresco is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with Alfresco. If not, see .
- * #L%
- */
+/*
+ * #%L
+ * Alfresco Remote API
+ * %%
+ * Copyright (C) 2005 - 2016 Alfresco Software Limited
+ * %%
+ * This file is part of the Alfresco software.
+ * If the software was purchased under a paid Alfresco license, the terms of
+ * the paid license agreement will prevail. Otherwise, the software is
+ * provided under the following open source license terms:
+ *
+ * Alfresco is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Alfresco is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with Alfresco. If not, see .
+ * #L%
+ */
package org.alfresco.rest.api.impl.node.ratings;
import java.io.UnsupportedEncodingException;
@@ -30,7 +30,7 @@ import java.net.URLEncoder;
import java.util.Date;
import org.alfresco.model.ContentModel;
-import org.alfresco.repo.Client;
+import org.alfresco.sync.repo.Client;
import org.alfresco.repo.security.authentication.AuthenticationUtil;
import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork;
import org.alfresco.rest.api.model.DocumentRatingSummary;
@@ -230,7 +230,7 @@ public abstract class AbstractRatingScheme implements RatingScheme, Initializing
JSONObject activityData = getActivityData(nodeRef, siteId);
if(activityData != null)
{
- activityService.postActivity(activityType, siteId, "nodeRatings", activityData.toString(), Client.asType(Client.ClientType.restapi));
+ activityService.postActivity(activityType, siteId, "nodeRatings", activityData.toString(), Client.asType(Client.ClientType.restapi));
}
}
}
diff --git a/src/test/java/org/alfresco/rest/api/tests/BaseCustomModelApiTest.java b/src/test/java/org/alfresco/rest/api/tests/BaseCustomModelApiTest.java
index c3fb09aec5..18ad636b48 100644
--- a/src/test/java/org/alfresco/rest/api/tests/BaseCustomModelApiTest.java
+++ b/src/test/java/org/alfresco/rest/api/tests/BaseCustomModelApiTest.java
@@ -2,7 +2,7 @@
* #%L
* Alfresco Remote API
* %%
- * Copyright (C) 2005 - 2016 Alfresco Software Limited
+ * Copyright (C) 2005 - 2018 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
@@ -30,6 +30,7 @@ import static org.junit.Assert.assertTrue;
import org.alfresco.repo.dictionary.CustomModelServiceImpl;
import org.alfresco.repo.security.authentication.AuthenticationUtil;
+import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork;
import org.alfresco.repo.transaction.RetryingTransactionHelper;
import org.alfresco.repo.transaction.RetryingTransactionHelper.RetryingTransactionCallback;
import org.alfresco.rest.api.model.AbstractClassModel;
@@ -94,16 +95,14 @@ public class BaseCustomModelApiTest extends AbstractBaseApiTest
this.customModelAdmin = createUser("customModelAdmin" + System.currentTimeMillis(), "password", null);
users.add(nonAdminUserName);
users.add(customModelAdmin);
-
+
// Add 'customModelAdmin' user into 'ALFRESCO_MODEL_ADMINISTRATORS' group
- transactionHelper.doInTransaction(new RetryingTransactionCallback()
- {
- @Override
- public Void execute() throws Throwable
- {
+ AuthenticationUtil.runAsSystem((RunAsWork) () -> {
+ transactionHelper.doInTransaction((RetryingTransactionCallback) () -> {
authorityService.addAuthority(CustomModelServiceImpl.GROUP_ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY, customModelAdmin);
return null;
- }
+ });
+ return null;
});
}