Class SpaceTemplateServiceImpl

java.lang.Object
org.exoplatform.social.core.space.impl.SpaceTemplateServiceImpl
All Implemented Interfaces:
org.exoplatform.social.core.space.spi.SpaceTemplateService, org.picocontainer.Startable

public class SpaceTemplateServiceImpl extends Object implements org.exoplatform.social.core.space.spi.SpaceTemplateService, org.picocontainer.Startable
  • Field Details

  • Constructor Details

    • SpaceTemplateServiceImpl

      public SpaceTemplateServiceImpl(org.exoplatform.portal.config.UserPortalConfigService portalConfigService, org.exoplatform.portal.mop.service.LayoutService layoutService, org.exoplatform.container.xml.InitParams params)
  • Method Details

    • getSpaceTemplates

      public List<org.exoplatform.social.core.space.SpaceTemplate> getSpaceTemplates()
      Specified by:
      getSpaceTemplates in interface org.exoplatform.social.core.space.spi.SpaceTemplateService
    • getSpaceTemplates

      public List<org.exoplatform.social.core.space.SpaceTemplate> getSpaceTemplates(String userId) throws Exception
      Specified by:
      getSpaceTemplates in interface org.exoplatform.social.core.space.spi.SpaceTemplateService
      Throws:
      Exception
    • getLabelledSpaceTemplates

      public List<org.exoplatform.social.core.space.SpaceTemplate> getLabelledSpaceTemplates(String userId, String lang) throws Exception
      Specified by:
      getLabelledSpaceTemplates in interface org.exoplatform.social.core.space.spi.SpaceTemplateService
      Throws:
      Exception
    • getSpaceTemplateByName

      public org.exoplatform.social.core.space.SpaceTemplate getSpaceTemplateByName(String name)
      Specified by:
      getSpaceTemplateByName in interface org.exoplatform.social.core.space.spi.SpaceTemplateService
    • registerSpaceTemplatePlugin

      public void registerSpaceTemplatePlugin(org.exoplatform.social.core.space.SpaceTemplateConfigPlugin spaceTemplateConfigPlugin)
      Specified by:
      registerSpaceTemplatePlugin in interface org.exoplatform.social.core.space.spi.SpaceTemplateService
    • extendSpaceTemplatePlugin

      public void extendSpaceTemplatePlugin(org.exoplatform.social.core.space.SpaceTemplateConfigPlugin spaceTemplateConfigPlugin)
      Specified by:
      extendSpaceTemplatePlugin in interface org.exoplatform.social.core.space.spi.SpaceTemplateService
    • registerSpaceApplicationHandler

      public void registerSpaceApplicationHandler(org.exoplatform.social.core.space.spi.SpaceApplicationHandler spaceApplicationHandler)
      Add space application handler
      Specified by:
      registerSpaceApplicationHandler in interface org.exoplatform.social.core.space.spi.SpaceTemplateService
    • getSpaceApplicationHandlers

      public Map<String,org.exoplatform.social.core.space.spi.SpaceApplicationHandler> getSpaceApplicationHandlers()
      Gets space application handlers
      Specified by:
      getSpaceApplicationHandlers in interface org.exoplatform.social.core.space.spi.SpaceTemplateService
      Returns:
    • getDefaultSpaceTemplate

      public String getDefaultSpaceTemplate()
      Specified by:
      getDefaultSpaceTemplate in interface org.exoplatform.social.core.space.spi.SpaceTemplateService
    • initSpaceApplications

      public void initSpaceApplications(org.exoplatform.social.core.space.model.Space space, org.exoplatform.social.core.space.spi.SpaceApplicationHandler spaceApplicationHandler) throws org.exoplatform.social.core.space.SpaceException
      Specified by:
      initSpaceApplications in interface org.exoplatform.social.core.space.spi.SpaceTemplateService
      Throws:
      org.exoplatform.social.core.space.SpaceException
    • createSpacePublicSite

      public long createSpacePublicSite(org.exoplatform.social.core.space.model.Space space, String name, String label, String[] accessPermissions)
      Specified by:
      createSpacePublicSite in interface org.exoplatform.social.core.space.spi.SpaceTemplateService
    • setApp

      public void setApp(org.exoplatform.social.core.space.model.Space space, String appId, String appName, boolean isRemovable, String status)
      Specified by:
      setApp in interface org.exoplatform.social.core.space.spi.SpaceTemplateService
    • start

      public void start()
      Specified by:
      start in interface org.picocontainer.Startable
    • stop

      public void stop()
      Specified by:
      stop in interface org.picocontainer.Startable