Class SharedAccessInterceptor
java.lang.Object
com.atlassian.confluence.security.delegate.SharedAccessInterceptor
- All Implemented Interfaces:
PermissionDelegate
Interceptor to check that shared access is allowed to
ContentEntityObject
Currently this is only used for new unpublished drafts.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canAdminister
(ConfluenceUser user, Object target) boolean
canCreate
(ConfluenceUser user, Object container) boolean
canCreateInTarget
(ConfluenceUser user, Class typeToCreate) boolean
canEdit
(ConfluenceUser user, Object target) boolean
canExport
(ConfluenceUser user, Object target) boolean
canMove
(ConfluenceUser user, Object source, Object target, String movePoint) boolean
canRemove
(ConfluenceUser user, Object target) boolean
canRemoveHierarchy
(ConfluenceUser user, Object target) boolean
canSetPermissions
(ConfluenceUser user, Object target) boolean
canView
(ConfluenceUser user) boolean
canView
(ConfluenceUser user, Object target) 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, canRemove, canRemoveHierarchy, canSetPermissions, canView, canView
-
Constructor Details
-
SharedAccessInterceptor
-
-
Method Details
-
canView
- Specified by:
canView
in interfacePermissionDelegate
- Returns:
- true if user can view the specified target.
-
canView
- Specified by:
canView
in interfacePermissionDelegate
- Returns:
- true if the user can view all instances of targets handled by this permission delegate
-
canEdit
- Specified by:
canEdit
in interfacePermissionDelegate
-
canSetPermissions
- Specified by:
canSetPermissions
in interfacePermissionDelegate
-
canRemove
- Specified by:
canRemove
in interfacePermissionDelegate
-
canRemoveHierarchy
- Specified by:
canRemoveHierarchy
in interfacePermissionDelegate
-
canMove
- Specified by:
canMove
in interfacePermissionDelegate
-
canExport
- Specified by:
canExport
in interfacePermissionDelegate
-
canAdminister
- Specified by:
canAdminister
in interfacePermissionDelegate
-
canCreate
- Specified by:
canCreate
in interfacePermissionDelegate
- Returns:
- true if the specified user can create new instances of the target type in the specified container.
-
canCreateInTarget
- Specified by:
canCreateInTarget
in interfacePermissionDelegate
- 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.
-