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(User admin,
BasicUser user)
Returns whether the given user is an administrator of the given user
|
boolean |
isBrokerOf(User broker,
BasicUser user)
Returns whether the given user is a broker of the given user
|
boolean |
manages(BasicUser manager,
BasicUser basicUser)
Returns whether the first user manages the second 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 |
relatesTo(BasicUser basicUser,
BasicUser related)
Returns whether the first user is related to (is allowed to view) the second user
|
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(User admin, BasicUser user)
boolean isBrokerOf(User broker, BasicUser user)
boolean manages(BasicUser manager, BasicUser basicUser)
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 relatesTo(BasicUser basicUser, BasicUser related)
boolean requiresValues(Permission permission)