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
Modifier and TypeFieldDescriptionprotected final DomainHolder
<DataSource> protected final Resource
protected final Resource
Fields inherited from class org.apache.syncope.core.persistence.common.content.AbstractXMLContentLoader
env, LOG
Fields inherited from interface org.apache.syncope.core.persistence.api.content.ContentDealer
ROOT_ELEMENT
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionXMLContentLoader
(DomainHolder<DataSource> domainHolder, Resource viewsXML, Resource indexesXML, Environment env) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createIndexes
(String domain) protected void
createViews
(String domain) protected boolean
existingData
(String domain) protected void
loadDefaultContent
(String domain, String contentXML) Methods inherited from class org.apache.syncope.core.persistence.common.content.AbstractXMLContentLoader
getOrder, load, saxParser
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
existingData
in classAbstractXMLContentLoader
-
createViews
- Specified by:
createViews
in classAbstractXMLContentLoader
- Throws:
IOException
-
createIndexes
- Specified by:
createIndexes
in classAbstractXMLContentLoader
- Throws:
IOException
-
loadDefaultContent
- Specified by:
loadDefaultContent
in classAbstractXMLContentLoader
- Throws:
Exception
-