Class GlobalDescriptionPermissionsDelegate
java.lang.Object
com.atlassian.confluence.security.delegate.GlobalDescriptionPermissionsDelegate
- All Implemented Interfaces:
PermissionDelegate<GlobalDescription>
public class GlobalDescriptionPermissionsDelegate
extends Object
implements PermissionDelegate<GlobalDescription>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canAdminister
(ConfluenceUser user, GlobalDescription target) boolean
canCreate
(ConfluenceUser user, Object container) boolean
canCreateInTarget
(ConfluenceUser user, Class typeToCreate) boolean
canEdit
(ConfluenceUser user, GlobalDescription target) boolean
canExport
(ConfluenceUser user, GlobalDescription target) boolean
canRemove
(ConfluenceUser user, GlobalDescription target) boolean
canSetPermissions
(ConfluenceUser user, GlobalDescription target) boolean
canView
(ConfluenceUser user) boolean
canView
(ConfluenceUser user, GlobalDescription target) GlobalDescription
instances can be viewed by anyone, even by anonymous users and if the anonymous use flag is set to false.void
setSpacePermissionManager
(SpacePermissionManager spacePermissionManager) 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
canAdminister, canCreate, canCreateInTarget, canEdit, canExport, canMove, canMove, canRemove, canRemoveHierarchy, canRemoveHierarchy, canSetPermissions, canView, canView
-
Constructor Details
-
GlobalDescriptionPermissionsDelegate
public GlobalDescriptionPermissionsDelegate()
-
-
Method Details
-
canAdminister
- Specified by:
canAdminister
in interfacePermissionDelegate<GlobalDescription>
-
canCreate
- Specified by:
canCreate
in interfacePermissionDelegate<GlobalDescription>
- Returns:
- true if the specified user can create new instances of the target type in the specified container.
-
canCreateInTarget
- Specified by:
canCreateInTarget
in interfacePermissionDelegate<GlobalDescription>
- 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.
-
canEdit
- Specified by:
canEdit
in interfacePermissionDelegate<GlobalDescription>
-
canExport
- Specified by:
canExport
in interfacePermissionDelegate<GlobalDescription>
-
canRemove
- Specified by:
canRemove
in interfacePermissionDelegate<GlobalDescription>
-
canSetPermissions
- Specified by:
canSetPermissions
in interfacePermissionDelegate<GlobalDescription>
-
canView
GlobalDescription
instances can be viewed by anyone, even by anonymous users and if the anonymous use flag is set to false.- Specified by:
canView
in interfacePermissionDelegate<GlobalDescription>
- Returns:
- Always returns true
-
canView
- Specified by:
canView
in interfacePermissionDelegate<GlobalDescription>
- Returns:
- true if the user can view all instances of targets handled by this permission delegate
-
setSpacePermissionManager
-