public interface AuthHandler
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<?> |
getRequiredValues(Permission permission)
Returns the required values to be enforced on the given permission.
|
boolean |
isAdminOf(BasicUser user)
Returns whether the logged user is an administrator of the given user
|
boolean |
isAdminOf(User admin,
BasicUser user)
Returns whether the given user is an administrator of the given user
|
boolean |
isBrokerOf(BasicUser user)
Returns whether the logged user is a broker of the given user
|
boolean |
isBrokerOf(User broker,
BasicUser user)
Returns whether the given user is a broker of the given user
|
org.cyclos.impl.access.UserPermissionCheck |
permission(BasicUser user)
Returns an
UserPermissionCheck for the logged user over the given user |
org.cyclos.impl.access.PermissionCheck |
permission(Permission permission)
Returns a
PermissionCheck for the logged user with a permission which is not related to users |
org.cyclos.impl.access.UserPermissionCheck |
permissionOptionalValue(BasicUser user)
Returns an
UserPermissionCheck for the logged user over the given user, optionally checking related values |
org.cyclos.impl.access.PermissionCheck |
permissionOptionalValue(Permission permission)
Returns a
PermissionCheck which can check any type of permission and, optionally, related values. |
boolean |
requiresValues(Permission permission)
Returns whether the given permission would require a value check for the currently logged user
|
java.util.Collection<?> getRequiredValues(Permission permission)
boolean isAdminOf(BasicUser user)
boolean isAdminOf(User admin, BasicUser user)
boolean isBrokerOf(BasicUser user)
boolean isBrokerOf(User broker, BasicUser user)
org.cyclos.impl.access.UserPermissionCheck permission(BasicUser user)
UserPermissionCheck for the logged user over the given userorg.cyclos.impl.access.PermissionCheck permission(Permission permission)
PermissionCheck for the logged user with a permission which is not related to usersorg.cyclos.impl.access.UserPermissionCheck permissionOptionalValue(BasicUser user)
UserPermissionCheck for the logged user over the given user, optionally checking related valuesorg.cyclos.impl.access.PermissionCheck permissionOptionalValue(Permission permission)
PermissionCheck which can check any type of permission and, optionally, related values. Never checks users.boolean requiresValues(Permission permission)