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