public class

EntityTypeTaskProgressProcessor

extends Object
implements TaskProgressProcessor
java.lang.Object
   ↳ com.atlassian.jira.imports.project.taskprogress.EntityTypeTaskProgressProcessor

Class Overview

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.

Summary

Public Constructors
EntityTypeTaskProgressProcessor(int numEntityTypes, TaskProgressSink taskProgressSink, I18nHelper i18n)
Public Methods
void processTaskProgress(String entityTypeName, int entityTypeCount, long entityCount, long currentEntityCount)
Update the task progress in the TaskProgressSink.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.imports.project.taskprogress.TaskProgressProcessor

Public Constructors

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).
i18n allows us to i18n text

Public Methods

public void processTaskProgress (String entityTypeName, int entityTypeCount, long entityCount, long currentEntityCount)

Update the task progress in the TaskProgressSink.

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.