com.atlassian.jira.imports.project.taskprogress
Class EntityTypeTaskProgressProcessor
java.lang.Object
com.atlassian.jira.imports.project.taskprogress.EntityTypeTaskProgressProcessor
- All Implemented Interfaces:
- TaskProgressProcessor
public class EntityTypeTaskProgressProcessor
- extends Object
- implements TaskProgressProcessor
TaskProgressProcessor used in the first pass of the import backup file.
At this stage we don't know the count of entities, just the number of entity types.
- Since:
- v3.13
Method Summary |
void |
processTaskProgress(String entityTypeName,
int entityTypeCount,
long entityCount,
long currentEntityCount)
Update the task progress in the TaskProgressSink. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityTypeTaskProgressProcessor
public EntityTypeTaskProgressProcessor(int numEntityTypes,
TaskProgressSink taskProgressSink,
I18nHelper i18n)
- Parameters:
numEntityTypes
- the total number of top-level entities we believe this SAX handler will encounter
(should be the number of entities registered with OfBiz).taskProgressSink
- i18n
- allows us to i18n text
processTaskProgress
public void processTaskProgress(String entityTypeName,
int entityTypeCount,
long entityCount,
long currentEntityCount)
- Description copied from interface:
TaskProgressProcessor
- Update the task progress in the TaskProgressSink.
- Specified by:
processTaskProgress
in interface TaskProgressProcessor
- Parameters:
entityTypeName
- Name of the entity type that we are currently processing. eg "IssueType"entityTypeCount
- Count of the Entity Type that we are currently processing.entityCount
- Count of ALL the entities we have seen so far in this file.currentEntityCount
- Count of entities just within this entity type.
Copyright © 2002-2013 Atlassian. All Rights Reserved.