com.atlassian.jira.imports.project.core
Class ProjectImportDataImpl

java.lang.Object
  extended by com.atlassian.jira.imports.project.core.ProjectImportDataImpl
All Implemented Interfaces:
ProjectImportData

public class ProjectImportDataImpl
extends Object
implements ProjectImportData

Since:
v3.13

Constructor Summary
ProjectImportDataImpl(ProjectImportMapper projectImportMapper, ProjectImportTemporaryFiles temporaryFiles, int issueCount, int customFieldValuesCount, int issueRelatedEntitiesCount, int fileAttachmentCount, int changeItemEntityCount)
           
 
Method Summary
 boolean equals(Object o)
           
 int getChangeItemEntityCount()
           
 int getCustomFieldValuesEntityCount()
           
 int getFileAttachmentEntityCount()
           
 int getIssueEntityCount()
           
 int getIssueRelatedEntityCount()
           
 String getPathToChangeItemXml()
          The path to the partitioned XML file for the projects change item entities.
 String getPathToCustomFieldValuesXml()
          The path to the partitioned XML file for the projects custom field values.
 String getPathToFileAttachmentXml()
          The path to the partitioned XML file for the projects issue file attachment entities.
 String getPathToIssueRelatedEntitiesXml()
          The path to the partitioned XML file for the projects issue related entities.
 String getPathToIssuesXml()
          The path to the partitioned XML file for the projects issue entities.
 ProjectImportMapper getProjectImportMapper()
          The central object used to map all the data the backup project contains.
 ProjectImportTemporaryFiles getTemporaryFiles()
          Returns the ProjectImportTemporaryFiles containing the path to the Project Import's temporary directory and all the partitioned XML files.
 int getValidAttachmentsCount()
          Gets the count of the number of valid attachments the import will try to create.
 int hashCode()
           
 void setValidAttachmentsCount(int validAttachmentCount)
          Sets the count of the number of valid attachments the import will try to create.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectImportDataImpl

public ProjectImportDataImpl(ProjectImportMapper projectImportMapper,
                             ProjectImportTemporaryFiles temporaryFiles,
                             int issueCount,
                             int customFieldValuesCount,
                             int issueRelatedEntitiesCount,
                             int fileAttachmentCount,
                             int changeItemEntityCount)
Method Detail

getTemporaryFiles

public ProjectImportTemporaryFiles getTemporaryFiles()
Description copied from interface: ProjectImportData
Returns the ProjectImportTemporaryFiles containing the path to the Project Import's temporary directory and all the partitioned XML files.

Specified by:
getTemporaryFiles in interface ProjectImportData
Returns:
the ProjectImportTemporaryFiles containing the path to the Project Import's temporary directory and all the partitioned XML files.

getPathToIssuesXml

public String getPathToIssuesXml()
Description copied from interface: ProjectImportData
The path to the partitioned XML file for the projects issue entities.

Specified by:
getPathToIssuesXml in interface ProjectImportData
Returns:
path to the partitioned XML file for the projects issue entities.

getIssueEntityCount

public int getIssueEntityCount()
Specified by:
getIssueEntityCount in interface ProjectImportData
Returns:
The count of the number of issues that are stored in the issue XML file.

getPathToFileAttachmentXml

public String getPathToFileAttachmentXml()
Description copied from interface: ProjectImportData
The path to the partitioned XML file for the projects issue file attachment entities.

Specified by:
getPathToFileAttachmentXml in interface ProjectImportData
Returns:
path to the partitioned XML file for the projects issue file attachment entities. This can be null if the user has chosen not to specify an attachment directory.

getFileAttachmentEntityCount

public int getFileAttachmentEntityCount()
Specified by:
getFileAttachmentEntityCount in interface ProjectImportData
Returns:
The count of the number of file attachment values that are stored in the attachment XML file.

getPathToIssueRelatedEntitiesXml

public String getPathToIssueRelatedEntitiesXml()
Description copied from interface: ProjectImportData
The path to the partitioned XML file for the projects issue related entities.

Specified by:
getPathToIssueRelatedEntitiesXml in interface ProjectImportData
Returns:
path to the partitioned XML file for the projects issue related entities.

getIssueRelatedEntityCount

public int getIssueRelatedEntityCount()
Specified by:
getIssueRelatedEntityCount in interface ProjectImportData
Returns:
The count of the number of issue related values that are stored in the issue related XML file.

getPathToCustomFieldValuesXml

public String getPathToCustomFieldValuesXml()
Description copied from interface: ProjectImportData
The path to the partitioned XML file for the projects custom field values.

Specified by:
getPathToCustomFieldValuesXml in interface ProjectImportData
Returns:
path to the partitioned XML file for the projects custom field values.

getCustomFieldValuesEntityCount

public int getCustomFieldValuesEntityCount()
Specified by:
getCustomFieldValuesEntityCount in interface ProjectImportData
Returns:
The count of the number of custom field values that are stored in the custom field values XML file.

getChangeItemEntityCount

public int getChangeItemEntityCount()
Specified by:
getChangeItemEntityCount in interface ProjectImportData
Returns:
The count of the number of change item values that are stored in the change item XML file.

getProjectImportMapper

public ProjectImportMapper getProjectImportMapper()
Description copied from interface: ProjectImportData
The central object used to map all the data the backup project contains.

Specified by:
getProjectImportMapper in interface ProjectImportData
Returns:
object used to map all the data the backup project contains.

setValidAttachmentsCount

public void setValidAttachmentsCount(int validAttachmentCount)
Description copied from interface: ProjectImportData
Sets the count of the number of valid attachments the import will try to create.

Specified by:
setValidAttachmentsCount in interface ProjectImportData
Parameters:
validAttachmentCount - the count of the number of valid attachments the import will try to create.

getValidAttachmentsCount

public int getValidAttachmentsCount()
Description copied from interface: ProjectImportData
Gets the count of the number of valid attachments the import will try to create.

Specified by:
getValidAttachmentsCount in interface ProjectImportData
Returns:
the count of the number of valid attachments the import will try to create.

getPathToChangeItemXml

public String getPathToChangeItemXml()
Description copied from interface: ProjectImportData
The path to the partitioned XML file for the projects change item entities.

Specified by:
getPathToChangeItemXml in interface ProjectImportData
Returns:
path to the partitioned XML file for the projects change item entities.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.