|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.migration.GenericMapper com.atlassian.crowd.migration.legacy.XmlMapper com.atlassian.crowd.migration.PropertyMapper
public class PropertyMapper
This mapper will handle the mapping of a Property
Field Summary | |
---|---|
protected static String |
PROPERTIES_XML_ROOT
|
protected static String |
PROPERTY_XML_KEY
|
protected static String |
PROPERTY_XML_NAME
|
protected static String |
PROPERTY_XML_NODE
|
protected static String |
PROPERTY_XML_VALUE
|
Fields inherited from class com.atlassian.crowd.migration.GenericMapper |
---|
DATABASE_DATE_FORMAT, logger, PLUGIN_KEY_PREFIX, XML_DATE_FORMAT |
Constructor Summary | |
---|---|
PropertyMapper(org.hibernate.SessionFactory sessionFactory,
BatchProcessor batchProcessor,
PropertyDAO propertyDAO)
|
Method Summary | |
---|---|
org.dom4j.Element |
exportXml(Map options)
Exports to V2 XML. |
void |
importXml(org.dom4j.Element root)
Imports V2 XML. |
Methods inherited from class com.atlassian.crowd.migration.legacy.XmlMapper |
---|
exportInternalEntity, exportSingleValuedAttributes, findAllExportableDirectories, getDirectoryManager, getInternalEntityTemplateFromXml, getSingleValuedAttributesMapFromXml, setDirectoryManager |
Methods inherited from class com.atlassian.crowd.migration.GenericMapper |
---|
addEntities, addEntity, addEntityViaMerge, addEntityViaSave, getAttributeValue, getDateAsFormattedString, getDateFromDatabase, getDateFromXml, getDirectoryTypeFromLegacyCode, getNameFromLegacyCode, getOperationTypeFromLegacyPermissionName, getSessionFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String PROPERTIES_XML_ROOT
protected static final String PROPERTY_XML_NODE
protected static final String PROPERTY_XML_KEY
protected static final String PROPERTY_XML_NAME
protected static final String PROPERTY_XML_VALUE
Constructor Detail |
---|
public PropertyMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, PropertyDAO propertyDAO)
Method Detail |
---|
public org.dom4j.Element exportXml(Map options) throws ExportException
Mapper
exportXml
in interface Mapper
options
- map of arbitrarty options.
ExportException
- error producing XML.public void importXml(org.dom4j.Element root) throws ImportException
Mapper
importXml
in interface Mapper
root
- root XML element.
ImportException
- error importing data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |