Class SpaceTemplateService

java.lang.Object
io.meeds.social.space.template.service.SpaceTemplateService

@Service public class SpaceTemplateService extends Object
  • Field Details

  • Constructor Details

    • SpaceTemplateService

      public SpaceTemplateService(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 Details

    • getSpaceTemplates

      public List<SpaceTemplate> getSpaceTemplates()
    • getSpaceTemplates

      public List<SpaceTemplate> getSpaceTemplates(SpaceTemplateFilter spaceTemplateFilter, org.springframework.data.domain.Pageable pageable, boolean expand)
    • getManagingSpaceTemplates

      public List<Long> getManagingSpaceTemplates(String username)
    • getSpaceTemplate

      public SpaceTemplate getSpaceTemplate(long templateId)
    • getSpaceTemplate

      public SpaceTemplate getSpaceTemplate(long templateId, String username, Locale locale, boolean expand) throws IllegalAccessException
      Throws:
      IllegalAccessException
    • getSpaceTemplateByLayout

      public SpaceTemplate getSpaceTemplateByLayout(String layout)
    • getSpaceTemplateBannerId

      public long getSpaceTemplateBannerId(long templateId)
    • canManageSpacesWithTemplate

      public boolean canManageSpacesWithTemplate(SpaceTemplate spaceTemplate, String username)
    • canManageTemplates

      public boolean canManageTemplates(String username)
    • canViewTemplate

      public boolean canViewTemplate(long templateId, String username)
    • canCreateSpace

      public boolean canCreateSpace(long templateId, String username)
    • canCreateSpace

      public boolean canCreateSpace(String username)
    • createSpaceTemplate

      public SpaceTemplate createSpaceTemplate(SpaceTemplate spaceTemplate, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.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.ObjectNotFoundException
      IllegalAccessException
    • 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:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • deleteSpaceTemplate

      public void deleteSpaceTemplate(long templateId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException