public class CapabilityControl extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
CapabilityControl.Factory |
Modifier and Type | Method and Description |
---|---|
boolean |
canAccessDatabase() |
boolean |
canAdministrateServer() |
boolean |
canCreateAccount() |
boolean |
canCreateGroup() |
boolean |
canCreateProject() |
boolean |
canEmailReviewers() |
boolean |
canFlushCaches() |
boolean |
canKillTask() |
boolean |
canMaintainServer() |
boolean |
canModifyAccount() |
boolean |
canPerform(String permissionName)
True if the user has this permission.
|
boolean |
canRunAs() |
boolean |
canRunGC() |
boolean |
canStreamEvents() |
boolean |
canViewAllAccounts() |
boolean |
canViewCaches() |
boolean |
canViewConnections() |
boolean |
canViewPlugins() |
boolean |
canViewQueue() |
QueueProvider.QueueType |
getQueueType() |
PermissionRange |
getRange(String permission)
The range of permitted values associated with a label permission.
|
CurrentUser |
getUser()
Identity of the user the control will compute for.
|
public CurrentUser getUser()
public boolean canAdministrateServer()
public boolean canCreateAccount()
public boolean canCreateGroup()
public boolean canCreateProject()
public boolean canEmailReviewers()
public boolean canKillTask()
public boolean canModifyAccount()
public boolean canViewAllAccounts()
public boolean canViewCaches()
public boolean canFlushCaches()
public boolean canMaintainServer()
public boolean canViewConnections()
public boolean canViewPlugins()
public boolean canViewQueue()
public boolean canAccessDatabase()
public boolean canStreamEvents()
public boolean canRunGC()
public boolean canRunAs()
public QueueProvider.QueueType getQueueType()
public boolean canPerform(String permissionName)
public PermissionRange getRange(String permission)