Interface SpaceAdministrationService


public interface SpaceAdministrationService
  • Method Details

    • getSpacePermissions

      SpacePermissions getSpacePermissions(long spaceId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Parameters:
      spaceId - Space technical id
      Returns:
      Space permissions with layoutPermissions, deletePermissions and publicSitePermissions
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException - when the space doesn't exist
    • getSpaceExtendedProperties

      Map<String,String> getSpaceExtendedProperties(long spaceId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Parameters:
      spaceId - Space technical id
      Returns:
      Space extendedProperties
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException - when the space doesn't exist
    • updateSpacePermissions

      void updateSpacePermissions(long spaceId, SpacePermissions permissions) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Parameters:
      spaceId - Space technical id
      permissions - Space permissions with layoutPermissions, deletePermissions and publicSitePermissions
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException - when the space doesn't exist
    • updateSpaceExtendedProperty

      void updateSpaceExtendedProperty(long spaceId, String propKey, String propValue) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Parameters:
      spaceId - Space technical id
      propKey - Extended Property Key to update
      propValue - Extended Property Value to update if not blank else to remove
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException - when the space doesn't exist
    • updateSpaceExtendedProperties

      void updateSpaceExtendedProperties(long spaceId, Map<String,String> extendedProperties) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Parameters:
      spaceId - Space technical id
      extendedProperties - Map of updated properties
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException - when the space doesn't exist
    • applySpaceTemplate

      void applySpaceTemplate(long spaceId, SpaceTemplatePatch templatePatch) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Parameters:
      spaceId - Space technical id
      templatePatch - SpaceTemplate properties to apply
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException - when the space doesn't exist