org.exoplatform.faq.service
Class InitialDataPlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.ks.common.conf.ManagedPlugin
org.exoplatform.faq.service.InitialDataPlugin
- All Implemented Interfaces:
- org.exoplatform.container.component.ComponentPlugin
public class InitialDataPlugin
- extends ManagedPlugin
A plugin to initialize FAQ data from xml export. By default the data will be imported to root category only if it does not already exist
are :
- location : configuration url for the data to import
- forceXML (optional) : indicates if XML data should override existing data
| Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin |
desc, name |
|
Constructor Summary |
InitialDataPlugin(org.exoplatform.container.xml.InitParams params)
|
| Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin |
setDescription, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InitialDataPlugin
public InitialDataPlugin(org.exoplatform.container.xml.InitParams params)
setLocation
public void setLocation(java.lang.String location)
setForceXML
public void setForceXML(boolean forceXML)
getLocation
public java.lang.String getLocation()
isForceXML
public boolean isForceXML()
importData
public boolean importData(FAQService service,
org.exoplatform.container.configuration.ConfigurationManager configurationService)
throws java.lang.RuntimeException
- Throws:
java.lang.RuntimeException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2011 eXo Platform SAS. All Rights Reserved.