Class SpaceTemplateService
java.lang.Object
io.meeds.social.space.template.service.SpaceTemplateService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpaceTemplateService(io.meeds.social.translation.service.TranslationService translationService, org.exoplatform.social.attachment.AttachmentService attachmentService, org.exoplatform.portal.config.UserPortalConfigService userPortalConfigService, org.exoplatform.portal.mop.service.LayoutService layoutService, org.exoplatform.portal.mop.service.NavigationService navigationService, org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.portal.config.UserACL userAcl, SpaceTemplateStorage spaceTemplateStorage) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanCreateSpace(long templateId, String username) booleancanCreateSpace(String username) booleancanManageSpacesWithTemplate(SpaceTemplate spaceTemplate, String username) booleancanManageTemplates(String username) booleancanViewTemplate(long templateId, String username) createSpaceTemplate(SpaceTemplate spaceTemplate) createSpaceTemplate(SpaceTemplate spaceTemplate, String username) voiddeleteSpaceTemplate(long templateId) voiddeleteSpaceTemplate(long templateId, String username) getManagingSpaceTemplates(String username) getSpaceTemplate(long templateId) getSpaceTemplate(long templateId, String username, Locale locale, boolean expand) getSpaceTemplate(long templateId, Locale locale, boolean expand) longgetSpaceTemplateBannerId(long templateId) getSpaceTemplateByLayout(String layout) getSpaceTemplates(SpaceTemplateFilter spaceTemplateFilter, org.springframework.data.domain.Pageable pageable, boolean expand) updateSpaceTemplate(SpaceTemplate spaceTemplate) updateSpaceTemplate(SpaceTemplate spaceTemplate, String username)
-
Field Details
-
SPACE_TEMPLATE_CREATED_EVENT
- See Also:
-
SPACE_TEMPLATE_UPDATED_EVENT
- See Also:
-
SPACE_TEMPLATE_DELETED_EVENT
- See Also:
-
SPACE_TEMPLATE_SITE_PROP_NAME
- See Also:
-
SPACE_TEMPLATE_ID_PROP_NAME
- See Also:
-
DEFAULT_SITE_TEMPLATE
- See Also:
-
-
Constructor Details
-
Method Details
-
getSpaceTemplates
-
getSpaceTemplates
public List<SpaceTemplate> getSpaceTemplates(SpaceTemplateFilter spaceTemplateFilter, org.springframework.data.domain.Pageable pageable, boolean expand) -
getManagingSpaceTemplates
-
getSpaceTemplate
-
getSpaceTemplate
public SpaceTemplate getSpaceTemplate(long templateId, String username, Locale locale, boolean expand) throws IllegalAccessException - Throws:
IllegalAccessException
-
getSpaceTemplate
-
getSpaceTemplateByLayout
-
getSpaceTemplateBannerId
public long getSpaceTemplateBannerId(long templateId) -
canManageSpacesWithTemplate
-
canManageTemplates
-
canViewTemplate
-
canCreateSpace
-
canCreateSpace
-
createSpaceTemplate
public SpaceTemplate createSpaceTemplate(SpaceTemplate spaceTemplate, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
createSpaceTemplate
public SpaceTemplate createSpaceTemplate(SpaceTemplate spaceTemplate) throws org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
updateSpaceTemplate
public SpaceTemplate updateSpaceTemplate(SpaceTemplate spaceTemplate, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
updateSpaceTemplate
public SpaceTemplate updateSpaceTemplate(SpaceTemplate spaceTemplate) throws org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
deleteSpaceTemplate
public void deleteSpaceTemplate(long templateId, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
deleteSpaceTemplate
public void deleteSpaceTemplate(long templateId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-