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
ConstructorsConstructorDescriptionSharedAccessInterceptor(PermissionDelegate delegate) Deprecated, for removal: This API element is subject to removal in a future version.since 9.3SharedAccessInterceptor(PermissionDelegate<?> delegate, ContentPermissionManager contentPermissionManager) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAdminister(ConfluenceUser user, Object target) booleancanCreate(ConfluenceUser user, Object container) booleancanCreateInTarget(ConfluenceUser user, Class typeToCreate) booleancanEdit(ConfluenceUser user, Object target) booleancanExport(ConfluenceUser user, Object target) booleancanMove(ConfluenceUser user, Object source, Object target, String movePoint) booleancanRemove(ConfluenceUser user, Object target) booleancanRemoveHierarchy(ConfluenceUser user, Object target) booleancanSetPermissions(ConfluenceUser user, Object target) booleancanView(ConfluenceUser user) booleancanView(ConfluenceUser user, Object target) 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
canAdminister, canCreate, canCreateInTarget, canEdit, canExport, canMove, canRemove, canRemoveHierarchy, canSetPermissions, canView, canView
-
Constructor Details
-
SharedAccessInterceptor
public SharedAccessInterceptor(PermissionDelegate<?> delegate, ContentPermissionManager contentPermissionManager) -
SharedAccessInterceptor
@Deprecated(since="9.3", forRemoval=true) public SharedAccessInterceptor(PermissionDelegate delegate) Deprecated, for removal: This API element is subject to removal in a future version.since 9.3
-
-
Method Details
-
canView
- Specified by:
canViewin interfacePermissionDelegate- Returns:
- true if user can view the specified target.
-
canView
- Specified by:
canViewin interfacePermissionDelegate- Returns:
- true if the user can view all instances of targets handled by this permission delegate
-
canEdit
- Specified by:
canEditin interfacePermissionDelegate
-
canSetPermissions
- Specified by:
canSetPermissionsin interfacePermissionDelegate
-
canRemove
- Specified by:
canRemovein interfacePermissionDelegate
-
canRemoveHierarchy
- Specified by:
canRemoveHierarchyin interfacePermissionDelegate
-
canMove
- Specified by:
canMovein interfacePermissionDelegate
-
canExport
- Specified by:
canExportin interfacePermissionDelegate
-
canAdminister
- Specified by:
canAdministerin interfacePermissionDelegate
-
canCreate
- Specified by:
canCreatein interfacePermissionDelegate- Returns:
- true if the specified user can create new instances of the target type in the specified container.
-
canCreateInTarget
- Specified by:
canCreateInTargetin 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.
-