Class ProjectImportDataImpl

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

public class ProjectImportDataImpl extends Object implements ProjectImportData
Since:
v3.13
  • Constructor Details

    • ProjectImportDataImpl

      public ProjectImportDataImpl(ProjectImportMapper projectImportMapper, ProjectImportTemporaryFiles temporaryFiles, AoImportTemporaryFiles aoImportTemporaryFiles, int issueCount, int customFieldValuesCount, int issueRelatedEntitiesCount, int fileAttachmentCount, int changeItemEntityCount, int nonIssueEntityCount)
  • Method Details

    • 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.
    • getTemporaryAoFiles

      public AoImportTemporaryFiles getTemporaryAoFiles()
      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:
      getTemporaryAoFiles in interface ProjectImportData
      Returns:
      the ProjectImportTemporaryFiles containing the path to the Project Import's temporary directory and all the partitioned XML files.
    • getPathToEntityXml

      public String getPathToEntityXml(String entityName)
      Description copied from interface: ProjectImportData
      The path to the partitioned XML file for the specified entity.
      Specified by:
      getPathToEntityXml in interface ProjectImportData
      Returns:
      path to the partitioned XML file for the specified entity.
    • 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.
    • 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.
    • 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.
    • 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.
    • getNonIssueEntityCount

      public int getNonIssueEntityCount()
      Specified by:
      getNonIssueEntityCount in interface ProjectImportData
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object