Class SiteLayoutService

java.lang.Object
io.meeds.layout.service.SiteLayoutService

@Service public class SiteLayoutService extends Object
  • Constructor Details

    • SiteLayoutService

      public SiteLayoutService()
  • Method Details

    • getSite

      public org.exoplatform.portal.config.model.PortalConfig getSite(long siteId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • getSiteLayout

      public org.exoplatform.portal.config.model.ModelObject getSiteLayout(org.exoplatform.portal.mop.SiteKey siteKey, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • getSite

      public org.exoplatform.portal.config.model.PortalConfig getSite(org.exoplatform.portal.mop.SiteKey siteKey, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • createSite

      public org.exoplatform.portal.config.model.PortalConfig createSite(SiteCreateModel createModel, String username) throws IllegalAccessException, org.exoplatform.commons.ObjectAlreadyExistsException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.ObjectAlreadyExistsException
    • createDraftSite

      public org.exoplatform.portal.mop.SiteKey createDraftSite(org.exoplatform.portal.mop.SiteKey siteKey, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • updateSite

      public void updateSite(SiteUpdateModel updateModel, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • restoreSite

      public void restoreSite(org.exoplatform.portal.mop.SiteKey siteKey, org.exoplatform.portal.mop.importer.ImportMode importMode, boolean restoreSiteConfig, boolean restorePages, boolean restoreNavigationTree, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • deleteSite

      public void deleteSite(org.exoplatform.portal.mop.SiteKey siteKey, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • updateSitePermissions

      public void updateSitePermissions(PermissionUpdateModel permissionUpdateModel, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • updateSiteLayout

      public void updateSiteLayout(org.exoplatform.portal.mop.SiteKey siteKey, org.exoplatform.portal.config.model.PortalConfig site, boolean publish, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getSiteLabels

      public NodeLabel getSiteLabels(Long siteId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • getSiteDescriptions

      public NodeLabel getSiteDescriptions(Long siteId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException