org.jboss.picketlink.cdi.permission
Interface IdentifierStrategy


public interface IdentifierStrategy

Strategy for generating permission resource identifiers.

Author:
Shane Bryzak

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

canIdentify

boolean canIdentify(Class<?> resourceClass)
Returns true if the implementation can identify resources of the specified class

Parameters:
resourceClass -
Returns:

canLoadResource

boolean canLoadResource(String identifier)
Returns true if the implementation can load the resource instance for the specified identifier

Parameters:
identifier -
Returns:

getIdentifier

String getIdentifier(Object resource)
Returns a String identifier that can be used to uniquely identify the specified resource

Parameters:
resource -
Returns:

getNaturalIdentifier

Serializable getNaturalIdentifier(Object resource)
Returns the natural identifier value of the specified resource

Parameters:
resource -
Returns:

lookupResource

Object lookupResource(String identifier)
Returns the resource instance for the specified identifier

Parameters:
identifier -
Returns:


Copyright © 2012. All Rights Reserved.