Class LinkPermissionsDelegate
java.lang.Object
com.atlassian.confluence.security.delegate.LinkPermissionsDelegate
- All Implemented Interfaces:
PermissionDelegate<AbstractLink>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAdminister(ConfluenceUser user, AbstractLink target) booleancanCreate(ConfluenceUser user, Object container) booleancanCreateInTarget(ConfluenceUser user, Class typeToCreate) booleancanEdit(ConfluenceUser user, AbstractLink target) booleancanExport(ConfluenceUser user, AbstractLink target) booleancanRemove(ConfluenceUser user, AbstractLink target) booleancanSetPermissions(ConfluenceUser user, AbstractLink target) booleancanView(ConfluenceUser user) booleancanView(ConfluenceUser user, AbstractLink target) voidsetPermissionManager(PermissionManager permissionManager) 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
-
LinkPermissionsDelegate
public LinkPermissionsDelegate()
-
-
Method Details
-
canView
- Specified by:
canViewin interfacePermissionDelegate<AbstractLink>- Returns:
- true if user can view the specified target.
-
canView
- Specified by:
canViewin interfacePermissionDelegate<AbstractLink>- Returns:
- true if the user can view all instances of targets handled by this permission delegate
-
canEdit
- Specified by:
canEditin interfacePermissionDelegate<AbstractLink>
-
canSetPermissions
- Specified by:
canSetPermissionsin interfacePermissionDelegate<AbstractLink>
-
canRemove
- Specified by:
canRemovein interfacePermissionDelegate<AbstractLink>
-
canExport
- Specified by:
canExportin interfacePermissionDelegate<AbstractLink>
-
canAdminister
- Specified by:
canAdministerin interfacePermissionDelegate<AbstractLink>
-
canCreate
- Specified by:
canCreatein interfacePermissionDelegate<AbstractLink>- Returns:
- true if the specified user can create new instances of the target type in the specified container.
-
canCreateInTarget
- Specified by:
canCreateInTargetin interfacePermissionDelegate<AbstractLink>- 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.
-
setPermissionManager
- Since:
- 7.16
-