Interface PermissionDelegate<TARGET>
- All Known Implementing Classes:
- AbstractPermissionsDelegate,- ApplicationPermissionsDelegate,- AttachmentPermissionsDelegate,- BlogPostPermissionsDelegate,- CommentPermissionsDelegate,- DraftPermissionsDelegate,- GlobalDescriptionPermissionsDelegate,- GroupPermissionsDelegate,- JsonPropertyPermissionDelegate,- LabellingPermissionsDelegate,- LinkPermissionsDelegate,- NoPermissionDelegate,- PagePermissionsDelegate,- PageTemplatePermissionsDelegate,- PeopleDirectoryPermissionsDelegate,- PersonalInformationPermissionsDelegate,- SharedAccessInterceptor,- SpaceDescriptionPermissionsDelegate,- SpacePermissionsDelegate,- SystemPermissionsDelegate,- TargetToLatestVersionDecorator,- UserPermissionsDelegate
public interface PermissionDelegate<TARGET>
Each type of target that can have permissions checked against it will have a delegate. The delegate's job is to
 separate out the different permissions checks in a cleaner, more maintainable fashion.
 
 These delegates on check content access according to the permissions set.
 If you need to verify other restrictions that are context dependant like ContentEntityObject.SHARE_ID
 make sure you put them in the corresponding places.
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanAdminister(ConfluenceUser user, TARGET target) booleancanCreate(ConfluenceUser user, Object container) booleancanCreateInTarget(ConfluenceUser user, Class typeToCreate) booleancanEdit(ConfluenceUser user, TARGET target) booleancanExport(ConfluenceUser user, TARGET target) default booleancanMove(ConfluenceUser user, TARGET source, Object target, String movePoint) booleancanRemove(ConfluenceUser user, TARGET target) default booleancanRemoveHierarchy(ConfluenceUser user, TARGET target) booleancanSetPermissions(ConfluenceUser user, TARGET target) booleancanView(ConfluenceUser user) booleancanView(ConfluenceUser user, TARGET target) 
- 
Method Details- 
canView- Returns:
- true if user can view the specified target.
- Since:
- 8.8
 
- 
canView- Returns:
- true if the user can view all instances of targets handled by this permission delegate
- Since:
- 8.8
 
- 
canEdit- Since:
- 8.8
 
- 
canSetPermissions- Since:
- 8.8
 
- 
canRemove- Since:
- 8.8
 
- 
canMove- Since:
- 8.8
 
- 
canRemoveHierarchy- Since:
- 8.8
 
- 
canExport- Since:
- 8.8
 
- 
canAdminister- Since:
- 8.8
 
- 
canCreate- Returns:
- true if the specified user can create new instances of the target type in the specified container.
- Since:
- 8.8
 
- 
canCreateInTarget- Parameters:
- user- the user performing the create
- typeToCreate- 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.
- Since:
- 8.8
 
 
-