Interface ISpacePolicy
public interface ISpacePolicy
- Since:
- 3.23.10
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canCreate
(IContextId contextId, IFolder folder) Can the current user create a Space for the given context?boolean
canDelete
(IContextId contextId, IFolder folder) Can the current user delete a Space for the given context?boolean
canManage
(IContextId contextId, IFolder folder) Can the current user manage the Space for the given context?boolean
canModify
(IContextId contextId, IFolder folder) Can the current user modify the Space for the given context?boolean
canRead
(IContextId contextId, IFolder folder) Can the current user read the Space for the given context?boolean
canRead
(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 benull
for Global administration)folder
- (can benull
if it is the root Space.)- Returns:
true
if 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 benull
for global administration)folder
- (can benull
if it is the root Space.)- Returns:
true
if 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 benull
for Global administration)folder
- (can benull
if it is the root Space.)- Returns:
true
if 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 benull
for global administration)folder
- (can benull
if it is the root Space.)- Returns:
true
if 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 benull
for global administration)folder
- (can benull
if it is the root Space.)- Returns:
true
if the current user is allowed to manage Spaces in the given context.
-
canRead
- Parameters:
contextId
- context id (can benull
for Global administration)folder
- (can benull
if it is the root Space.)userId
- (cannot benull
.)- Returns:
true
if 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?
-