Interface ISpacePolicy
public interface ISpacePolicy
- Since:
- 3.23.10
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanCreate(IContextId contextId, IFolder folder) Can the current user create a Space for the given context?booleancanDelete(IContextId contextId, IFolder folder) Can the current user delete a Space for the given context?booleancanManage(IContextId contextId, IFolder folder) Can the current user manage the Space for the given context?booleancanModify(IContextId contextId, IFolder folder) Can the current user modify the Space for the given context?booleancanRead(IContextId contextId, IFolder folder) Can the current user read the Space for the given context?booleancanRead(IContextId contextId, IFolder folder, String userId)
-
Method Details
-
canRead
Can the current user read the Space for the given context?- Parameters:
contextId- context id (can benullfor Global administration)folder- (can benullif it is the root Space.)- Returns:
trueif the current user is allowed to read the Space for the given context.
-
canCreate
Can the current user create a Space for the given context?- Parameters:
contextId- context id (can benullfor global administration)folder- (can benullif it is the root Space.)- Returns:
trueif the current user is allowed to create Spaces in the given context.
-
canDelete
Can the current user delete a Space for the given context?- Parameters:
contextId- context ID (can benullfor Global administration)folder- (can benullif it is the root Space.)- Returns:
trueif the current user is allowed to delete Spaces in the given context.
-
canModify
Can the current user modify the Space for the given context?- Parameters:
contextId- context id (can benullfor global administration)folder- (can benullif it is the root Space.)- Returns:
trueif the current user is allowed to modify Spaces in the given context.
-
canManage
Can the current user manage the Space for the given context?- Parameters:
contextId- context id (can benullfor global administration)folder- (can benullif it is the root Space.)- Returns:
trueif the current user is allowed to manage Spaces in the given context.
-
canRead
- Parameters:
contextId- context id (can benullfor Global administration)folder- (can benullif it is the root Space.)userId- (cannot benull.)- Returns:
trueif the given user is allowed to read the Space for the given context.- Since:
- 3.24.4 Can the given user read the Space for the given context?
-