Class PagePermissionsDelegate
- java.lang.Object
-
- com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate<Page>
-
- com.atlassian.confluence.security.delegate.PagePermissionsDelegate
-
- All Implemented Interfaces:
PermissionDelegate<Page>
public class PagePermissionsDelegate extends AbstractPermissionsDelegate<Page>
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
spacePermissionManager
-
-
Constructor Summary
Constructors Constructor Description PagePermissionsDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canAdminister(com.atlassian.user.User user, Page target)
boolean
canCreate(com.atlassian.user.User user, Object container)
boolean
canEdit(com.atlassian.user.User user, Page target)
boolean
canExport(com.atlassian.user.User user, Page target)
boolean
canMove(com.atlassian.user.User user, Page source, Object target, String movePoint)
boolean
canRemove(com.atlassian.user.User user, Page target)
boolean
canRemoveHierarchy(com.atlassian.user.User user, Page target)
boolean
canSetPermissions(com.atlassian.user.User user, Page target)
boolean
canView(com.atlassian.user.User user, Page target)
protected Space
getSpaceFrom(Object target)
void
setContentPermissionManager(ContentPermissionManager contentPermissionManager)
-
Methods inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
canCreateInTarget, canView, hasSpaceLevelPermission, setSpacePermissionManager
-
-
-
-
Method Detail
-
canView
public boolean canView(com.atlassian.user.User user, Page target)
- Returns:
- true if user can view the specified target.
-
canEdit
public boolean canEdit(com.atlassian.user.User user, Page target)
-
canSetPermissions
public boolean canSetPermissions(com.atlassian.user.User user, Page target)
-
canRemove
public boolean canRemove(com.atlassian.user.User user, Page target)
-
canMove
public boolean canMove(com.atlassian.user.User user, Page source, Object target, String movePoint)
-
canRemoveHierarchy
public boolean canRemoveHierarchy(com.atlassian.user.User user, Page target)
-
canExport
public boolean canExport(com.atlassian.user.User user, Page target)
-
canAdminister
public boolean canAdminister(com.atlassian.user.User user, Page target)
-
setContentPermissionManager
public void setContentPermissionManager(ContentPermissionManager contentPermissionManager)
-
canCreate
public boolean canCreate(com.atlassian.user.User user, Object container)
- Returns:
- true if the specified user can create new instances of the target type in the specified container.
-
getSpaceFrom
protected Space getSpaceFrom(Object target)
- Specified by:
getSpaceFrom
in classAbstractPermissionsDelegate<Page>
- Parameters:
target
- an entity object from which we want to extract a space container- Returns:
Space
container of the given target if available
-
-