public class DirectoryObjectTypeIdResolver extends Object implements org.codehaus.jackson.map.jsontype.TypeIdResolver
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 CrowdModifier and Type | Field and Description |
---|---|
static String |
GROUP_ODATA_TYPE |
static String |
USER_ODATA_TYPE |
Constructor and Description |
---|
DirectoryObjectTypeIdResolver() |
Modifier and Type | Method and Description |
---|---|
org.codehaus.jackson.annotate.JsonTypeInfo.Id |
getMechanism() |
String |
idFromValue(Object value) |
String |
idFromValueAndType(Object value,
Class<?> suggestedType) |
void |
init(org.codehaus.jackson.type.JavaType baseType) |
org.codehaus.jackson.type.JavaType |
typeFromId(String id) |
public static final String USER_ODATA_TYPE
public static final String GROUP_ODATA_TYPE
public void init(org.codehaus.jackson.type.JavaType baseType)
init
in interface org.codehaus.jackson.map.jsontype.TypeIdResolver
public String idFromValue(Object value)
idFromValue
in interface org.codehaus.jackson.map.jsontype.TypeIdResolver
public String idFromValueAndType(Object value, Class<?> suggestedType)
idFromValueAndType
in interface org.codehaus.jackson.map.jsontype.TypeIdResolver
public org.codehaus.jackson.type.JavaType typeFromId(String id)
typeFromId
in interface org.codehaus.jackson.map.jsontype.TypeIdResolver
public org.codehaus.jackson.annotate.JsonTypeInfo.Id getMechanism()
getMechanism
in interface org.codehaus.jackson.map.jsontype.TypeIdResolver
Copyright © 2021 Atlassian. All rights reserved.