Class ApplicationPermissionsDelegate
- java.lang.Object
-
- com.atlassian.confluence.security.delegate.ApplicationPermissionsDelegate
-
- All Implemented Interfaces:
PermissionDelegate
public class ApplicationPermissionsDelegate extends Object implements PermissionDelegate
-
-
Constructor Summary
Constructors Constructor Description ApplicationPermissionsDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canAdminister(ConfluenceUser user, Object target)
boolean
canCreate(ConfluenceUser user, Object container)
boolean
canCreateInTarget(ConfluenceUser user, Class typeToCreate)
boolean
canEdit(ConfluenceUser user, Object target)
boolean
canExport(ConfluenceUser user, Object target)
boolean
canRemove(ConfluenceUser user, Object target)
boolean
canSetPermissions(ConfluenceUser user, Object target)
boolean
canView(ConfluenceUser user)
boolean
canView(ConfluenceUser user, Object target)
Return true if a user is licensed to use Confluence i.e.void
setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
-
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, Object target)
Return true if a user is licensed to use Confluence i.e. is included in the user count of Confluence license. Please note that although unlicensed, some authenticated users can still access certain features of Confluence if Unlicensed access is enabled in both global and space level. To check if a user can use Confluence in general, useConfluenceAccessManager.getUserAccessStatus(User)
thenAccessStatus.canUseConfluence()
- Specified by:
canView
in interfacePermissionDelegate
- Returns:
- true if user can view the specified target.
-
canView
public boolean canView(ConfluenceUser user)
- Specified by:
canView
in interfacePermissionDelegate
- Returns:
- true if the user can view all instances of targets handled by this permission delegate
-
canEdit
public boolean canEdit(ConfluenceUser user, Object target)
- Specified by:
canEdit
in interfacePermissionDelegate
-
canSetPermissions
public boolean canSetPermissions(ConfluenceUser user, Object target)
- Specified by:
canSetPermissions
in interfacePermissionDelegate
-
canRemove
public boolean canRemove(ConfluenceUser user, Object target)
- Specified by:
canRemove
in interfacePermissionDelegate
-
canExport
public boolean canExport(ConfluenceUser user, Object target)
- Specified by:
canExport
in interfacePermissionDelegate
-
canAdminister
public boolean canAdminister(ConfluenceUser user, Object target)
- Specified by:
canAdminister
in interfacePermissionDelegate
-
canCreate
public boolean canCreate(ConfluenceUser user, Object container)
- Specified by:
canCreate
in interfacePermissionDelegate
- Returns:
- true if the specified user can create new instances of the target type in the specified container.
-
canCreateInTarget
public boolean canCreateInTarget(ConfluenceUser user, Class typeToCreate)
- Specified by:
canCreateInTarget
in interfacePermissionDelegate
- Parameters:
user
- the user performing the createtypeToCreate
- 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.
-
setSpacePermissionManager
public void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
-
-