public class PrismJasonProcessor extends Object
Constructor and Description |
---|
PrismJasonProcessor() |
Modifier and Type | Method and Description |
---|---|
PrismContext |
getPrismContext() |
PrismSchema |
getPrismSchema(Class clazz) |
SchemaRegistry |
getSchemaRegistry() |
<IV extends PrismValue,ID extends ItemDefinition> |
parseItem(com.fasterxml.jackson.databind.JsonNode values,
QName itemName,
String defaultNamespace,
ItemDefinition def) |
<T extends Objectable> |
parseObject(File file,
Class<T> valueType) |
<T extends Objectable> |
parseObject(InputStream inputStream,
Class<T> valueType) |
protected <T extends Containerable> |
parsePrismContainerItems(com.fasterxml.jackson.databind.JsonNode jsonObject,
PrismContainerDefinition<T> containerDefinition,
String defaultNamespace) |
<T> PrismProperty<T> |
parsePrismProperty(com.fasterxml.jackson.databind.JsonNode values,
QName propName,
PrismPropertyDefinition<T> propertyDefinition) |
<T> T |
parsePrismPropertyRealValue(com.fasterxml.jackson.databind.JsonNode valueElement,
PrismPropertyDefinition<T> propertyDefinition) |
PrismReference |
parsePrismReference(com.fasterxml.jackson.databind.JsonNode values,
QName propName,
PrismReferenceDefinition referenceDefinition) |
PrismReferenceValue |
parseReferenceValue(com.fasterxml.jackson.databind.JsonNode value,
String defaultNs) |
<T extends Objectable> |
serializeToJson(PrismObject<T> object,
OutputStream out) |
void |
setPrismContext(PrismContext prismContext) |
void |
setSchemaRegistry(SchemaRegistry schemaRegistry) |
public PrismSchema getPrismSchema(Class clazz)
public PrismContext getPrismContext()
public void setPrismContext(PrismContext prismContext)
public void setSchemaRegistry(SchemaRegistry schemaRegistry)
public SchemaRegistry getSchemaRegistry()
public <T extends Objectable> PrismObject<T> parseObject(File file, Class<T> valueType) throws IOException, SchemaException
IOException
SchemaException
public <T extends Objectable> void serializeToJson(PrismObject<T> object, OutputStream out) throws IOException, SchemaException
IOException
SchemaException
public <T extends Objectable> PrismObject<T> parseObject(InputStream inputStream, Class<T> valueType) throws IOException, SchemaException
IOException
SchemaException
protected <T extends Containerable> Collection<? extends Item<?,?>> parsePrismContainerItems(com.fasterxml.jackson.databind.JsonNode jsonObject, PrismContainerDefinition<T> containerDefinition, String defaultNamespace) throws SchemaException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
SchemaException
com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.databind.JsonMappingException
IOException
public <IV extends PrismValue,ID extends ItemDefinition> Item<IV,ID> parseItem(com.fasterxml.jackson.databind.JsonNode values, QName itemName, String defaultNamespace, ItemDefinition def) throws SchemaException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
SchemaException
com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.databind.JsonMappingException
IOException
public <T> PrismProperty<T> parsePrismProperty(com.fasterxml.jackson.databind.JsonNode values, QName propName, PrismPropertyDefinition<T> propertyDefinition) throws SchemaException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
SchemaException
com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.databind.JsonMappingException
IOException
public <T> T parsePrismPropertyRealValue(com.fasterxml.jackson.databind.JsonNode valueElement, PrismPropertyDefinition<T> propertyDefinition) throws SchemaException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
SchemaException
com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.databind.JsonMappingException
IOException
public PrismReference parsePrismReference(com.fasterxml.jackson.databind.JsonNode values, QName propName, PrismReferenceDefinition referenceDefinition) throws SchemaException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
SchemaException
com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.databind.JsonMappingException
IOException
public PrismReferenceValue parseReferenceValue(com.fasterxml.jackson.databind.JsonNode value, String defaultNs)
Copyright © 2016 evolveum. All rights reserved.