Class PolarionRequirementsImportSettings
- java.lang.Object
-
- com.piketec.tpt.api.requirements.RequirementsImportSettings
-
- com.piketec.tpt.api.requirements.polarion.PolarionRequirementsImportSettings
-
- All Implemented Interfaces:
java.io.Serializable
public class PolarionRequirementsImportSettings extends RequirementsImportSettings
The settings for the requirements import from Polarion.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PolarionRequirementsImportSettings.PolarionImportMethod
The choice for the import.
-
Constructor Summary
Constructors Constructor Description PolarionRequirementsImportSettings(java.lang.String projectId)
The constructor for the settings of the requirements import from Polarion.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDocumentPath()
PolarionRequirementsImportSettings.PolarionImportMethod
getImportMethod()
java.lang.String
getLuceneQuery()
java.lang.String
getProjectId()
java.util.List<PolarionWorkItemFieldToTCAttributeAssignment>
getPropertyAssignments()
java.util.List<Pair<java.lang.String,Requirement.RequirementType>>
getTypeAssignments()
void
setDocumentPath(java.lang.String documentPath)
void
setImportMethod(PolarionRequirementsImportSettings.PolarionImportMethod importMethod)
void
setLuceneQuery(java.lang.String luceneQuery)
void
setProjectId(java.lang.String projectId)
void
setPropertyAssignments(java.util.List<PolarionWorkItemFieldToTCAttributeAssignment> propertyAssignments)
void
setTypeAssignments(java.util.List<Pair<java.lang.String,Requirement.RequirementType>> typeAssignments)
-
Methods inherited from class com.piketec.tpt.api.requirements.RequirementsImportSettings
getAutoReviewColumns, getDocument, setAutoReviewColumns, setDocument
-
-
-
-
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.
-
getImportMethod
public PolarionRequirementsImportSettings.PolarionImportMethod getImportMethod()
-
setImportMethod
public void setImportMethod(PolarionRequirementsImportSettings.PolarionImportMethod importMethod)
-
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 isDocument
.- 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 isLucene
. - See Also:
setImportMethod(PolarionImportMethod)
-
setLuceneQuery
public void setLuceneQuery(java.lang.String luceneQuery)
- Parameters:
luceneQuery
- If set tonull
, 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 isLucene
.- See Also:
setImportMethod(PolarionImportMethod)
-
getPropertyAssignments
public java.util.List<PolarionWorkItemFieldToTCAttributeAssignment> getPropertyAssignments()
- Returns:
- The list of assignments of Polarion Work Item fields to a TPT test case attributes.
-
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 asRequirement
.
-
-