|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AuthorizationService
Service to determine if access to a certain resource is allowed.
| Method Summary | ||
|---|---|---|
void |
appendRule(AuthorizationRule aRule)
Appends a new authorization rule to the end. |
|
|
check(T aResource,
Operation aOperation)
Same as isAllowed(Object, Operation) but throws a
RuntimeException in case access is not allowed. |
|
AuthorizationRule[] |
getRules()
Gets the authorization rules. |
|
void |
insertRuleAfter(int aIndex,
AuthorizationRule aRule)
Inserts a rule. |
|
boolean |
isAllowed(java.lang.Object aResource,
Operation aOperation)
Checks whether an operation is allowed on a resource. |
|
void |
removeRule(int aIndex)
Removes a rule. |
|
| Methods inherited from interface org.wamblee.persistence.Persistent |
|---|
getPersistedVersion, getPrimaryKey, setPersistedVersion, setPrimaryKey |
| Method Detail |
|---|
boolean isAllowed(java.lang.Object aResource,
Operation aOperation)
aResource - Resource.aOperation - Operation.
<T> T check(T aResource,
Operation aOperation)
isAllowed(Object, Operation) but throws a
RuntimeException in case access is not allowed.
aResource - Resource to check.aOperation - Operation to perform.
AuthorizationRule[] getRules()
void appendRule(AuthorizationRule aRule)
aRule - Rule to append.void removeRule(int aIndex)
aRule - Index of the rule to remove.
void insertRuleAfter(int aIndex,
AuthorizationRule aRule)
aIndex - Index of the position of the rule after insertion.aRule - Rule to insert.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||