Class XMLContentLoader
java.lang.Object
org.apache.syncope.core.persistence.common.content.AbstractXMLContentLoader
org.apache.syncope.core.persistence.jpa.content.XMLContentLoader
- All Implemented Interfaces:
ContentDealer,ContentLoader,SyncopeCoreLoader,Ordered
Initialize Database with default content if no data is present already.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DomainHolder<DataSource> protected final Resourceprotected final ResourceFields inherited from class org.apache.syncope.core.persistence.common.content.AbstractXMLContentLoader
env, LOGFields inherited from interface org.apache.syncope.core.persistence.api.content.ContentDealer
ROOT_ELEMENTFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionXMLContentLoader(DomainHolder<DataSource> domainHolder, Resource viewsXML, Resource indexesXML, Environment env) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateIndexes(String domain) protected voidcreateViews(String domain) protected booleanexistingData(String domain) protected voidloadDefaultContent(String domain, String contentXML) Methods inherited from class org.apache.syncope.core.persistence.common.content.AbstractXMLContentLoader
getOrder, load, saxParserMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.syncope.core.persistence.api.SyncopeCoreLoader
load, unload, unload
-
Field Details
-
domainHolder
-
viewsXML
-
indexesXML
-
-
Constructor Details
-
XMLContentLoader
public XMLContentLoader(DomainHolder<DataSource> domainHolder, Resource viewsXML, Resource indexesXML, Environment env)
-
-
Method Details
-
existingData
- Specified by:
existingDatain classAbstractXMLContentLoader
-
createViews
- Specified by:
createViewsin classAbstractXMLContentLoader- Throws:
IOException
-
createIndexes
- Specified by:
createIndexesin classAbstractXMLContentLoader- Throws:
IOException
-
loadDefaultContent
- Specified by:
loadDefaultContentin classAbstractXMLContentLoader- Throws:
Exception
-