Class SpaceDescriptionPermissionsDelegate
- java.lang.Object
-
- com.atlassian.confluence.security.delegate.SpaceDescriptionPermissionsDelegate
-
- All Implemented Interfaces:
PermissionDelegate<SpaceDescription>
public class SpaceDescriptionPermissionsDelegate extends Object implements PermissionDelegate<SpaceDescription>
-
-
Constructor Summary
Constructors Constructor Description SpaceDescriptionPermissionsDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canAdminister(com.atlassian.user.User user, SpaceDescription target)
boolean
canCreate(com.atlassian.user.User user, Object container)
boolean
canCreateInTarget(com.atlassian.user.User user, Class typeToCreate)
boolean
canEdit(com.atlassian.user.User user, SpaceDescription target)
boolean
canExport(com.atlassian.user.User user, SpaceDescription target)
boolean
canRemove(com.atlassian.user.User user, SpaceDescription target)
boolean
canSetPermissions(com.atlassian.user.User user, SpaceDescription target)
boolean
canView(com.atlassian.user.User user)
boolean
canView(com.atlassian.user.User user, SpaceDescription target)
void
setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
void
setSpacePermissionsDelegate(SpacePermissionsDelegate spacePermissionsDelegate)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.security.PermissionDelegate
canMove, canRemoveHierarchy
-
-
-
-
Method Detail
-
canView
public boolean canView(com.atlassian.user.User user, SpaceDescription target)
- Specified by:
canView
in interfacePermissionDelegate<SpaceDescription>
- Returns:
- true if user can view the specified target.
-
canView
public boolean canView(com.atlassian.user.User user)
- Specified by:
canView
in interfacePermissionDelegate<SpaceDescription>
- Returns:
- true if the user can view all instances of targets handled by this permission delegate
-
canEdit
public boolean canEdit(com.atlassian.user.User user, SpaceDescription target)
- Specified by:
canEdit
in interfacePermissionDelegate<SpaceDescription>
-
canSetPermissions
public boolean canSetPermissions(com.atlassian.user.User user, SpaceDescription target)
- Specified by:
canSetPermissions
in interfacePermissionDelegate<SpaceDescription>
-
canRemove
public boolean canRemove(com.atlassian.user.User user, SpaceDescription target)
- Specified by:
canRemove
in interfacePermissionDelegate<SpaceDescription>
-
canExport
public boolean canExport(com.atlassian.user.User user, SpaceDescription target)
- Specified by:
canExport
in interfacePermissionDelegate<SpaceDescription>
-
canAdminister
public boolean canAdminister(com.atlassian.user.User user, SpaceDescription target)
- Specified by:
canAdminister
in interfacePermissionDelegate<SpaceDescription>
-
canCreate
public boolean canCreate(com.atlassian.user.User user, Object container)
- Specified by:
canCreate
in interfacePermissionDelegate<SpaceDescription>
- Returns:
- true if the specified user can create new instances of the target type in the specified container.
-
canCreateInTarget
public boolean canCreateInTarget(com.atlassian.user.User user, Class typeToCreate)
- Specified by:
canCreateInTarget
in interfacePermissionDelegate<SpaceDescription>
- Parameters:
user
- the user performing the createtypeToCreate
- the class of the entity to create- Returns:
- true if the specified user can create new instances of the specified typeToCreate within instances of target handled by this PermissionDelegate.
-
setSpacePermissionsDelegate
public void setSpacePermissionsDelegate(SpacePermissionsDelegate spacePermissionsDelegate)
-
setSpacePermissionManager
public void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
-
-