Class SpacePermissionsDelegate
- java.lang.Object
-
- com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate<Space>
-
- com.atlassian.confluence.security.delegate.SpacePermissionsDelegate
-
- All Implemented Interfaces:
PermissionDelegate<Space>
public class SpacePermissionsDelegate extends AbstractPermissionsDelegate<Space>
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
spacePermissionManager
-
-
Constructor Summary
Constructors Constructor Description SpacePermissionsDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanAdminister(ConfluenceUser user, Space target)booleancanCreate(ConfluenceUser user, Object container)booleancanEdit(ConfluenceUser user, Space target)booleancanExport(ConfluenceUser user, Space target)booleancanRemove(ConfluenceUser user, Space target)booleancanSetPermissions(ConfluenceUser user, Space target)booleancanView(ConfluenceUser user, Space target)protected SpacegetSpaceFrom(Object target)-
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, canMove, canRemove, canRemoveHierarchy, canRemoveHierarchy, canSetPermissions, canView, canView
-
-
-
-
Method Detail
-
canView
public boolean canView(ConfluenceUser user, Space target)
- Returns:
- true if user can view the specified target.
-
canEdit
public boolean canEdit(ConfluenceUser user, Space target)
-
canSetPermissions
public boolean canSetPermissions(ConfluenceUser user, Space target)
-
canRemove
public boolean canRemove(ConfluenceUser user, Space target)
-
canExport
public boolean canExport(ConfluenceUser user, Space target)
-
canAdminister
public boolean canAdminister(ConfluenceUser user, Space target)
-
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.
-
getSpaceFrom
protected Space getSpaceFrom(Object target)
- Specified by:
getSpaceFromin classAbstractPermissionsDelegate<Space>- Parameters:
target- an entity object from which we want to extract a space container- Returns:
Spacecontainer of the given target if available
-
-