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 TypeMethodDescriptionbooleancanAdminister(ConfluenceUser user, GlobalDescription target) booleancanCreate(ConfluenceUser user, Object container) booleancanCreateInTarget(ConfluenceUser user, Class typeToCreate) booleancanEdit(ConfluenceUser user, GlobalDescription target) booleancanExport(ConfluenceUser user, GlobalDescription target) booleancanRemove(ConfluenceUser user, GlobalDescription target) booleancanSetPermissions(ConfluenceUser user, GlobalDescription target) booleancanView(ConfluenceUser user) booleancanView(ConfluenceUser user, GlobalDescription target) GlobalDescriptioninstances can be viewed by anyone, even by anonymous users and if the anonymous use flag is set to false.voidsetSpacePermissionManager(SpacePermissionManager spacePermissionManager) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.security.PermissionDelegate
canMove, canRemoveHierarchy
-
Constructor Details
-
GlobalDescriptionPermissionsDelegate
public GlobalDescriptionPermissionsDelegate()
-
-
Method Details
-
canAdminister
- Specified by:
canAdministerin interfacePermissionDelegate<GlobalDescription>
-
canCreate
- Specified by:
canCreatein interfacePermissionDelegate<GlobalDescription>- Returns:
- true if the specified user can create new instances of the target type in the specified container.
-
canCreateInTarget
- Specified by:
canCreateInTargetin 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:
canEditin interfacePermissionDelegate<GlobalDescription>
-
canExport
- Specified by:
canExportin interfacePermissionDelegate<GlobalDescription>
-
canRemove
- Specified by:
canRemovein interfacePermissionDelegate<GlobalDescription>
-
canSetPermissions
- Specified by:
canSetPermissionsin interfacePermissionDelegate<GlobalDescription>
-
canView
GlobalDescriptioninstances can be viewed by anyone, even by anonymous users and if the anonymous use flag is set to false.- Specified by:
canViewin interfacePermissionDelegate<GlobalDescription>- Returns:
- Always returns true
-
canView
- Specified by:
canViewin interfacePermissionDelegate<GlobalDescription>- Returns:
- true if the user can view all instances of targets handled by this permission delegate
-
setSpacePermissionManager
-