|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavaObjectMapper
JavaObjectMapper
is responsible for converting a POJO into an AzWrapperRequestObject
.
The conversion for the most part consists of setting attributes of the object. Basically mapping
the information in the native Java Object to a set of simple name-value pairs. JavaObjectMapper
are configured for each of the AzWrapperRequestObjectFactory
instances associated
with the PepRequestFactory. This allows for each category (Subject
,Action
,Resource
and Environment
) to have their own mappers.
AzWrapperRequestObject
Method Summary | ||
---|---|---|
boolean |
canMapObject(java.lang.Object obj)
Returns true if the Mapper can map the Object that is passed in as the parameter to this method, false otherwise. |
|
java.util.Set<java.lang.Class> |
getSupportedClasses()
Returns a Set of all the classes that are supported by the Mapper that implements this interface. |
|
|
map(java.lang.Object javaObject,
AzWrapperRequestObject<T> azWrapperObject)
Performs the mapping of a Object to an AzWrapperRequestObject . |
Method Detail |
---|
boolean canMapObject(java.lang.Object obj)
obj
- Java Object (ex: Permission) which needs to be mapped to an AzWrapperRequestObject
JavaObjectMapper
can map the obj, false otherwise<T extends java.lang.Enum<T>> AzWrapperRequestObject<T> map(java.lang.Object javaObject, AzWrapperRequestObject<T> azWrapperObject) throws PepException
Object
to an AzWrapperRequestObject
. The reason for returning the AzWrapperRequestObject
is to allow for a mapper to simply reuse some existing state, like a cached AzEntity
. The JavaObjectMapper
simply needs to get
the AzEntity
from the Object
and instantiate a new AzWrapperRequestObject
from it.
javaObject
- azWrapperObject
-
PepException
java.util.Set<java.lang.Class> getSupportedClasses()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |