com.atlassian.jira.action.admin
Class OfbizImportHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.atlassian.jira.action.admin.OfbizImportHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class OfbizImportHandler
extends DefaultHandler

Sax handler for constructing GenericValues from data in XML format.


Constructor Summary
OfbizImportHandler(OfBizDelegator ofBizDelegator, Executor executor, LicenseStringFactory licenseStringFactory, IndexPathManager indexPathManager, AttachmentPathManager attachmentPathManager, boolean useDefaultPaths)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
           
 void endElement(String uri, String localName, String qName)
           
 String getAttachmentPath()
           
 String getBuildNumber()
           
 long getEntityCount()
           
 Throwable getImportError()
           
 String getIndexPath()
           
 String getLicenseString()
           
 boolean isUseDefaultAttachmentPath()
           
 boolean isUseDefaultIndexPath()
           
 void setCreateEntities(boolean createEntities)
           
 void setTaskProgressSink(TaskProgressSink taskProgressSink)
           
 void startDocument()
           
 void startElement(String uri, String localName, String qName, Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfbizImportHandler

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

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class DefaultHandler
Throws:
SAXException

endDocument

public void endDocument()
                 throws SAXException
Specified by:
endDocument in interface ContentHandler
Overrides:
endDocument in class 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 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 DefaultHandler
Throws:
SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler
Throws:
SAXException

setCreateEntities

public void setCreateEntities(boolean createEntities)

setTaskProgressSink

public void setTaskProgressSink(TaskProgressSink taskProgressSink)

getEntityCount

public long getEntityCount()

getBuildNumber

public String getBuildNumber()
Returns:
the build number as read from the xml file or null if none found.

getLicenseString

public String getLicenseString()

getImportError

public Throwable getImportError()

isUseDefaultIndexPath

public boolean isUseDefaultIndexPath()

isUseDefaultAttachmentPath

public boolean isUseDefaultAttachmentPath()

getIndexPath

public String getIndexPath()

getAttachmentPath

public String getAttachmentPath()


Copyright © 2002-2012 Atlassian. All Rights Reserved.