com.atlassian.jira.imports.project.handler
Class IssuePartitonHandler
java.lang.Object
com.atlassian.jira.imports.project.handler.AbstractImportPartitionHandler
com.atlassian.jira.imports.project.handler.IssuePartitonHandler
- All Implemented Interfaces:
- ImportEntityHandler
public class IssuePartitonHandler
- extends AbstractImportPartitionHandler
Parses an XML import file and creates a reduced XML file with just the Issues for the given project.
- Since:
- v3.13
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IssuePartitonHandler
public IssuePartitonHandler(BackupProject backupProject,
PrintWriter printWriter,
org.ofbiz.core.entity.model.ModelEntity modelEntity,
String encoding)
- Parameters:
backupProject
- contains the issue id's that we are interested in partitioning.printWriter
- the partitioned writer that should be written to if the entity being processed should be
written.modelEntity
- is the ModelEntity for the "Issue" entityencoding
- is the encoding that the partitioned files are going to writen in.
handleEntity
public void handleEntity(String entityName,
Map<String,String> attributes)
throws ParseException
- Description copied from interface:
ImportEntityHandler
- This is the main method to implement when using this ImportEntityHandler. This method will provide the
entity name and a complete map of attribute key/value pairs. This includes any nested element tags that
will have CDATA bodies.
- Parameters:
entityName
- identifies the entity (i.e. Issue)attributes
- complete list of the attributes listed in the XML element including the nested
elements.
- Throws:
ParseException
- if the entity is invalid a ParseException will be thrown.
getEntityCount
public int getEntityCount()
Copyright © 2002-2012 Atlassian. All Rights Reserved.