Class SharedAccessInterceptor
- java.lang.Object
-
- com.atlassian.confluence.security.delegate.SharedAccessInterceptor
-
- All Implemented Interfaces:
PermissionDelegate
public class SharedAccessInterceptor extends Object implements PermissionDelegate
Interceptor to check that shared access is allowed toContentEntityObjectCurrently this is only used for new unpublished drafts.
-
-
Constructor Summary
Constructors Constructor Description SharedAccessInterceptor(PermissionDelegate delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanAdminister(com.atlassian.user.User user, Object target)booleancanCreate(com.atlassian.user.User user, Object container)booleancanCreateInTarget(com.atlassian.user.User user, Class typeToCreate)booleancanEdit(com.atlassian.user.User user, Object target)booleancanExport(com.atlassian.user.User user, Object target)booleancanMove(com.atlassian.user.User user, Object source, Object target, String movePoint)booleancanRemove(com.atlassian.user.User user, Object target)booleancanRemoveHierarchy(com.atlassian.user.User user, Object target)booleancanSetPermissions(com.atlassian.user.User user, Object target)booleancanView(com.atlassian.user.User user)booleancanView(com.atlassian.user.User user, Object target)
-
-
-
Constructor Detail
-
SharedAccessInterceptor
public SharedAccessInterceptor(PermissionDelegate delegate)
-
-
Method Detail
-
canView
public boolean canView(com.atlassian.user.User user, Object target)- Specified by:
canViewin interfacePermissionDelegate- Returns:
- true if user can view the specified target.
-
canView
public boolean canView(com.atlassian.user.User user)
- Specified by:
canViewin interfacePermissionDelegate- Returns:
- true if the user can view all instances of targets handled by this permission delegate
-
canEdit
public boolean canEdit(com.atlassian.user.User user, Object target)- Specified by:
canEditin interfacePermissionDelegate
-
canSetPermissions
public boolean canSetPermissions(com.atlassian.user.User user, Object target)- Specified by:
canSetPermissionsin interfacePermissionDelegate
-
canRemove
public boolean canRemove(com.atlassian.user.User user, Object target)- Specified by:
canRemovein interfacePermissionDelegate
-
canRemoveHierarchy
public boolean canRemoveHierarchy(com.atlassian.user.User user, Object target)- Specified by:
canRemoveHierarchyin interfacePermissionDelegate
-
canMove
public boolean canMove(com.atlassian.user.User user, Object source, Object target, String movePoint)- Specified by:
canMovein interfacePermissionDelegate
-
canExport
public boolean canExport(com.atlassian.user.User user, Object target)- Specified by:
canExportin interfacePermissionDelegate
-
canAdminister
public boolean canAdminister(com.atlassian.user.User user, Object target)- Specified by:
canAdministerin interfacePermissionDelegate
-
canCreate
public boolean canCreate(com.atlassian.user.User user, Object container)- Specified by:
canCreatein interfacePermissionDelegate- Returns:
- true if the specified user can create new instances of the target type in the specified container.
-
canCreateInTarget
public boolean canCreateInTarget(com.atlassian.user.User user, Class typeToCreate)- 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.
-
-