public class IssuePartitionHandler extends Object implements ImportOfBizEntityHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.ofbiz.core.entity.GenericDelegator |
delegator |
| Constructor and Description |
|---|
IssuePartitionHandler(BackupProject backupProject,
ProjectImportTemporaryFiles projectImportTemporaryFiles,
org.ofbiz.core.entity.model.ModelEntity modelEntity,
org.ofbiz.core.entity.DelegatorInterface delegatorInterface) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertModelEntityForName(org.ofbiz.core.entity.model.ModelEntity modelEntity,
String expectedName) |
void |
endDocument()
Provides the implementation an opportunity to perform some action when the document is finished being read.
|
int |
getEntityCount() |
void |
handleEntity(String entityName,
Map<String,String> attributes)
This is the main method to implement when using this ImportEntityHandler.
|
void |
startDocument()
Provides the implementation an opportunity to perform some action when the document is starting to
be read.
|
public IssuePartitionHandler(BackupProject backupProject, ProjectImportTemporaryFiles projectImportTemporaryFiles, org.ofbiz.core.entity.model.ModelEntity modelEntity, org.ofbiz.core.entity.DelegatorInterface delegatorInterface)
backupProject - contains the issue id's that we are interested in partitioning.projectImportTemporaryFiles - the temp files providermodelEntity - is the ModelEntity for the "Issue" entitydelegatorInterface - required for persistencepublic void handleEntity(String entityName, Map<String,String> attributes) throws ParseException
ImportOfBizEntityHandlerhandleEntity in interface ImportOfBizEntityHandlerentityName - identifies the entity (i.e. Issue)attributes - complete list of the attributes listed in the XML element including the nested
elements.ParseException - if the entity is invalid a ParseException will be thrown.public int getEntityCount()
public void startDocument()
ImportOfBizEntityHandlerstartDocument in interface ImportOfBizEntityHandlerpublic void endDocument()
ImportOfBizEntityHandlerendDocument in interface ImportOfBizEntityHandlerpublic void assertModelEntityForName(org.ofbiz.core.entity.model.ModelEntity modelEntity,
String expectedName)
Copyright © 2002-2024 Atlassian. All Rights Reserved.