Skip to content

Commit

Permalink
fix: Adapt Space Service API changes - MEED-7663 - Meeds-io/MIPs#150
Browse files Browse the repository at this point in the history
This change will adapt Space Service API changes to remove the usage of applications management inside spaces that is replaced by pages layout management.
  • Loading branch information
boubaker authored and rdenarie committed Nov 4, 2024
1 parent b4731ad commit cda6a2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<Space> getAllSpaces() throws SpaceException {
return null;
}
Expand Down

0 comments on commit cda6a2d

Please sign in to comment.