Class PolarionRequirementsImportSettings

  • All Implemented Interfaces:
    java.io.Serializable

    public class PolarionRequirementsImportSettings
    extends RequirementsImportSettings
    The settings for the requirements import from Polarion.
    See Also:
    Serialized Form
    • Constructor Detail

      • PolarionRequirementsImportSettings

        public PolarionRequirementsImportSettings​(java.lang.String projectId)
        The constructor for the settings of the requirements import from Polarion.
        Parameters:
        projectId - The ID of the project in Polarion.
    • Method Detail

      • getProjectId

        public java.lang.String getProjectId()
        Returns:
        The ID of the project in Polarion.
      • setProjectId

        public void setProjectId​(java.lang.String projectId)
        Parameters:
        projectId - The ID of the project in Polarion.
      • setImportMethod

        public void setImportMethod​(PolarionRequirementsImportSettings.PolarionImportMethod importMethod)
        Parameters:
        importMethod - The choice for the import. Either import via Document by using the path to the document followed by its ID (e.g., Testing/Test Specification), or import via Lucene by using a query in Lucene syntax.
      • getDocumentPath

        public java.lang.String getDocumentPath()
        Returns:
        The path to the document followed by its ID (e.g., Testing/Test Specification). Only relevant if import method is Document.
        See Also:
        setImportMethod(PolarionImportMethod)
      • setDocumentPath

        public void setDocumentPath​(java.lang.String documentPath)
        Parameters:
        documentPath - The path to the document followed by its ID (e.g., Testing/Test Specification). Only relevant if import method is Document.
        See Also:
        setImportMethod(PolarionImportMethod)
      • getLuceneQuery

        public java.lang.String getLuceneQuery()
        Returns:
        If null, all work items of the project are imported. Otherwise a query in Lucene syntax to import a subset of the project work items (e.g., type:testcase). Only relevant if import method is Lucene.
        See Also:
        setImportMethod(PolarionImportMethod)
      • setLuceneQuery

        public void setLuceneQuery​(java.lang.String luceneQuery)
        Parameters:
        luceneQuery - If set to null, all work items of the project are imported. Otherwise set to a query in Lucene syntax to import a subset of the project work items (e.g., type:testcase). Only relevant if import method is Lucene.
        See Also:
        setImportMethod(PolarionImportMethod)
      • setPropertyAssignments

        public void setPropertyAssignments​(java.util.List<PolarionWorkItemFieldToTCAttributeAssignment> propertyAssignments)
        Parameters:
        propertyAssignments - The list of assignments of Polarion Work Item fields to a TPT test case attributes.
      • getTypeAssignments

        public java.util.List<Pair<java.lang.String,​Requirement.RequirementType>> getTypeAssignments()
        Returns:
        The assignments of Polarion types (items in the Polarion Work Item field 'Types') to the requirement type in TPT. Items without an assigned TPT type are imported as Requirement.
      • setTypeAssignments

        public void setTypeAssignments​(java.util.List<Pair<java.lang.String,​Requirement.RequirementType>> typeAssignments)
        Parameters:
        typeAssignments - The assignments of Polarion types (items in the Polarion Work Item field 'Types') to the requirement type in TPT. Items without an assigned TPT type are imported as Requirement.