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 voidadopt(Containerable containerable)<T extends Objectable>
voidadopt(ObjectDelta<T> delta)voidadopt(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.voidadopt(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)voidconfigurePolyStringNormalizer(PolyStringNormalizerConfigurationType configuration)static PrismContextImplcreate(@NotNull SchemaRegistryImpl schemaRegistry)CanonicalItemPathcreateCanonicalItemPath(ItemPath itemPath)TemporaryCanonicalItemPathcreateCanonicalItemPath(ItemPath itemPath, QName objectType)Temporarystatic PrismContextImplcreateEmptyContext(@NotNull SchemaRegistryImpl schemaRegistry)KeyStoreBasedProtectorcreateInitializedProtector(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.ParsingContextcreateParsingContextForAllowMissingRefTypes()ParsingContextcreateParsingContextForCompatibilityMode()KeyStoreBasedProtectorcreateProtector(KeyStoreBasedProtectorBuilder builder)Creates uninitialized KeyStoreBasedProtector according to configured KeyStoreBasedProtectorBuilder object.PrismQueryLanguageParsercreateQueryParser(Map<String,String> prefixToNamespace)@NotNull DefinitionFactorydefinitionFactory()@NotNull DeltaFactorydeltaFactory()Access point to the "old" way of creating deltas.<C extends Containerable>
S_ItemEntrydeltaFor(Class<C> objectClass)@NotNull StringdetectLanguage(@NotNull File file)@NotNull PrismSerializer<Element>domSerializer()Creates a serializer for DOM.UniformItemPathemptyPath()@NotNull BeanMarshallergetBeanMarshaller()WARNING! This is not really public method.@NotNull BeanUnmarshallergetBeanUnmarshaller()ParsingContextgetDefaultParsingContext()@NotNull PolyStringNormalizergetDefaultPolyStringNormalizer()Returns the default PolyString normalizer.ProtectorgetDefaultProtector()Returns the default protector.QNamegetDefaultReferenceTypeName()Type name for serialization of Referencable that's not of XML type (e.g.QNamegetDefaultRelation()If defined, it is considered to be the same as the relation of 'null'.@NotNull SchemaDefinitionFactorygetDefinitionFactory()XmlEntityResolvergetEntityResolver()QNamegetExtensionContainerTypeName()@NotNull JaxbDomHackgetJaxbDomHack()@NotNull LexicalProcessorRegistrygetLexicalProcessorRegistry()PrismMonitorgetMonitor()QNamegetObjectsElementName()If defined, marks the 'multiple objects' element.DomLexicalProcessorgetParserDom()WARNING! This is not really public method.ParsingMigratorgetParsingMigrator()@NotNull PrismMarshallergetPrismMarshaller()PrismUnmarshallergetPrismUnmarshaller()WARNING! This is not really public method.EquivalenceStrategygetProvenanceEquivalenceStrategy()@NotNull QueryConvertergetQueryConverter()@NotNull SchemaRegistrygetSchemaRegistry()Returns the schema registry.ValueMetadataFactorygetValueMetadataFactory()Hackshacks()voidinitialize()Initializes the prism context, e.g.static booleanisAllowSchemalessSerialization()booleanisDefaultRelation(QName relation)static booleanisExtraValidation()@NotNull ItemFactoryitemFactory()@NotNull ItemPathParseritemPathParser()@NotNull PrismSerializer<String>jsonSerializer()Creates a serializer for JSON language.@NotNull PrismParserNoIOparserFor(@NotNull RootXNode xnode)Creates a parser ready to process data from the given XNode tree.@NotNull PrismParserparserFor(@NotNull File file)Creates a parser ready to process the given file.@NotNull PrismParserparserFor(@NotNull InputStream stream)Creates a parser ready to process data from the given input stream.@NotNull PrismParserNoIOparserFor(@NotNull String data)Creates a parser ready to process data from the given string.@NotNull PrismParserNoIOparserFor(@NotNull Element data)Creates a parser ready to process data from the given DOM element.UniformItemPathpath(Object... namesOrIdsOrSegments)@NotNull QueryFactoryqueryFactory()Access point to the "old" way of creating queries, filters and paging instructions.S_FilterEntryOrEmptyqueryFor(Class<? extends Containerable> queryClass)PrismQuerySerializerquerySerializer()booleanrelationMatches(@NotNull List<QName> relationQuery, QName relation)Returns true of any of the relation in the relationQuery list matches specified relation.booleanrelationMatches(QName relationQuery, QName relation)booleanrelationsEquivalent(QName relation1, QName relation2)@NotNull SchemaFactoryschemaFactory()@NotNull PrismSerializer<String>serializerFor(@NotNull String language)Creates a serializer for the given language.static voidsetAllowSchemalessSerialization(boolean allowSchemalessSerialization)voidsetDefaultProtector(Protector defaultProtector)voidsetDefaultReferenceTypeName(QName defaultReferenceTypeName)voidsetDefaultRelation(QName defaultRelation)voidsetDefinitionFactory(SchemaDefinitionFactory schemaDefinitionFactory)voidsetExtensionContainerTypeName(QName typeName)voidsetExtraValidation(boolean value)voidsetMonitor(PrismMonitor monitor)voidsetObjectsElementName(QName objectsElementName)voidsetParsingMigrator(ParsingMigrator parsingMigrator)voidsetProvenanceEquivalenceStrategy(EquivalenceStrategy provenanceEquivalenceStrategy)voidsetValueMetadataFactory(ValueMetadataFactory valueMetadataFactory)@NotNull UniformItemPathtoUniformPath(ItemPath path)TemporaryUniformItemPathtoUniformPath(ItemPathType path)UniformItemPathtoUniformPathKeepNull(ItemPath path)@NotNull PrismSerializer<String>xmlSerializer()Creates a serializer for XML language.XNodeFactoryxnodeFactory()XNodeMutatorxnodeMutator()@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, IOExceptionDescription copied from interface:PrismContextInitializes the prism context, e.g. loads and parses all the schemas.- Specified by:
initializein interfacePrismContext- Throws:
SchemaExceptionSAXExceptionIOException
-
configurePolyStringNormalizer
public void configurePolyStringNormalizer(PolyStringNormalizerConfigurationType configuration) throws ClassNotFoundException, InstantiationException, IllegalAccessException
- Specified by:
configurePolyStringNormalizerin interfacePrismContext- Throws:
ClassNotFoundExceptionInstantiationExceptionIllegalAccessException
-
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:PrismContextReturns the schema registry.- Specified by:
getSchemaRegistryin 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:PrismContextReturns the default PolyString normalizer.- Specified by:
getDefaultPolyStringNormalizerin interfacePrismContext
-
getDefaultProtector
public Protector getDefaultProtector()
Description copied from interface:PrismContextReturns the default protector.- Specified by:
getDefaultProtectorin interfacePrismContext
-
setDefaultProtector
public void setDefaultProtector(Protector defaultProtector)
-
getQueryConverter
@NotNull public @NotNull QueryConverter getQueryConverter()
- Specified by:
getQueryConverterin interfacePrismContext
-
getMonitor
public PrismMonitor getMonitor()
- Specified by:
getMonitorin interfacePrismContext
-
setMonitor
public void setMonitor(PrismMonitor monitor)
- Specified by:
setMonitorin interfacePrismContext
-
getDefaultRelation
public QName getDefaultRelation()
Description copied from interface:PrismContextIf 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:
getDefaultRelationin interfacePrismContext
-
setDefaultRelation
public void setDefaultRelation(QName defaultRelation)
- Specified by:
setDefaultRelationin interfacePrismContext
-
getObjectsElementName
public QName getObjectsElementName()
Description copied from interface:PrismContextIf defined, marks the 'multiple objects' element.- Specified by:
getObjectsElementNamein interfacePrismContext
-
setObjectsElementName
public void setObjectsElementName(QName objectsElementName)
-
getDefaultReferenceTypeName
public QName getDefaultReferenceTypeName()
Description copied from interface:PrismContextType 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:
getDefaultReferenceTypeNamein interfacePrismContext
-
setDefaultReferenceTypeName
public void setDefaultReferenceTypeName(QName defaultReferenceTypeName)
-
getExtensionContainerTypeName
public QName getExtensionContainerTypeName()
- Specified by:
getExtensionContainerTypeNamein interfacePrismContext- Returns:
- Name of the generic type for object/container extension (e.g. c:ExtensionType).
-
setExtensionContainerTypeName
public void setExtensionContainerTypeName(QName typeName)
- Specified by:
setExtensionContainerTypeNamein interfacePrismContext
-
parserFor
@NotNull public @NotNull PrismParser parserFor(@NotNull @NotNull File file)
Description copied from interface:PrismContextCreates a parser ready to process the given file.- Specified by:
parserForin 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:PrismContextCreates a parser ready to process data from the given input stream.- Specified by:
parserForin 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:PrismContextCreates 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:
parserForin 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:PrismContextCreates a parser ready to process data from the given XNode tree.- Specified by:
parserForin 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:PrismContextCreates a parser ready to process data from the given DOM element.- Specified by:
parserForin 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:
detectLanguagein interfacePrismContext- Throws:
IOException
-
getParsingMigrator
public ParsingMigrator getParsingMigrator()
- Specified by:
getParsingMigratorin interfacePrismContext
-
setParsingMigrator
public void setParsingMigrator(ParsingMigrator parsingMigrator)
- Specified by:
setParsingMigratorin 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:
adoptin interfacePrismContext- Throws:
SchemaException
-
adopt
public <C extends Containerable> void adopt(PrismContainer<C> container) throws SchemaException
- Specified by:
adoptin interfacePrismContext- Throws:
SchemaException
-
adopt
public void adopt(Objectable objectable) throws SchemaException
- Specified by:
adoptin interfacePrismContext- Throws:
SchemaException
-
adopt
public void adopt(Containerable containerable) throws SchemaException
- Specified by:
adoptin interfacePrismContext- Throws:
SchemaException
-
adopt
public void adopt(PrismContainerValue value) throws SchemaException
- Specified by:
adoptin interfacePrismContext- Throws:
SchemaException
-
adopt
public <T extends Objectable> void adopt(ObjectDelta<T> delta) throws SchemaException
- Specified by:
adoptin interfacePrismContext- Throws:
SchemaException
-
adopt
public <C extends Containerable,O extends Objectable> void adopt(C containerable, Class<O> type, ItemPath path) throws SchemaException
- Specified by:
adoptin 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:
adoptin interfacePrismContext- Throws:
SchemaException
-
adopt
public <C extends Containerable> void adopt(PrismContainerValue<C> prismContainerValue, QName typeName, ItemPath path) throws SchemaException
- Specified by:
adoptin interfacePrismContext- Throws:
SchemaException
-
serializerFor
@NotNull public @NotNull PrismSerializer<String> serializerFor(@NotNull @NotNull String language)
Description copied from interface:PrismContextCreates a serializer for the given language.- Specified by:
serializerForin interfacePrismContext- Parameters:
language- Language (like xml, json, yaml).- Returns:
- The serializer.
-
xmlSerializer
@NotNull public @NotNull PrismSerializer<String> xmlSerializer()
Description copied from interface:PrismContextCreates a serializer for XML language.- Specified by:
xmlSerializerin interfacePrismContext- Returns:
- The serializer.
-
jsonSerializer
@NotNull public @NotNull PrismSerializer<String> jsonSerializer()
Description copied from interface:PrismContextCreates a serializer for JSON language.- Specified by:
jsonSerializerin interfacePrismContext- Returns:
- The serializer.
-
yamlSerializer
@NotNull public @NotNull PrismSerializer<String> yamlSerializer()
Description copied from interface:PrismContextCreates a serializer for YAML language.- Specified by:
yamlSerializerin interfacePrismContext- Returns:
- The serializer.
-
domSerializer
@NotNull public @NotNull PrismSerializer<Element> domSerializer()
Description copied from interface:PrismContextCreates a serializer for DOM. The difference from XML serializer is that XML produces String output whereas this one produces a DOM Element.- Specified by:
domSerializerin interfacePrismContext- Returns:
- The serializer.
-
xnodeSerializer
@NotNull public @NotNull PrismSerializer<RootXNode> xnodeSerializer()
Description copied from interface:PrismContextCreates a serializer for XNode. The output of this serializer is intermediate XNode representation.- Specified by:
xnodeSerializerin 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:PrismContextCreates a new PrismObject of a given type.- Specified by:
createObjectin 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:PrismContextCreates a new Objectable of a given type.- Specified by:
createObjectablein 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:PrismContextCreates 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:
createKnownObjectin 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:PrismContextCreates 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:
createKnownObjectablein 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:
isDefaultRelationin interfacePrismContext
-
relationsEquivalent
public boolean relationsEquivalent(QName relation1, QName relation2)
- Specified by:
relationsEquivalentin interfacePrismContext
-
relationMatches
public boolean relationMatches(QName relationQuery, QName relation)
- Specified by:
relationMatchesin interfacePrismContext
-
relationMatches
public boolean relationMatches(@NotNull @NotNull List<QName> relationQuery, QName relation)Description copied from interface:PrismContextReturns true of any of the relation in the relationQuery list matches specified relation.- Specified by:
relationMatchesin interfacePrismContext
-
getDefaultParsingContext
public ParsingContext getDefaultParsingContext()
- Specified by:
getDefaultParsingContextin interfacePrismContext
-
createParsingContextForAllowMissingRefTypes
public ParsingContext createParsingContextForAllowMissingRefTypes()
- Specified by:
createParsingContextForAllowMissingRefTypesin interfacePrismContext
-
createParsingContextForCompatibilityMode
public ParsingContext createParsingContextForCompatibilityMode()
- Specified by:
createParsingContextForCompatibilityModein interfacePrismContext
-
emptyPath
public UniformItemPath emptyPath()
- Specified by:
emptyPathin interfacePrismContext
-
path
public UniformItemPath path(Object... namesOrIdsOrSegments)
- Specified by:
pathin interfacePrismContext
-
hacks
public Hacks hacks()
- Specified by:
hacksin interfacePrismContext
-
xnodeFactory
public XNodeFactory xnodeFactory()
- Specified by:
xnodeFactoryin interfacePrismContext
-
xnodeMutator
public XNodeMutator xnodeMutator()
- Specified by:
xnodeMutatorin interfacePrismContext
-
createInitializedProtector
public KeyStoreBasedProtector createInitializedProtector(KeyStoreBasedProtectorBuilder builder)
Description copied from interface:ProtectorCreatorCreates initialized KeyStoreBasedProtector according to configured KeyStoreBasedProtectorBuilder object.- Specified by:
createInitializedProtectorin interfaceProtectorCreator
-
createProtector
public KeyStoreBasedProtector createProtector(KeyStoreBasedProtectorBuilder builder)
Description copied from interface:ProtectorCreatorCreates uninitialized KeyStoreBasedProtector according to configured KeyStoreBasedProtectorBuilder object.- Specified by:
createProtectorin interfaceProtectorCreator
-
toUniformPath
@NotNull public @NotNull UniformItemPath toUniformPath(ItemPath path)
Description copied from interface:PrismContextTemporary- Specified by:
toUniformPathin interfacePrismContext
-
toUniformPathKeepNull
public UniformItemPath toUniformPathKeepNull(ItemPath path)
- Specified by:
toUniformPathKeepNullin interfacePrismContext
-
toUniformPath
public UniformItemPath toUniformPath(ItemPathType path)
- Specified by:
toUniformPathin interfacePrismContext
-
createCanonicalItemPath
public CanonicalItemPath createCanonicalItemPath(ItemPath itemPath, QName objectType)
Description copied from interface:PrismContextTemporary- Specified by:
createCanonicalItemPathin interfacePrismContext
-
createCanonicalItemPath
public CanonicalItemPath createCanonicalItemPath(ItemPath itemPath)
Description copied from interface:PrismContextTemporary- Specified by:
createCanonicalItemPathin interfacePrismContext
-
deltaFor
public <C extends Containerable> S_ItemEntry deltaFor(Class<C> objectClass) throws SchemaException
- Specified by:
deltaForin interfacePrismContext- Throws:
SchemaException
-
queryFor
public S_FilterEntryOrEmpty queryFor(Class<? extends Containerable> queryClass)
- Specified by:
queryForin interfacePrismContext
-
deltaFactory
@NotNull public @NotNull DeltaFactory deltaFactory()
Description copied from interface:PrismContextAccess 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:
deltaFactoryin interfacePrismContext
-
queryFactory
@NotNull public @NotNull QueryFactory queryFactory()
Description copied from interface:PrismContextAccess 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:
queryFactoryin interfacePrismContext
-
itemFactory
@NotNull public @NotNull ItemFactory itemFactory()
- Specified by:
itemFactoryin interfacePrismContext
-
definitionFactory
@NotNull public @NotNull DefinitionFactory definitionFactory()
- Specified by:
definitionFactoryin interfacePrismContext
-
itemPathParser
@NotNull public @NotNull ItemPathParser itemPathParser()
- Specified by:
itemPathParserin interfacePrismContext
-
setExtraValidation
public void setExtraValidation(boolean value)
- Specified by:
setExtraValidationin interfacePrismContext
-
schemaFactory
@NotNull public @NotNull SchemaFactory schemaFactory()
- Specified by:
schemaFactoryin interfacePrismContext
-
setValueMetadataFactory
public void setValueMetadataFactory(ValueMetadataFactory valueMetadataFactory)
- Specified by:
setValueMetadataFactoryin interfacePrismContext
-
getValueMetadataFactory
public ValueMetadataFactory getValueMetadataFactory()
- Specified by:
getValueMetadataFactoryin interfacePrismContext
-
getProvenanceEquivalenceStrategy
public EquivalenceStrategy getProvenanceEquivalenceStrategy()
- Specified by:
getProvenanceEquivalenceStrategyin interfacePrismContext
-
setProvenanceEquivalenceStrategy
public void setProvenanceEquivalenceStrategy(EquivalenceStrategy provenanceEquivalenceStrategy)
-
createQueryParser
public PrismQueryLanguageParser createQueryParser(Map<String,String> prefixToNamespace)
- Specified by:
createQueryParserin interfacePrismContext
-
querySerializer
public PrismQuerySerializer querySerializer()
- Specified by:
querySerializerin interfacePrismContext
-
-