public class OfbizImportHandler extends org.xml.sax.helpers.DefaultHandler
Modifier and Type | Field and Description |
---|---|
static SecureXmlEntityResolver |
EMPTY_ENTITY_RESOLVER |
Constructor and Description |
---|
OfbizImportHandler(OfBizDelegator ofBizDelegator,
Executor executor,
IndexPathManager indexPathManager,
AttachmentPathManager attachmentPathManager,
boolean useDefaultPaths,
Set<String> propertyKeysRequiredByPlugins) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
public static final SecureXmlEntityResolver EMPTY_ENTITY_RESOLVER
public OfbizImportHandler(OfBizDelegator ofBizDelegator, Executor executor, IndexPathManager indexPathManager, AttachmentPathManager attachmentPathManager, boolean useDefaultPaths, Set<String> propertyKeysRequiredByPlugins)
public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
resolveEntity
in interface EntityResolver
resolveEntity
in class org.xml.sax.helpers.DefaultHandler
IOException
SAXException
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
protected void createWithRetry(List<org.ofbiz.core.entity.GenericValue> valueBatch) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void setCreateEntities(boolean createEntities)
public void setTaskProgressSink(TaskProgressSink taskProgressSink)
public long getEntityCount()
@Nullable public String getBuildNumber()
public Throwable getImportError()
public boolean isUseDefaultIndexPath()
public boolean isUseDefaultAttachmentPath()
@Nonnull public List<UpgradeHistoryDTO> getUpgradeHistory()
public long getLastUpgradeBuildNumber()
public ErrorCollection getErrorCollection()
public com.atlassian.fugue.Option<String> getExportDate()
Copyright © 2002-2017 Atlassian. All Rights Reserved.