Class DirectoryObjectTypeIdResolver
java.lang.Object
com.atlassian.crowd.directory.rest.resolver.DirectoryObjectTypeIdResolver
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsontype.TypeIdResolver
public class DirectoryObjectTypeIdResolver
extends Object
implements com.fasterxml.jackson.databind.jsontype.TypeIdResolver
TypeIdResolver for
DirectoryObject instances. Resolves a concrete type basing on the @odata.type property
or returns a generic DirectoryObject type if the annotation is not present or its value does not indicate a concrete
type used in Crowd-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.annotation.JsonTypeInfo.IdidFromValue(Object value) idFromValueAndType(Object value, Class<?> suggestedType) voidinit(com.fasterxml.jackson.databind.JavaType baseType) com.fasterxml.jackson.databind.JavaTypetypeFromId(com.fasterxml.jackson.databind.DatabindContext databindContext, String id)
-
Field Details
-
USER_ODATA_TYPE
- See Also:
-
GROUP_ODATA_TYPE
- See Also:
-
-
Constructor Details
-
DirectoryObjectTypeIdResolver
public DirectoryObjectTypeIdResolver()
-
-
Method Details
-
init
public void init(com.fasterxml.jackson.databind.JavaType baseType) - Specified by:
initin interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
idFromValue
- Specified by:
idFromValuein interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
idFromValueAndType
- Specified by:
idFromValueAndTypein interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
idFromBaseType
- Specified by:
idFromBaseTypein interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
typeFromId
public com.fasterxml.jackson.databind.JavaType typeFromId(com.fasterxml.jackson.databind.DatabindContext databindContext, String id) - Specified by:
typeFromIdin interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
getDescForKnownTypeIds
- Specified by:
getDescForKnownTypeIdsin interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
getMechanism
public com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()- Specified by:
getMechanismin interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-