Class SpaceLayoutService

java.lang.Object
io.meeds.social.space.service.SpaceLayoutService

@Service public class SpaceLayoutService extends Object
  • Field Details

  • Constructor Details

    • SpaceLayoutService

      public SpaceLayoutService(org.exoplatform.social.core.space.spi.SpaceService spaceService, SpaceTemplateService spaceTemplateService, org.exoplatform.portal.config.UserPortalConfigService portalConfigService, org.exoplatform.portal.mop.service.LayoutService layoutService, org.exoplatform.portal.mop.service.NavigationService navigationService)
  • Method Details

    • createSpaceSite

      public void createSpaceSite(org.exoplatform.social.core.space.model.Space space) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Create a Space site switch designated templateId characteristics
      Parameters:
      space -
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • updateSpaceSite

      public void updateSpaceSite(org.exoplatform.social.core.space.model.Space space) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Updates Space site switch designated templateId characteristics
      Parameters:
      space -
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • saveSpacePublicSite

      public void saveSpacePublicSite(String spaceId, String publicSiteVisibility, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Saves the space public site characteristics
      Parameters:
      spaceId -
      publicSiteVisibility - Visibility of public site, possible values: manager, member, internal, authenticated or everyone.
      username - user identifier who's making the operation
      Throws:
      IllegalAccessException - when
      org.exoplatform.commons.exception.ObjectNotFoundException
    • saveSpacePublicSite

      public void saveSpacePublicSite(org.exoplatform.social.core.space.model.Space space, String publicSiteVisibility)
      Saves the space public site characteristics
      Parameters:
      space - Space
      publicSiteVisibility - Visibility of public site, possible values: manager, member, internal, authenticated or everyone.
    • removeSpacePublicSite

      public void removeSpacePublicSite(org.exoplatform.social.core.space.model.Space space)
      Removes Space Public Site
      Parameters:
      space - Space
    • getSpacePublicSiteName

      public String getSpacePublicSiteName(org.exoplatform.social.core.space.model.Space space)
      Parameters:
      space - Space
      Returns:
      Public site name if exists, else null
    • getFirstSpacePageUri

      public String getFirstSpacePageUri(String groupId)