public class

OfbizImportHandler

extends DefaultHandler
java.lang.Object
   ↳ org.xml.sax.helpers.DefaultHandler
     ↳ com.atlassian.jira.action.admin.OfbizImportHandler

Class Overview

Sax handler for constructing GenericValues from data in XML format.

Summary

Fields
public static final SecureXmlEntityResolver EMPTY_ENTITY_RESOLVER
Public Constructors
OfbizImportHandler(OfBizDelegator ofBizDelegator, Executor executor, LicenseStringFactory licenseStringFactory, IndexPathManager indexPathManager, AttachmentPathManager attachmentPathManager, boolean useDefaultPaths)
Public Methods
void characters(char[] ch, int start, int length)
void endDocument()
void endElement(String uri, String localName, String qName)
@Nullable String getAttachmentPath()
@Nullable String getBuildNumber()
long getEntityCount()
ErrorCollection getErrorCollection()
Option<String> getExportDate()
Throwable getImportError()
@Nullable String getIndexPath()
@Nullable String getLicenseString()
@Nullable String getMinimumDowngradeVersion()
@Nullable String getVersion()
boolean isUseDefaultAttachmentPath()
boolean isUseDefaultIndexPath()
InputSource resolveEntity(String publicId, String systemId)
void setCreateEntities(boolean createEntities)
void setTaskProgressSink(TaskProgressSink taskProgressSink)
void startDocument()
void startElement(String uri, String localName, String qName, Attributes attributes)
Protected Methods
void createWithDeadlockRetry(List<GenericValue> valueBatch)
[Expand]
Inherited Methods
From class org.xml.sax.helpers.DefaultHandler
From class java.lang.Object
From interface org.xml.sax.ContentHandler
From interface org.xml.sax.DTDHandler
From interface org.xml.sax.EntityResolver
From interface org.xml.sax.ErrorHandler

Fields

public static final SecureXmlEntityResolver EMPTY_ENTITY_RESOLVER

Public Constructors

public OfbizImportHandler (OfBizDelegator ofBizDelegator, Executor executor, LicenseStringFactory licenseStringFactory, IndexPathManager indexPathManager, AttachmentPathManager attachmentPathManager, boolean useDefaultPaths)

Public Methods

public void characters (char[] ch, int start, int length)

Throws
SAXException

public void endDocument ()

Throws
SAXException

public void endElement (String uri, String localName, String qName)

Throws
SAXException

@Nullable public String getAttachmentPath ()

@Nullable public String getBuildNumber ()

Returns
  • the build number as read from the xml file or null if none found.

public long getEntityCount ()

public ErrorCollection getErrorCollection ()

public Option<String> getExportDate ()

public Throwable getImportError ()

@Nullable public String getIndexPath ()

@Nullable public String getLicenseString ()

@Nullable public String getMinimumDowngradeVersion ()

@Nullable public String getVersion ()

public boolean isUseDefaultAttachmentPath ()

public boolean isUseDefaultIndexPath ()

public InputSource resolveEntity (String publicId, String systemId)

Throws
IOException
SAXException

public void setCreateEntities (boolean createEntities)

public void setTaskProgressSink (TaskProgressSink taskProgressSink)

public void startDocument ()

Throws
SAXException

public void startElement (String uri, String localName, String qName, Attributes attributes)

Throws
SAXException

Protected Methods

protected void createWithDeadlockRetry (List<GenericValue> valueBatch)

Throws
GenericEntityException