|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.issue.IssueInputParametersImpl
public class IssueInputParametersImpl
Default implementation of IssueInputParameters.
Plugin developers should callIssueService.newIssueInputParameters()
or IssueService.newIssueInputParameters(java.util.Map).
| Constructor Summary | |
|---|---|
IssueInputParametersImpl()
|
|
IssueInputParametersImpl(Map<String,String[]> actionParameters)
Can be used to quickly convert some "web-style" parameters (which can be the result of a form submit with the fields rendered create/edit html) to an IssueInputParameters object. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IssueInputParametersImpl()
public IssueInputParametersImpl(Map<String,String[]> actionParameters)
actionParameters - provides the default starting values for this object.| Method Detail |
|---|
public IssueInputParameters setProjectId(Long projectId)
setProjectId in interface IssueInputParametersprojectId - sets the project id for the issue.
public Long getProjectId()
getProjectId in interface IssueInputParameterspublic IssueInputParameters setIssueTypeId(String issueTypeId)
setIssueTypeId in interface IssueInputParametersissueTypeId - sets the issue type for the issue.
public String getIssueTypeId()
getIssueTypeId in interface IssueInputParameterspublic IssueInputParameters setPriorityId(String priorityId)
setPriorityId in interface IssueInputParameterspriorityId - sets the priority for the issue.
public String getPriorityId()
getPriorityId in interface IssueInputParameterspublic IssueInputParameters setResolutionId(String resolutionId)
setResolutionId in interface IssueInputParametersresolutionId - sets the resolution for the issue.
public String getResolutionId()
getResolutionId in interface IssueInputParameterspublic IssueInputParameters setStatusId(String statusId)
setStatusId in interface IssueInputParametersstatusId - sets the status of the issue.
public String getStatusId()
getStatusId in interface IssueInputParameterspublic IssueInputParameters setSummary(String summary)
setSummary in interface IssueInputParameterssummary - sets the summary for the issue.
public String getSummary()
getSummary in interface IssueInputParameterspublic IssueInputParameters setDescription(String description)
setDescription in interface IssueInputParametersdescription - sets the description for the issue.
public String getDescription()
getDescription in interface IssueInputParameterspublic IssueInputParameters setEnvironment(String environment)
setEnvironment in interface IssueInputParametersenvironment - sets the environment of the issue.
public String getEnvironment()
getEnvironment in interface IssueInputParameterspublic IssueInputParameters setAssigneeId(String assigneeId)
setAssigneeId in interface IssueInputParametersassigneeId - sets the assignee id for the issue.
public String getAssigneeId()
getAssigneeId in interface IssueInputParameterspublic IssueInputParameters setReporterId(String reporterId)
setReporterId in interface IssueInputParametersreporterId - sets the reporter id for the issue.
public String getReporterId()
getReporterId in interface IssueInputParameterspublic IssueInputParameters setComponentIds(Long... componentIds)
setComponentIds in interface IssueInputParameterscomponentIds - sets the components id's on the issue.
public Long[] getComponentIds()
getComponentIds in interface IssueInputParameterspublic IssueInputParameters setFixVersionIds(Long... fixVersionIds)
setFixVersionIds in interface IssueInputParametersfixVersionIds - sets the fix version id's on the issue.
public Long[] getFixVersionIds()
getFixVersionIds in interface IssueInputParameterspublic IssueInputParameters setAffectedVersionIds(Long... affectedVersionIds)
setAffectedVersionIds in interface IssueInputParametersaffectedVersionIds - sets the affected version id's= on the issue.
public Long[] getAffectedVersionIds()
getAffectedVersionIds in interface IssueInputParameterspublic IssueInputParameters setDueDate(String dueDate)
setDueDate in interface IssueInputParametersdueDate - the formatted string that JIRA will accept as a date that will be set on the issue.
public String getDueDate()
getDueDate in interface IssueInputParameterspublic IssueInputParameters setResolutionDate(String resolutionDate)
setResolutionDate in interface IssueInputParametersresolutionDate - the formatted string that JIRA will accept as a date that will be set on the issue.
public String getResolutionDate()
getResolutionDate in interface IssueInputParameterspublic IssueInputParameters setSecurityLevelId(Long securityLevelId)
setSecurityLevelId in interface IssueInputParameterssecurityLevelId - sets the security level id on the issue.
public Long getSecurityLevelId()
getSecurityLevelId in interface IssueInputParameterspublic IssueInputParameters setOriginalEstimate(Long originalEstimate)
setOriginalEstimate in interface IssueInputParametersoriginalEstimate - sets the original estimate on the issue.
public Long getOriginalEstimate()
getOriginalEstimate in interface IssueInputParameterspublic IssueInputParameters setTimeSpent(Long timeSpent)
setTimeSpent in interface IssueInputParameterstimeSpent - sets the time spent on the issue.
public Long getTimeSpent()
getTimeSpent in interface IssueInputParameters
public IssueInputParameters addCustomFieldValue(Long customFieldId,
String... values)
IssueInputParametersIssueInputParameters.addCustomFieldValue(String, String...).
addCustomFieldValue in interface IssueInputParameterscustomFieldId - the unique identifier of the custom field.values - the custom field values, must be in the format the field expects.
public IssueInputParameters addCustomFieldValue(String fullCustomFieldKey,
String... values)
IssueInputParameters
addCustomFieldValue in interface IssueInputParametersfullCustomFieldKey - used in the "web-style" parameters as the key, the custom field should expect this
value as the key in its populate from parameters method.values - the custom field values, must be in the format the field expects.
public boolean retainExistingValuesWhenParameterNotProvided()
retainExistingValuesWhenParameterNotProvided in interface IssueInputParameterspublic void setRetainExistingValuesWhenParameterNotProvided(boolean retain)
setRetainExistingValuesWhenParameterNotProvided in interface IssueInputParametersretain - true if non-provided parameters should have the values retained, false otherwise.IssueInputParameters.retainExistingValuesWhenParameterNotProvided()public boolean applyDefaultValuesWhenParameterNotProvided()
applyDefaultValuesWhenParameterNotProvided in interface IssueInputParameterspublic void setApplyDefaultValuesWhenParameterNotProvided(boolean applyDefaultValuesWhenParameterNotProvided)
setApplyDefaultValuesWhenParameterNotProvided in interface IssueInputParametersapplyDefaultValuesWhenParameterNotProvided - true if default value should be supplied when a parameter has not been provided. false if the
default value should not be applied.public String[] getCustomFieldValue(Long customFieldId)
getCustomFieldValue in interface IssueInputParameterscustomFieldId - uniquely identifies the custom field value you are looking for.
public String[] getCustomFieldValue(String fullCustomFieldKey)
getCustomFieldValue in interface IssueInputParametersfullCustomFieldKey - identifies the custom field values you are looking for.
public String getCommentValue()
getCommentValue in interface IssueInputParameterspublic IssueInputParameters setComment(String comment)
IssueInputParameters
setComment in interface IssueInputParameterscomment - the comment value.
public IssueInputParameters setComment(String comment,
Long projectRoleId)
IssueInputParameters
setComment in interface IssueInputParameterscomment - the comment value.projectRoleId - the id of the project role the comment must be restricted by.
public IssueInputParameters setComment(String comment,
String groupId)
IssueInputParameters
setComment in interface IssueInputParameterscomment - the comment value.groupId - the group name that the comment must be restricted by.
public Map<String,String[]> getActionParameters()
IssueInputParameters
getActionParameters in interface IssueInputParameterspublic void setFieldValuesHolder(Map<String,Object> fieldValuesHolder)
IssueInputParameters
setFieldValuesHolder in interface IssueInputParametersfieldValuesHolder - provides the seed values for the field values holder.public Map<String,Object> getFieldValuesHolder()
getFieldValuesHolder in interface IssueInputParameterspublic Collection<String> getProvidedFields()
getProvidedFields in interface IssueInputParameterspublic void setProvidedFields(Collection<String> providedFields)
IssueInputParameters
setProvidedFields in interface IssueInputParametersprovidedFields - a collection of Field.getId()'s which identify the
fields.public boolean isFieldSet(String fieldId)
isFieldSet in interface IssueInputParametersfieldId - identifies the field in question, this will be the Field.getId().
public boolean isFieldPresent(String fieldId)
isFieldPresent in interface IssueInputParametersfieldId - identifies the field in question, this will be the Field.getId().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||