public interface Capabilities
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkCapability(User user,
Operation operation)
Check if the user have the capability for the specified operation.
|
Set<Map.Entry<User,List<Capability>>> |
getAllCapabilities() |
List<Capability> |
getCapabilities(User user)
Returns a list of capability for the specified user.
|
boolean |
isShared() |
boolean checkCapability(User user, Operation operation)
user - the user to check.operation - the operation to check.true if is enabled, false otherwise.List<Capability> getCapabilities(User user)
user - the user.Set<Map.Entry<User,List<Capability>>> getAllCapabilities()
boolean isShared()
true if the element is shared.Copyright © 2014. All Rights Reserved.