Skip to content

Commit

Permalink
feat: Cleanup Portal API from Deprecated items - MEED-7669 - Meeds-io…
Browse files Browse the repository at this point in the history
  • Loading branch information
boubaker authored and exo-swf committed Nov 4, 2024
1 parent a3ce935 commit c474e82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ protected Set<String> getReceiver(TaskDto task, NotificationContext ctx) {
}

protected String getPortalOwner() {
return CommonsUtils.getService(UserPortalConfigService.class).getDefaultPortal();
return CommonsUtils.getService(UserPortalConfigService.class).getMetaPortal();
}

private String buildTaskUrl(TaskDto t, ExoContainer container, WebAppController controller) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,16 @@
import org.exoplatform.container.ExoContainer;
import org.exoplatform.container.ExoContainerContext;
import org.exoplatform.container.PortalContainer;
import org.exoplatform.portal.application.PortalRequestContext;
import org.exoplatform.portal.application.RequestNavigationData;
import org.exoplatform.portal.config.UserPortalConfigService;
import org.exoplatform.portal.mop.SiteKey;
import org.exoplatform.portal.mop.SiteType;
import org.exoplatform.portal.mop.navigation.NavigationContext;
import org.exoplatform.portal.mop.navigation.NavigationService;
import org.exoplatform.portal.mop.navigation.NodeContext;
import org.exoplatform.portal.mop.navigation.NodeModel;
import org.exoplatform.portal.mop.navigation.Scope;
import org.exoplatform.portal.webui.util.Util;
import org.exoplatform.social.common.router.ExoRouter;
import org.exoplatform.portal.mop.service.NavigationService;
import org.exoplatform.social.core.space.SpaceUtils;
import org.exoplatform.social.core.space.model.Space;
import org.exoplatform.social.core.space.spi.SpaceService;
import org.exoplatform.web.WebAppController;
import org.exoplatform.web.controller.QualifiedName;
import org.exoplatform.web.controller.router.Router;
Expand Down Expand Up @@ -121,7 +116,7 @@ public static String buildBaseURL() {
Space space = null;
WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
if (context == null) {
siteKey = SiteKey.portal(portalConfigService.getDefaultPortal());
siteKey = SiteKey.portal(portalConfigService.getMetaPortal());
} else {
siteKey = CommonsUtils.getCurrentSite();
space = SpaceUtils.getSpaceByContext();
Expand Down

0 comments on commit c474e82

Please sign in to comment.