diff --git a/services/src/main/java/org/exoplatform/onlyoffice/OnlyofficeEditorServiceImpl.java b/services/src/main/java/org/exoplatform/onlyoffice/OnlyofficeEditorServiceImpl.java index 69fbfad99..7fabf752a 100644 --- a/services/src/main/java/org/exoplatform/onlyoffice/OnlyofficeEditorServiceImpl.java +++ b/services/src/main/java/org/exoplatform/onlyoffice/OnlyofficeEditorServiceImpl.java @@ -133,7 +133,6 @@ import org.exoplatform.services.wcm.utils.WCMCoreUtils; import org.exoplatform.social.core.activity.model.ExoSocialActivity; import org.exoplatform.social.core.activity.model.ExoSocialActivityImpl; -import org.exoplatform.social.core.application.SpaceActivityPublisher; import org.exoplatform.social.core.identity.provider.OrganizationIdentityProvider; import org.exoplatform.social.core.manager.ActivityManager; import org.exoplatform.social.core.manager.IdentityManager; @@ -164,6 +163,8 @@ public class OnlyofficeEditorServiceImpl implements OnlyofficeEditorService, Sta /** The Constant UTF_8. */ private static final String UTF_8 = "utf-8"; + public static final String SPACE_APP_ID = "exosocial:spaces"; + /** The Constant RANDOM. */ protected static final Random RANDOM = new Random(); @@ -2361,7 +2362,7 @@ protected String addComment(String activityId, String commentText, String userId false); ExoSocialActivity activity = activityManager.getActivity(activityId); ExoSocialActivity comment = new ExoSocialActivityImpl(identity.getId(), - SpaceActivityPublisher.SPACE_APP_ID, + SPACE_APP_ID, commentText, null); activityManager.saveComment(activity, comment); diff --git a/services/src/test/java/org/exoplatform/onlyoffice/mock/SpaceServiceMock.java b/services/src/test/java/org/exoplatform/onlyoffice/mock/SpaceServiceMock.java index dad38ae7e..bcfa4f9d2 100644 --- a/services/src/test/java/org/exoplatform/onlyoffice/mock/SpaceServiceMock.java +++ b/services/src/test/java/org/exoplatform/onlyoffice/mock/SpaceServiceMock.java @@ -5,7 +5,6 @@ import org.exoplatform.commons.utils.ListAccess; import org.exoplatform.social.core.application.PortletPreferenceRequiredPlugin; import org.exoplatform.social.core.identity.model.Identity; -import org.exoplatform.social.core.space.SpaceApplicationConfigPlugin; import org.exoplatform.social.core.space.SpaceException; import org.exoplatform.social.core.space.SpaceFilter; import org.exoplatform.social.core.space.SpaceListAccess; @@ -207,16 +206,6 @@ public void registerSpaceListenerPlugin(SpaceListenerPlugin spaceListenerPlugin) public void unregisterSpaceListenerPlugin(SpaceListenerPlugin spaceListenerPlugin) { } - - public void setSpaceApplicationConfigPlugin(SpaceApplicationConfigPlugin spaceApplicationConfigPlugin) { - } - - - public SpaceApplicationConfigPlugin getSpaceApplicationConfigPlugin() { - return null; - } - - public List getAllSpaces() throws SpaceException { return null; }