com.atlassian.jira.action.admin
Class OfbizImportHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.atlassian.jira.action.admin.OfbizImportHandler
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class OfbizImportHandler
- extends org.xml.sax.helpers.DefaultHandler
Sax handler for constructing GenericValues from data in XML format.
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_ENTITY_RESOLVER
public static final SecureXmlEntityResolver EMPTY_ENTITY_RESOLVER
OfbizImportHandler
public OfbizImportHandler(OfBizDelegator ofBizDelegator,
Executor executor,
LicenseStringFactory licenseStringFactory,
IndexPathManager indexPathManager,
AttachmentPathManager attachmentPathManager,
boolean useDefaultPaths)
resolveEntity
public InputSource resolveEntity(String publicId,
String systemId)
throws IOException,
SAXException
- Specified by:
resolveEntity
in interface EntityResolver
- Overrides:
resolveEntity
in class org.xml.sax.helpers.DefaultHandler
- Throws:
IOException
SAXException
startDocument
public void startDocument()
throws SAXException
- Specified by:
startDocument
in interface ContentHandler
- Overrides:
startDocument
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
- Specified by:
endDocument
in interface ContentHandler
- Overrides:
endDocument
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
startElement
public void startElement(String uri,
String localName,
String qName,
Attributes attributes)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
endElement
public void endElement(String uri,
String localName,
String qName)
throws SAXException
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
createWithDeadlockRetry
protected void createWithDeadlockRetry(List<org.ofbiz.core.entity.GenericValue> valueBatch)
throws org.ofbiz.core.entity.GenericEntityException
- Throws:
org.ofbiz.core.entity.GenericEntityException
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
characters
in interface ContentHandler
- Overrides:
characters
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
setCreateEntities
public void setCreateEntities(boolean createEntities)
setTaskProgressSink
public void setTaskProgressSink(TaskProgressSink taskProgressSink)
getEntityCount
public long getEntityCount()
getBuildNumber
@Nullable
public String getBuildNumber()
- Returns:
- the build number as read from the xml file or null if none found.
getLicenseString
@Nullable
public String getLicenseString()
getImportError
public Throwable getImportError()
isUseDefaultIndexPath
public boolean isUseDefaultIndexPath()
isUseDefaultAttachmentPath
public boolean isUseDefaultAttachmentPath()
getIndexPath
@Nullable
public String getIndexPath()
getAttachmentPath
@Nullable
public String getAttachmentPath()
getVersion
@Nullable
public String getVersion()
getMinimumDowngradeVersion
@Nullable
public String getMinimumDowngradeVersion()
getErrorCollection
public ErrorCollection getErrorCollection()
getExportDate
public com.atlassian.fugue.Option<String> getExportDate()
Copyright © 2002-2014 Atlassian. All Rights Reserved.