public class ApplicationPermissionsDelegate extends Object implements PermissionDelegate
Constructor and Description |
---|
ApplicationPermissionsDelegate() |
Modifier and Type | Method and Description |
---|---|
boolean |
canAdminister(com.atlassian.user.User user,
Object target) |
boolean |
canCreate(com.atlassian.user.User user,
Object container) |
boolean |
canCreateInTarget(com.atlassian.user.User user,
Class typeToCreate) |
boolean |
canEdit(com.atlassian.user.User user,
Object target) |
boolean |
canExport(com.atlassian.user.User user,
Object target) |
boolean |
canRemove(com.atlassian.user.User user,
Object target) |
boolean |
canSetPermissions(com.atlassian.user.User user,
Object target) |
boolean |
canView(com.atlassian.user.User user) |
boolean |
canView(com.atlassian.user.User user,
Object target)
Return true if a user is licensed to use Confluence i.e.
|
void |
setSpacePermissionManager(SpacePermissionManager spacePermissionManager) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canMove, canRemoveHierarchy
public boolean canView(com.atlassian.user.User user, Object target)
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,
use ConfluenceAccessManager.getUserAccessStatus(User)
then AccessStatus.canUseConfluence()
canView
in interface PermissionDelegate
public boolean canView(com.atlassian.user.User user)
canView
in interface PermissionDelegate
public boolean canEdit(com.atlassian.user.User user, Object target)
canEdit
in interface PermissionDelegate
public boolean canSetPermissions(com.atlassian.user.User user, Object target)
canSetPermissions
in interface PermissionDelegate
public boolean canRemove(com.atlassian.user.User user, Object target)
canRemove
in interface PermissionDelegate
public boolean canExport(com.atlassian.user.User user, Object target)
canExport
in interface PermissionDelegate
public boolean canAdminister(com.atlassian.user.User user, Object target)
canAdminister
in interface PermissionDelegate
public boolean canCreate(com.atlassian.user.User user, Object container)
canCreate
in interface PermissionDelegate
public boolean canCreateInTarget(com.atlassian.user.User user, Class typeToCreate)
canCreateInTarget
in interface PermissionDelegate
user
- the user performing the createtypeToCreate
- the class of the entity to createpublic void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences