public class TargetToLatestVersionDecorator extends Object implements PermissionDelegate
This should be ok as the default behavior should be to always modify permissions directly on the last saved version of a
ContentEntityObject regardless of they being also kept in sync on the draft.
ContentEntityObject.DRAFT| Constructor and Description |
|---|
TargetToLatestVersionDecorator(PermissionDelegate delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAdminister(com.atlassian.user.User user,
Object target) |
boolean |
canCreate(com.atlassian.user.User user,
Object container) |
boolean |
canCreateInTarget(com.atlassian.user.User user,
Class typeToCreate) |
boolean |
canEdit(com.atlassian.user.User user,
Object target) |
boolean |
canExport(com.atlassian.user.User user,
Object target) |
boolean |
canMove(com.atlassian.user.User user,
Object source,
Object target,
String movePoint) |
boolean |
canRemove(com.atlassian.user.User user,
Object target) |
boolean |
canRemoveHierarchy(com.atlassian.user.User user,
Object target) |
boolean |
canSetPermissions(com.atlassian.user.User user,
Object target) |
boolean |
canView(com.atlassian.user.User user) |
boolean |
canView(com.atlassian.user.User user,
Object target) |
public TargetToLatestVersionDecorator(PermissionDelegate delegate)
public boolean canView(com.atlassian.user.User user,
Object target)
canView in interface PermissionDelegatepublic boolean canView(com.atlassian.user.User user)
canView in interface PermissionDelegatepublic boolean canEdit(com.atlassian.user.User user,
Object target)
canEdit in interface PermissionDelegatepublic boolean canSetPermissions(com.atlassian.user.User user,
Object target)
canSetPermissions in interface PermissionDelegatepublic boolean canRemove(com.atlassian.user.User user,
Object target)
canRemove in interface PermissionDelegatepublic boolean canRemoveHierarchy(com.atlassian.user.User user,
Object target)
canRemoveHierarchy in interface PermissionDelegatepublic boolean canMove(com.atlassian.user.User user,
Object source,
Object target,
String movePoint)
canMove in interface PermissionDelegatepublic boolean canExport(com.atlassian.user.User user,
Object target)
canExport in interface PermissionDelegatepublic boolean canAdminister(com.atlassian.user.User user,
Object target)
canAdminister in interface PermissionDelegatepublic boolean canCreate(com.atlassian.user.User user,
Object container)
canCreate in interface PermissionDelegatepublic boolean canCreateInTarget(com.atlassian.user.User user,
Class typeToCreate)
canCreateInTarget in interface PermissionDelegateuser - the user performing the createtypeToCreate - the class of the entity to createCopyright © 2003–2022 Atlassian. All rights reserved.