Class LabellingPermissionsDelegate
- java.lang.Object
-
- com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate<Labelling>
-
- com.atlassian.confluence.security.delegate.LabellingPermissionsDelegate
-
- All Implemented Interfaces:
PermissionDelegate<Labelling>
public class LabellingPermissionsDelegate extends AbstractPermissionsDelegate<Labelling>
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
spacePermissionManager
-
-
Constructor Summary
Constructors Constructor Description LabellingPermissionsDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
canAdminister(com.atlassian.user.User user, Labelling target)
boolean
canCreate(com.atlassian.user.User user, Object container)
boolean
canEdit(com.atlassian.user.User user, Labelling target)
boolean
canExport(com.atlassian.user.User user, Labelling target)
boolean
canRemove(com.atlassian.user.User user, Labelling target)
boolean
canSetPermissions(com.atlassian.user.User user, Labelling target)
boolean
canView(com.atlassian.user.User user, Labelling target)
protected Space
getSpaceFrom(Object target)
void
setPermissionManager(PermissionManager permissionManager)
void
setPermissionManagerTarget(PermissionManager permissionManager)
Deprecated.since 7.16 usesetPermissionManager(PermissionManager)
-
Methods inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
canCreateInTarget, canView, 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
canMove, canRemoveHierarchy
-
-
-
-
Method Detail
-
canView
public boolean canView(com.atlassian.user.User user, Labelling target)
- Returns:
- true if user can view the specified target.
-
canEdit
public boolean canEdit(com.atlassian.user.User user, Labelling target)
-
canSetPermissions
public boolean canSetPermissions(com.atlassian.user.User user, Labelling target)
-
canRemove
public boolean canRemove(com.atlassian.user.User user, Labelling target)
-
canExport
public boolean canExport(com.atlassian.user.User user, Labelling target)
-
canAdminister
public boolean canAdminister(com.atlassian.user.User user, Labelling target)
-
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<Labelling>
- Parameters:
target
- an entity object from which we want to extract a space container- Returns:
Space
container of the given target if available
-
setPermissionManagerTarget
@Deprecated public void setPermissionManagerTarget(PermissionManager permissionManager)
Deprecated.since 7.16 usesetPermissionManager(PermissionManager)
-
setPermissionManager
public void setPermissionManager(PermissionManager permissionManager)
- Since:
- 7.16
-
-