Package org.forgerock.am.cts.adapters
Interface JavaBeanAdapter<T>
-
- Type Parameters:
T- The type of the POJO.
- All Superinterfaces:
TokenAdapter<T>
public interface JavaBeanAdapter<T> extends 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TfromToken(Token token)TokentoToken(T o)TokenFiltertoTokenQuery(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 Detail
-
toToken
Token toToken(T o)
- Specified by:
toTokenin interfaceTokenAdapter<T>- Parameters:
o- Object of type T to convert to a Token.- Returns:
- A non null Token.
-
fromToken
T fromToken(Token token)
- Specified by:
fromTokenin interfaceTokenAdapter<T>- Parameters:
token- Token to be converted back to its original type of T.- Returns:
- Non null object of type T.
-
toTokenQuery
TokenFilter toTokenQuery(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.- Parameters:
filter- The query keyed by bean property names.- Returns:
- The transformed query keyed by token field names.
-
-