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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpaceTemplateServiceImpl(org.exoplatform.portal.config.UserPortalConfigService portalConfigService, org.exoplatform.portal.mop.service.LayoutService layoutService, org.exoplatform.container.xml.InitParams params) -
Method Summary
Modifier and TypeMethodDescriptionlongcreateSpacePublicSite(org.exoplatform.social.core.space.model.Space space, String name, String label, String[] accessPermissions) voidextendSpaceTemplatePlugin(org.exoplatform.social.core.space.SpaceTemplateConfigPlugin spaceTemplateConfigPlugin) List<org.exoplatform.social.core.space.SpaceTemplate> getLabelledSpaceTemplates(String userId, String lang) Gets space application handlersorg.exoplatform.social.core.space.SpaceTemplategetSpaceTemplateByName(String name) List<org.exoplatform.social.core.space.SpaceTemplate> List<org.exoplatform.social.core.space.SpaceTemplate> getSpaceTemplates(String userId) voidinitSpaceApplications(org.exoplatform.social.core.space.model.Space space, org.exoplatform.social.core.space.spi.SpaceApplicationHandler spaceApplicationHandler) voidregisterSpaceApplicationHandler(org.exoplatform.social.core.space.spi.SpaceApplicationHandler spaceApplicationHandler) Add space application handlervoidregisterSpaceTemplatePlugin(org.exoplatform.social.core.space.SpaceTemplateConfigPlugin spaceTemplateConfigPlugin) voidsetApp(org.exoplatform.social.core.space.model.Space space, String appId, String appName, boolean isRemovable, String status) voidstart()voidstop()
-
Field Details
-
DEFAULT_PUBLIC_SITE_TEMPLATE
- See Also:
-
DEFAULT_SPACE_TEMPLATE_PARAM
- See Also:
-
-
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
- Specified by:
getSpaceTemplatesin interfaceorg.exoplatform.social.core.space.spi.SpaceTemplateService
-
getSpaceTemplates
public List<org.exoplatform.social.core.space.SpaceTemplate> getSpaceTemplates(String userId) throws Exception - Specified by:
getSpaceTemplatesin interfaceorg.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:
getLabelledSpaceTemplatesin interfaceorg.exoplatform.social.core.space.spi.SpaceTemplateService- Throws:
Exception
-
getSpaceTemplateByName
- Specified by:
getSpaceTemplateByNamein interfaceorg.exoplatform.social.core.space.spi.SpaceTemplateService
-
registerSpaceTemplatePlugin
public void registerSpaceTemplatePlugin(org.exoplatform.social.core.space.SpaceTemplateConfigPlugin spaceTemplateConfigPlugin) - Specified by:
registerSpaceTemplatePluginin interfaceorg.exoplatform.social.core.space.spi.SpaceTemplateService
-
extendSpaceTemplatePlugin
public void extendSpaceTemplatePlugin(org.exoplatform.social.core.space.SpaceTemplateConfigPlugin spaceTemplateConfigPlugin) - Specified by:
extendSpaceTemplatePluginin interfaceorg.exoplatform.social.core.space.spi.SpaceTemplateService
-
registerSpaceApplicationHandler
public void registerSpaceApplicationHandler(org.exoplatform.social.core.space.spi.SpaceApplicationHandler spaceApplicationHandler) Add space application handler- Specified by:
registerSpaceApplicationHandlerin interfaceorg.exoplatform.social.core.space.spi.SpaceTemplateService
-
getSpaceApplicationHandlers
public Map<String,org.exoplatform.social.core.space.spi.SpaceApplicationHandler> getSpaceApplicationHandlers()Gets space application handlers- Specified by:
getSpaceApplicationHandlersin interfaceorg.exoplatform.social.core.space.spi.SpaceTemplateService- Returns:
-
getDefaultSpaceTemplate
- Specified by:
getDefaultSpaceTemplatein interfaceorg.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:
initSpaceApplicationsin interfaceorg.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:
createSpacePublicSitein interfaceorg.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:
setAppin interfaceorg.exoplatform.social.core.space.spi.SpaceTemplateService
-
start
public void start()- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.picocontainer.Startable
-