public interface AuthorizationRule
Modifier and Type | Method and Description |
---|---|
Class[] |
getSupportedTypes()
Returns the supported object types for which this authorization rule
applies.
|
AuthorizationResult |
isAllowed(Object aResource,
Operation aOperation,
String aUser)
Determines whether an operation is allowed on a certain resource.
|
void |
setUserAdministration(UserAdministration aAdmin)
Sets the user admnistration to use.
|
void setUserAdministration(UserAdministration aAdmin)
aAdmin
- User administration.Class[] getSupportedTypes()
AuthorizationResult isAllowed(Object aResource, Operation aOperation, String aUser)
AuthorizationResult.UNSUPPORTED_RESOURCE
.aResource
- Resource.aOperation
- Operation.aUser
- Current user.Copyright © 2022. All rights reserved.