Class ContentLoaderHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.syncope.core.persistence.common.content.AbstractContentLoaderHandler
org.apache.syncope.core.persistence.neo4j.content.ContentLoaderHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
SAX handler for generating CREATE statements out of given XML file.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final recordprotected static final recordprotected static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.neo4j.driver.Driverprotected final org.springframework.data.neo4j.core.mapping.Neo4jMappingContextFields inherited from class org.apache.syncope.core.persistence.common.content.AbstractContentLoaderHandler
continueOnError, fetches, LOG, paramSubstitutor -
Constructor Summary
ConstructorsConstructorDescriptionContentLoaderHandler(org.neo4j.driver.Driver driver, org.springframework.data.neo4j.core.mapping.Neo4jMappingContext mappingContext, String rootElement, boolean continueOnError, Environment env) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreate(String qName, Attributes atts) protected static Stringprotected voidfetch(Attributes atts) protected static Stringnodelabels(String primaryLabel) protected Optional<ContentLoaderHandler.Node> parseNode(org.springframework.data.neo4j.core.mapping.NodeDescription<?> nodeDesc, Attributes atts) protected Optional<ContentLoaderHandler.Relationship> parseRelationship(org.springframework.data.neo4j.core.mapping.NodeDescription<?> nodeDesc, String rightNode, Attributes atts) Methods inherited from class org.apache.syncope.core.persistence.common.content.AbstractContentLoaderHandler
startElementMethods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
driver
protected final org.neo4j.driver.Driver driver -
mappingContext
protected final org.springframework.data.neo4j.core.mapping.Neo4jMappingContext mappingContext
-
-
Constructor Details
-
ContentLoaderHandler
public ContentLoaderHandler(org.neo4j.driver.Driver driver, org.springframework.data.neo4j.core.mapping.Neo4jMappingContext mappingContext, String rootElement, boolean continueOnError, Environment env)
-
-
Method Details
-
nodelabels
-
escape
-
fetch
- Specified by:
fetchin classAbstractContentLoaderHandler
-
parseNode
protected Optional<ContentLoaderHandler.Node> parseNode(org.springframework.data.neo4j.core.mapping.NodeDescription<?> nodeDesc, Attributes atts) -
parseRelationship
protected Optional<ContentLoaderHandler.Relationship> parseRelationship(org.springframework.data.neo4j.core.mapping.NodeDescription<?> nodeDesc, String rightNode, Attributes atts) -
create
- Specified by:
createin classAbstractContentLoaderHandler
-