Package org.forgerock.am.cts.adapters
Interface JavaBeanAdapter<T>
- Type Parameters:
T
- The type of the POJO.
- All Superinterfaces:
TokenAdapter<T>
A TokenAdapter that can adapt Java bean-compliant POJOs that have been annotated with the annotations in
org.forgerock.openam.tokens.
-
Method Summary
Modifier and TypeMethodDescriptiontoTokenQuery
(QueryFilter<String> filter) Use the bean mappings that have been parsed to turn a query keyed by bean property names into a query keyed by token property names.
-
Method Details
-
toToken
- Specified by:
toToken
in interfaceTokenAdapter<T>
- Parameters:
o
- Object of type T to convert to a Token.- Returns:
- A non null Token.
-
fromToken
- Specified by:
fromToken
in interfaceTokenAdapter<T>
- Parameters:
token
- Token to be converted back to its original type of T.- Returns:
- Non null object of type T.
-
toTokenQuery
Use the bean mappings that have been parsed to turn a query keyed by bean property names into a query keyed by token property names.- Parameters:
filter
- The query keyed by bean property names.- Returns:
- The transformed query keyed by token field names.
-