Package io.meeds.social.space.service
Interface SpaceAdministrationService
public interface SpaceAdministrationService
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplySpaceTemplate(long spaceId, SpaceTemplatePatch templatePatch) getSpaceExtendedProperties(long spaceId) getSpacePermissions(long spaceId) voidupdateSpaceExtendedProperties(long spaceId, Map<String, String> extendedProperties) voidupdateSpaceExtendedProperty(long spaceId, String propKey, String propValue) voidupdateSpacePermissions(long spaceId, SpacePermissions permissions)
-
Method Details
-
getSpacePermissions
SpacePermissions getSpacePermissions(long spaceId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Parameters:
spaceId-Spacetechnical id- Returns:
- Space permissions with layoutPermissions, deletePermissions and publicSitePermissions
- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException- when the space doesn't exist
-
getSpaceExtendedProperties
-
updateSpacePermissions
void updateSpacePermissions(long spaceId, SpacePermissions permissions) throws org.exoplatform.commons.exception.ObjectNotFoundException - Parameters:
spaceId-Spacetechnical idpermissions- 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-Spacetechnical idpropKey- Extended Property Key to updatepropValue- 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-Spacetechnical idextendedProperties- 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-Spacetechnical idtemplatePatch- SpaceTemplate properties to apply- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException- when the space doesn't exist
-