|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IdentifierStrategy
Strategy for generating permission resource identifiers.
| Method Summary | |
|---|---|
boolean |
canIdentify(Class<?> resourceClass)
Returns true if the implementation can identify resources of the specified class |
boolean |
canLoadResource(String identifier)
Returns true if the implementation can load the resource instance for the specified identifier |
String |
getIdentifier(Object resource)
Returns a String identifier that can be used to uniquely identify the specified resource |
Serializable |
getNaturalIdentifier(Object resource)
Returns the natural identifier value of the specified resource |
Object |
lookupResource(String identifier)
Returns the resource instance for the specified identifier |
| Method Detail |
|---|
boolean canIdentify(Class<?> resourceClass)
resourceClass -
boolean canLoadResource(String identifier)
identifier -
String getIdentifier(Object resource)
resource -
Serializable getNaturalIdentifier(Object resource)
resource -
Object lookupResource(String identifier)
identifier -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||