|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Entitlements
Interface that specifies the underlying comparison logic for entitlements.
It specifies "test" logic (has any, has all, has) and a way to iterate
over the contents.
Roles used for access control exposed their entitlements via the Entitled
interface. Likewise, Context extends Entitled
in order to aggregate all entitlements that might be conferred by a user's system
role or role in the course currently in context.
| Method Summary | |
|---|---|
boolean |
has(Entitlement entitlement)
Interface method to determine whether a given entitlements object contains a single entitlement. |
boolean |
hasAll(Entitlements otherEntitlements)
Interface method to determine whether a given entitlements object contains all of the entitlements specified in another entitlements object. |
boolean |
hasAny(Entitlements otherEntitlements)
Interface method to determine whether a given entitlements object has any of the entitlements specified in another entitlements object. |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
boolean hasAny(Entitlements otherEntitlements)
otherEntitlements - Entitlements object representing a set of entitlements
boolean hasAll(Entitlements otherEntitlements)
otherEntitlements - Entitlements object representing a set of entitlements
boolean has(Entitlement entitlement)
entitlement - Entitlement object representing a single ("atomic") entitlement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||