public class UserPermissionsDelegate extends Object implements PermissionDelegate<com.atlassian.user.User>
Constructor and Description |
---|
UserPermissionsDelegate() |
Modifier and Type | Method and Description |
---|---|
boolean |
canAdminister(com.atlassian.user.User user,
com.atlassian.user.User target)
Unsupported.
|
boolean |
canCreate(com.atlassian.user.User user,
Object container)
Determines if the specified user has permissions to create users
|
boolean |
canCreateInTarget(com.atlassian.user.User user,
Class typeToCreate) |
boolean |
canEdit(com.atlassian.user.User user,
com.atlassian.user.User target)
Determines if the specified user can edit the target user.
|
boolean |
canExport(com.atlassian.user.User user,
com.atlassian.user.User target)
Unsupported.
|
boolean |
canRemove(com.atlassian.user.User user,
com.atlassian.user.User target)
Determines if the specified user can remove the target user.
|
boolean |
canSetPermissions(com.atlassian.user.User user,
com.atlassian.user.User target)
Determines if the specified user can add new permissions or remove existing permissions on the target user.
|
boolean |
canView(com.atlassian.user.User user) |
boolean |
canView(com.atlassian.user.User user,
com.atlassian.user.User target)
Determines if the specified user can view the target user.
|
void |
setConfluenceAccessManager(ConfluenceAccessManager confluenceAccessManager) |
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, com.atlassian.user.User target)
canView
in interface PermissionDelegate<com.atlassian.user.User>
public boolean canView(com.atlassian.user.User user)
canView
in interface PermissionDelegate<com.atlassian.user.User>
public boolean canEdit(com.atlassian.user.User user, com.atlassian.user.User target)
canEdit
in interface PermissionDelegate<com.atlassian.user.User>
public boolean canRemove(com.atlassian.user.User user, com.atlassian.user.User target)
canRemove
in interface PermissionDelegate<com.atlassian.user.User>
public boolean canCreate(com.atlassian.user.User user, Object container)
canCreate
in interface PermissionDelegate<com.atlassian.user.User>
container
- not required. Null can be specified here as it is not used at the moment.public boolean canCreateInTarget(com.atlassian.user.User user, Class typeToCreate)
canCreateInTarget
in interface PermissionDelegate<com.atlassian.user.User>
user
- the user performing the createtypeToCreate
- the class of the entity to createpublic boolean canExport(com.atlassian.user.User user, com.atlassian.user.User target)
canExport
in interface PermissionDelegate<com.atlassian.user.User>
public boolean canSetPermissions(com.atlassian.user.User user, com.atlassian.user.User target)
canSetPermissions
in interface PermissionDelegate<com.atlassian.user.User>
public boolean canAdminister(com.atlassian.user.User user, com.atlassian.user.User target)
canAdminister
in interface PermissionDelegate<com.atlassian.user.User>
public void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
public void setConfluenceAccessManager(ConfluenceAccessManager confluenceAccessManager)
Copyright © 2003–2021 Atlassian. All rights reserved.