Package com.evolveum.midpoint.prism.impl
Class PrismContextImpl
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.PrismContextImpl
-
- All Implemented Interfaces:
ProtectorCreator
,PrismContext
public final class PrismContextImpl extends Object implements PrismContext
- Author:
- semancik
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.prism.PrismContext
LANG_JSON, LANG_XML, LANG_YAML
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adopt(Containerable containerable)
<T extends Objectable>
voidadopt(ObjectDelta<T> delta)
void
adopt(Objectable objectable)
<C extends Containerable>
voidadopt(PrismContainer<C> container)
<C extends Containerable>
voidadopt(PrismContainer<C> container, Class<C> declaredType)
Set up the specified object with prism context instance and schema definition.void
adopt(PrismContainerValue value)
<C extends Containerable,O extends Objectable>
voidadopt(PrismContainerValue<C> prismContainerValue, Class<O> type, ItemPath path)
<C extends Containerable>
voidadopt(PrismContainerValue<C> prismContainerValue, QName typeName, ItemPath path)
<C extends Containerable,O extends Objectable>
voidadopt(C containerable, Class<O> type, ItemPath path)
void
configurePolyStringNormalizer(PolyStringNormalizerConfigurationType configuration)
static PrismContextImpl
create(@NotNull SchemaRegistryImpl schemaRegistry)
CanonicalItemPath
createCanonicalItemPath(ItemPath itemPath)
TemporaryCanonicalItemPath
createCanonicalItemPath(ItemPath itemPath, QName objectType)
Temporarystatic PrismContextImpl
createEmptyContext(@NotNull SchemaRegistryImpl schemaRegistry)
KeyStoreBasedProtector
createInitializedProtector(KeyStoreBasedProtectorBuilder builder)
Creates initialized KeyStoreBasedProtector according to configured KeyStoreBasedProtectorBuilder object.<O extends Objectable>
@NotNull PrismObject<O>createKnownObject(@NotNull Class<O> clazz)
Creates a new PrismObject of a given static type.<O extends Objectable>
OcreateKnownObjectable(@NotNull Class<O> clazz)
Creates a new Objectable of a given static type.<T extends Objectable>
@NotNull PrismObject<T>createObject(@NotNull Class<T> clazz)
Creates a new PrismObject of a given type.<T extends Objectable>
TcreateObjectable(@NotNull Class<T> clazz)
Creates a new Objectable of a given type.ParsingContext
createParsingContextForAllowMissingRefTypes()
ParsingContext
createParsingContextForCompatibilityMode()
KeyStoreBasedProtector
createProtector(KeyStoreBasedProtectorBuilder builder)
Creates uninitialized KeyStoreBasedProtector according to configured KeyStoreBasedProtectorBuilder object.PrismQueryLanguageParser
createQueryParser(Map<String,String> prefixToNamespace)
@NotNull DefinitionFactory
definitionFactory()
@NotNull DeltaFactory
deltaFactory()
Access point to the "old" way of creating deltas.<C extends Containerable>
S_ItemEntrydeltaFor(Class<C> objectClass)
@NotNull String
detectLanguage(@NotNull File file)
@NotNull PrismSerializer<Element>
domSerializer()
Creates a serializer for DOM.UniformItemPath
emptyPath()
@NotNull BeanMarshaller
getBeanMarshaller()
WARNING! This is not really public method.@NotNull BeanUnmarshaller
getBeanUnmarshaller()
ParsingContext
getDefaultParsingContext()
@NotNull PolyStringNormalizer
getDefaultPolyStringNormalizer()
Returns the default PolyString normalizer.Protector
getDefaultProtector()
Returns the default protector.QName
getDefaultReferenceTypeName()
Type name for serialization of Referencable that's not of XML type (e.g.QName
getDefaultRelation()
If defined, it is considered to be the same as the relation of 'null'.@NotNull SchemaDefinitionFactory
getDefinitionFactory()
XmlEntityResolver
getEntityResolver()
QName
getExtensionContainerTypeName()
@NotNull JaxbDomHack
getJaxbDomHack()
@NotNull LexicalProcessorRegistry
getLexicalProcessorRegistry()
PrismMonitor
getMonitor()
QName
getObjectsElementName()
If defined, marks the 'multiple objects' element.DomLexicalProcessor
getParserDom()
WARNING! This is not really public method.ParsingMigrator
getParsingMigrator()
@NotNull PrismMarshaller
getPrismMarshaller()
PrismUnmarshaller
getPrismUnmarshaller()
WARNING! This is not really public method.EquivalenceStrategy
getProvenanceEquivalenceStrategy()
@NotNull QueryConverter
getQueryConverter()
@NotNull SchemaRegistry
getSchemaRegistry()
Returns the schema registry.ValueMetadataFactory
getValueMetadataFactory()
Hacks
hacks()
void
initialize()
Initializes the prism context, e.g.static boolean
isAllowSchemalessSerialization()
boolean
isDefaultRelation(QName relation)
static boolean
isExtraValidation()
@NotNull ItemFactory
itemFactory()
@NotNull ItemPathParser
itemPathParser()
@NotNull PrismSerializer<String>
jsonSerializer()
Creates a serializer for JSON language.@NotNull PrismParserNoIO
parserFor(@NotNull RootXNode xnode)
Creates a parser ready to process data from the given XNode tree.@NotNull PrismParser
parserFor(@NotNull File file)
Creates a parser ready to process the given file.@NotNull PrismParser
parserFor(@NotNull InputStream stream)
Creates a parser ready to process data from the given input stream.@NotNull PrismParserNoIO
parserFor(@NotNull String data)
Creates a parser ready to process data from the given string.@NotNull PrismParserNoIO
parserFor(@NotNull Element data)
Creates a parser ready to process data from the given DOM element.UniformItemPath
path(Object... namesOrIdsOrSegments)
@NotNull QueryFactory
queryFactory()
Access point to the "old" way of creating queries, filters and paging instructions.S_FilterEntryOrEmpty
queryFor(Class<? extends Containerable> queryClass)
PrismQuerySerializer
querySerializer()
boolean
relationMatches(@NotNull List<QName> relationQuery, QName relation)
Returns true of any of the relation in the relationQuery list matches specified relation.boolean
relationMatches(QName relationQuery, QName relation)
boolean
relationsEquivalent(QName relation1, QName relation2)
@NotNull SchemaFactory
schemaFactory()
@NotNull PrismSerializer<String>
serializerFor(@NotNull String language)
Creates a serializer for the given language.static void
setAllowSchemalessSerialization(boolean allowSchemalessSerialization)
void
setDefaultProtector(Protector defaultProtector)
void
setDefaultReferenceTypeName(QName defaultReferenceTypeName)
void
setDefaultRelation(QName defaultRelation)
void
setDefinitionFactory(SchemaDefinitionFactory schemaDefinitionFactory)
void
setExtensionContainerTypeName(QName typeName)
void
setExtraValidation(boolean value)
void
setMonitor(PrismMonitor monitor)
void
setObjectsElementName(QName objectsElementName)
void
setParsingMigrator(ParsingMigrator parsingMigrator)
void
setProvenanceEquivalenceStrategy(EquivalenceStrategy provenanceEquivalenceStrategy)
void
setValueMetadataFactory(ValueMetadataFactory valueMetadataFactory)
@NotNull UniformItemPath
toUniformPath(ItemPath path)
TemporaryUniformItemPath
toUniformPath(ItemPathType path)
UniformItemPath
toUniformPathKeepNull(ItemPath path)
@NotNull PrismSerializer<String>
xmlSerializer()
Creates a serializer for XML language.XNodeFactory
xnodeFactory()
XNodeMutator
xnodeMutator()
@NotNull PrismSerializer<RootXNode>
xnodeSerializer()
Creates a serializer for XNode.@NotNull PrismSerializer<String>
yamlSerializer()
Creates a serializer for YAML language.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismContext
createQueryParser, parseObject, parseObject, toPath
-
-
-
-
Method Detail
-
create
public static PrismContextImpl create(@NotNull @NotNull SchemaRegistryImpl schemaRegistry)
-
createEmptyContext
public static PrismContextImpl createEmptyContext(@NotNull @NotNull SchemaRegistryImpl schemaRegistry)
-
initialize
public void initialize() throws SchemaException, SAXException, IOException
Description copied from interface:PrismContext
Initializes the prism context, e.g. loads and parses all the schemas.- Specified by:
initialize
in interfacePrismContext
- Throws:
SchemaException
SAXException
IOException
-
configurePolyStringNormalizer
public void configurePolyStringNormalizer(PolyStringNormalizerConfigurationType configuration) throws ClassNotFoundException, InstantiationException, IllegalAccessException
- Specified by:
configurePolyStringNormalizer
in interfacePrismContext
- Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
-
isAllowSchemalessSerialization
public static boolean isAllowSchemalessSerialization()
-
setAllowSchemalessSerialization
public static void setAllowSchemalessSerialization(boolean allowSchemalessSerialization)
-
isExtraValidation
public static boolean isExtraValidation()
-
getEntityResolver
public XmlEntityResolver getEntityResolver()
-
getSchemaRegistry
@NotNull public @NotNull SchemaRegistry getSchemaRegistry()
Description copied from interface:PrismContext
Returns the schema registry.- Specified by:
getSchemaRegistry
in interfacePrismContext
-
getPrismUnmarshaller
public PrismUnmarshaller getPrismUnmarshaller()
WARNING! This is not really public method. It should NOT not used outside the prism implementation.
-
getPrismMarshaller
@NotNull public @NotNull PrismMarshaller getPrismMarshaller()
-
getParserDom
public DomLexicalProcessor getParserDom()
WARNING! This is not really public method. It should NOT not used outside the prism implementation.
-
getBeanMarshaller
@NotNull public @NotNull BeanMarshaller getBeanMarshaller()
WARNING! This is not really public method. It should NOT not used outside the prism implementation.
-
getBeanUnmarshaller
@NotNull public @NotNull BeanUnmarshaller getBeanUnmarshaller()
-
getJaxbDomHack
@NotNull public @NotNull JaxbDomHack getJaxbDomHack()
-
getDefinitionFactory
@NotNull public @NotNull SchemaDefinitionFactory getDefinitionFactory()
-
setDefinitionFactory
public void setDefinitionFactory(SchemaDefinitionFactory schemaDefinitionFactory)
-
getDefaultPolyStringNormalizer
@NotNull public @NotNull PolyStringNormalizer getDefaultPolyStringNormalizer()
Description copied from interface:PrismContext
Returns the default PolyString normalizer.- Specified by:
getDefaultPolyStringNormalizer
in interfacePrismContext
-
getDefaultProtector
public Protector getDefaultProtector()
Description copied from interface:PrismContext
Returns the default protector.- Specified by:
getDefaultProtector
in interfacePrismContext
-
setDefaultProtector
public void setDefaultProtector(Protector defaultProtector)
-
getQueryConverter
@NotNull public @NotNull QueryConverter getQueryConverter()
- Specified by:
getQueryConverter
in interfacePrismContext
-
getMonitor
public PrismMonitor getMonitor()
- Specified by:
getMonitor
in interfacePrismContext
-
setMonitor
public void setMonitor(PrismMonitor monitor)
- Specified by:
setMonitor
in interfacePrismContext
-
getDefaultRelation
public QName getDefaultRelation()
Description copied from interface:PrismContext
If defined, it is considered to be the same as the relation of 'null'. Currently in midPoint, it is the value of org:default.- Specified by:
getDefaultRelation
in interfacePrismContext
-
setDefaultRelation
public void setDefaultRelation(QName defaultRelation)
- Specified by:
setDefaultRelation
in interfacePrismContext
-
getObjectsElementName
public QName getObjectsElementName()
Description copied from interface:PrismContext
If defined, marks the 'multiple objects' element.- Specified by:
getObjectsElementName
in interfacePrismContext
-
setObjectsElementName
public void setObjectsElementName(QName objectsElementName)
-
getDefaultReferenceTypeName
public QName getDefaultReferenceTypeName()
Description copied from interface:PrismContext
Type name for serialization of Referencable that's not of XML type (e.g. DefaultReferencableImpl). In midPoint it's c:ObjectReferenceType.VERY EXPERIMENTAL. Maybe we should simply use t:ObjectReferenceType in such cases.
- Specified by:
getDefaultReferenceTypeName
in interfacePrismContext
-
setDefaultReferenceTypeName
public void setDefaultReferenceTypeName(QName defaultReferenceTypeName)
-
getExtensionContainerTypeName
public QName getExtensionContainerTypeName()
- Specified by:
getExtensionContainerTypeName
in interfacePrismContext
- Returns:
- Name of the generic type for object/container extension (e.g. c:ExtensionType).
-
setExtensionContainerTypeName
public void setExtensionContainerTypeName(QName typeName)
- Specified by:
setExtensionContainerTypeName
in interfacePrismContext
-
parserFor
@NotNull public @NotNull PrismParser parserFor(@NotNull @NotNull File file)
Description copied from interface:PrismContext
Creates a parser ready to process the given file.- Specified by:
parserFor
in interfacePrismContext
- Parameters:
file
- File to be parsed.- Returns:
- Parser that can be invoked to retrieve the (parsed) content of the file.
-
parserFor
@NotNull public @NotNull PrismParser parserFor(@NotNull @NotNull InputStream stream)
Description copied from interface:PrismContext
Creates a parser ready to process data from the given input stream.- Specified by:
parserFor
in interfacePrismContext
- Parameters:
stream
- Input stream to be parsed.- Returns:
- Parser that can be invoked to retrieve the (parsed) content of the input stream.
-
parserFor
@NotNull public @NotNull PrismParserNoIO parserFor(@NotNull @NotNull String data)
Description copied from interface:PrismContext
Creates a parser ready to process data from the given string. Format/language of the data will be auto-detected, so the typically followingPrismParser.language(String)
can be omitted.- Specified by:
parserFor
in interfacePrismContext
- Parameters:
data
- String with the data to be parsed.- Returns:
- Parser that can be invoked to retrieve the (parsed) content.
-
parserFor
@NotNull public @NotNull PrismParserNoIO parserFor(@NotNull @NotNull RootXNode xnode)
Description copied from interface:PrismContext
Creates a parser ready to process data from the given XNode tree.- Specified by:
parserFor
in interfacePrismContext
- Parameters:
xnode
- XNode tree with the data to be parsed.- Returns:
- Parser that can be invoked to retrieve the (parsed) content.
-
parserFor
@NotNull public @NotNull PrismParserNoIO parserFor(@NotNull @NotNull Element data)
Description copied from interface:PrismContext
Creates a parser ready to process data from the given DOM element.- Specified by:
parserFor
in interfacePrismContext
- Parameters:
data
- Element with the data to be parsed.- Returns:
- Parser that can be invoked to retrieve the (parsed) content.
-
detectLanguage
@NotNull public @NotNull String detectLanguage(@NotNull @NotNull File file) throws IOException
- Specified by:
detectLanguage
in interfacePrismContext
- Throws:
IOException
-
getParsingMigrator
public ParsingMigrator getParsingMigrator()
- Specified by:
getParsingMigrator
in interfacePrismContext
-
setParsingMigrator
public void setParsingMigrator(ParsingMigrator parsingMigrator)
- Specified by:
setParsingMigrator
in interfacePrismContext
-
adopt
public <C extends Containerable> void adopt(PrismContainer<C> container, Class<C> declaredType) throws SchemaException
Set up the specified object with prism context instance and schema definition.- Specified by:
adopt
in interfacePrismContext
- Throws:
SchemaException
-
adopt
public <C extends Containerable> void adopt(PrismContainer<C> container) throws SchemaException
- Specified by:
adopt
in interfacePrismContext
- Throws:
SchemaException
-
adopt
public void adopt(Objectable objectable) throws SchemaException
- Specified by:
adopt
in interfacePrismContext
- Throws:
SchemaException
-
adopt
public void adopt(Containerable containerable) throws SchemaException
- Specified by:
adopt
in interfacePrismContext
- Throws:
SchemaException
-
adopt
public void adopt(PrismContainerValue value) throws SchemaException
- Specified by:
adopt
in interfacePrismContext
- Throws:
SchemaException
-
adopt
public <T extends Objectable> void adopt(ObjectDelta<T> delta) throws SchemaException
- Specified by:
adopt
in interfacePrismContext
- Throws:
SchemaException
-
adopt
public <C extends Containerable,O extends Objectable> void adopt(C containerable, Class<O> type, ItemPath path) throws SchemaException
- Specified by:
adopt
in interfacePrismContext
- Throws:
SchemaException
-
adopt
public <C extends Containerable,O extends Objectable> void adopt(PrismContainerValue<C> prismContainerValue, Class<O> type, ItemPath path) throws SchemaException
- Specified by:
adopt
in interfacePrismContext
- Throws:
SchemaException
-
adopt
public <C extends Containerable> void adopt(PrismContainerValue<C> prismContainerValue, QName typeName, ItemPath path) throws SchemaException
- Specified by:
adopt
in interfacePrismContext
- Throws:
SchemaException
-
serializerFor
@NotNull public @NotNull PrismSerializer<String> serializerFor(@NotNull @NotNull String language)
Description copied from interface:PrismContext
Creates a serializer for the given language.- Specified by:
serializerFor
in interfacePrismContext
- Parameters:
language
- Language (like xml, json, yaml).- Returns:
- The serializer.
-
xmlSerializer
@NotNull public @NotNull PrismSerializer<String> xmlSerializer()
Description copied from interface:PrismContext
Creates a serializer for XML language.- Specified by:
xmlSerializer
in interfacePrismContext
- Returns:
- The serializer.
-
jsonSerializer
@NotNull public @NotNull PrismSerializer<String> jsonSerializer()
Description copied from interface:PrismContext
Creates a serializer for JSON language.- Specified by:
jsonSerializer
in interfacePrismContext
- Returns:
- The serializer.
-
yamlSerializer
@NotNull public @NotNull PrismSerializer<String> yamlSerializer()
Description copied from interface:PrismContext
Creates a serializer for YAML language.- Specified by:
yamlSerializer
in interfacePrismContext
- Returns:
- The serializer.
-
domSerializer
@NotNull public @NotNull PrismSerializer<Element> domSerializer()
Description copied from interface:PrismContext
Creates a serializer for DOM. The difference from XML serializer is that XML produces String output whereas this one produces a DOM Element.- Specified by:
domSerializer
in interfacePrismContext
- Returns:
- The serializer.
-
xnodeSerializer
@NotNull public @NotNull PrismSerializer<RootXNode> xnodeSerializer()
Description copied from interface:PrismContext
Creates a serializer for XNode. The output of this serializer is intermediate XNode representation.- Specified by:
xnodeSerializer
in interfacePrismContext
- Returns:
- The serializer.
-
createObject
@NotNull public <T extends Objectable> @NotNull PrismObject<T> createObject(@NotNull @NotNull Class<T> clazz) throws SchemaException
Description copied from interface:PrismContext
Creates a new PrismObject of a given type.- Specified by:
createObject
in interfacePrismContext
- Parameters:
clazz
- Static type of the object to be created.- Returns:
- New PrismObject.
- Throws:
SchemaException
- If a definition for the given class couldn't be found.
-
createObjectable
@NotNull public <T extends Objectable> T createObjectable(@NotNull @NotNull Class<T> clazz) throws SchemaException
Description copied from interface:PrismContext
Creates a new Objectable of a given type.- Specified by:
createObjectable
in interfacePrismContext
- Parameters:
clazz
- Static type of the object to be created.- Returns:
- New PrismObject's objectable content.
- Throws:
SchemaException
- If a definition for the given class couldn't be found.
-
createKnownObject
@NotNull public <O extends Objectable> @NotNull PrismObject<O> createKnownObject(@NotNull @NotNull Class<O> clazz)
Description copied from interface:PrismContext
Creates a new PrismObject of a given static type. It is expected that the type exists, so any SchemaExceptions will be thrown as run-time exception.- Specified by:
createKnownObject
in interfacePrismContext
- Parameters:
clazz
- Static type of the object to be created.- Returns:
- New PrismObject.
-
createKnownObjectable
@NotNull public <O extends Objectable> O createKnownObjectable(@NotNull @NotNull Class<O> clazz)
Description copied from interface:PrismContext
Creates a new Objectable of a given static type. It is expected that the type exists, so any SchemaExceptions will be thrown as run-time exception.- Specified by:
createKnownObjectable
in interfacePrismContext
- Parameters:
clazz
- Static type of the object to be created.- Returns:
- New PrismObject's objectable content.
-
getLexicalProcessorRegistry
@NotNull public @NotNull LexicalProcessorRegistry getLexicalProcessorRegistry()
-
isDefaultRelation
public boolean isDefaultRelation(QName relation)
- Specified by:
isDefaultRelation
in interfacePrismContext
-
relationsEquivalent
public boolean relationsEquivalent(QName relation1, QName relation2)
- Specified by:
relationsEquivalent
in interfacePrismContext
-
relationMatches
public boolean relationMatches(QName relationQuery, QName relation)
- Specified by:
relationMatches
in interfacePrismContext
-
relationMatches
public boolean relationMatches(@NotNull @NotNull List<QName> relationQuery, QName relation)
Description copied from interface:PrismContext
Returns true of any of the relation in the relationQuery list matches specified relation.- Specified by:
relationMatches
in interfacePrismContext
-
getDefaultParsingContext
public ParsingContext getDefaultParsingContext()
- Specified by:
getDefaultParsingContext
in interfacePrismContext
-
createParsingContextForAllowMissingRefTypes
public ParsingContext createParsingContextForAllowMissingRefTypes()
- Specified by:
createParsingContextForAllowMissingRefTypes
in interfacePrismContext
-
createParsingContextForCompatibilityMode
public ParsingContext createParsingContextForCompatibilityMode()
- Specified by:
createParsingContextForCompatibilityMode
in interfacePrismContext
-
emptyPath
public UniformItemPath emptyPath()
- Specified by:
emptyPath
in interfacePrismContext
-
path
public UniformItemPath path(Object... namesOrIdsOrSegments)
- Specified by:
path
in interfacePrismContext
-
hacks
public Hacks hacks()
- Specified by:
hacks
in interfacePrismContext
-
xnodeFactory
public XNodeFactory xnodeFactory()
- Specified by:
xnodeFactory
in interfacePrismContext
-
xnodeMutator
public XNodeMutator xnodeMutator()
- Specified by:
xnodeMutator
in interfacePrismContext
-
createInitializedProtector
public KeyStoreBasedProtector createInitializedProtector(KeyStoreBasedProtectorBuilder builder)
Description copied from interface:ProtectorCreator
Creates initialized KeyStoreBasedProtector according to configured KeyStoreBasedProtectorBuilder object.- Specified by:
createInitializedProtector
in interfaceProtectorCreator
-
createProtector
public KeyStoreBasedProtector createProtector(KeyStoreBasedProtectorBuilder builder)
Description copied from interface:ProtectorCreator
Creates uninitialized KeyStoreBasedProtector according to configured KeyStoreBasedProtectorBuilder object.- Specified by:
createProtector
in interfaceProtectorCreator
-
toUniformPath
@NotNull public @NotNull UniformItemPath toUniformPath(ItemPath path)
Description copied from interface:PrismContext
Temporary- Specified by:
toUniformPath
in interfacePrismContext
-
toUniformPathKeepNull
public UniformItemPath toUniformPathKeepNull(ItemPath path)
- Specified by:
toUniformPathKeepNull
in interfacePrismContext
-
toUniformPath
public UniformItemPath toUniformPath(ItemPathType path)
- Specified by:
toUniformPath
in interfacePrismContext
-
createCanonicalItemPath
public CanonicalItemPath createCanonicalItemPath(ItemPath itemPath, QName objectType)
Description copied from interface:PrismContext
Temporary- Specified by:
createCanonicalItemPath
in interfacePrismContext
-
createCanonicalItemPath
public CanonicalItemPath createCanonicalItemPath(ItemPath itemPath)
Description copied from interface:PrismContext
Temporary- Specified by:
createCanonicalItemPath
in interfacePrismContext
-
deltaFor
public <C extends Containerable> S_ItemEntry deltaFor(Class<C> objectClass) throws SchemaException
- Specified by:
deltaFor
in interfacePrismContext
- Throws:
SchemaException
-
queryFor
public S_FilterEntryOrEmpty queryFor(Class<? extends Containerable> queryClass)
- Specified by:
queryFor
in interfacePrismContext
-
deltaFactory
@NotNull public @NotNull DeltaFactory deltaFactory()
Description copied from interface:PrismContext
Access point to the "old" way of creating deltas. It is generally considered deprecated. DeltaBuilder (accessed via deltaFor method) should be used instead.However, because there is some functionality (like creation of empty deltas) that is not covered by the delta builder, we keep this method not marked as deprecated. Only particular parts of DeltaFactory are marked as deprecated.
- Specified by:
deltaFactory
in interfacePrismContext
-
queryFactory
@NotNull public @NotNull QueryFactory queryFactory()
Description copied from interface:PrismContext
Access point to the "old" way of creating queries, filters and paging instructions. It is generally considered deprecated. QueryBuilder (accessed via queryFor method) should be used instead.However, because there is some functionality (like creation of standalone paging instructions) that is not covered by the query builder, we keep this method not marked as deprecated. Only particular parts of QueryFactory are marked as deprecated.
- Specified by:
queryFactory
in interfacePrismContext
-
itemFactory
@NotNull public @NotNull ItemFactory itemFactory()
- Specified by:
itemFactory
in interfacePrismContext
-
definitionFactory
@NotNull public @NotNull DefinitionFactory definitionFactory()
- Specified by:
definitionFactory
in interfacePrismContext
-
itemPathParser
@NotNull public @NotNull ItemPathParser itemPathParser()
- Specified by:
itemPathParser
in interfacePrismContext
-
setExtraValidation
public void setExtraValidation(boolean value)
- Specified by:
setExtraValidation
in interfacePrismContext
-
schemaFactory
@NotNull public @NotNull SchemaFactory schemaFactory()
- Specified by:
schemaFactory
in interfacePrismContext
-
setValueMetadataFactory
public void setValueMetadataFactory(ValueMetadataFactory valueMetadataFactory)
- Specified by:
setValueMetadataFactory
in interfacePrismContext
-
getValueMetadataFactory
public ValueMetadataFactory getValueMetadataFactory()
- Specified by:
getValueMetadataFactory
in interfacePrismContext
-
getProvenanceEquivalenceStrategy
public EquivalenceStrategy getProvenanceEquivalenceStrategy()
- Specified by:
getProvenanceEquivalenceStrategy
in interfacePrismContext
-
setProvenanceEquivalenceStrategy
public void setProvenanceEquivalenceStrategy(EquivalenceStrategy provenanceEquivalenceStrategy)
-
createQueryParser
public PrismQueryLanguageParser createQueryParser(Map<String,String> prefixToNamespace)
- Specified by:
createQueryParser
in interfacePrismContext
-
querySerializer
public PrismQuerySerializer querySerializer()
- Specified by:
querySerializer
in interfacePrismContext
-
-