|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectplugin.ValueAssigner
public class ValueAssigner
This class handles all the operations necessary to change the issues' value that are affected by an action made from the issue navigator, and also the methods that are used within the columnView_template file to help display in the issue navigator.
| Constructor Summary | |
|---|---|
ValueAssigner()
|
|
| Method Summary | |
|---|---|
void |
assignValueAutomatically(com.atlassian.jira.issue.fields.CustomFieldImpl customField,
com.atlassian.jira.issue.Issue myIssue,
java.util.Collection idsIssue)
Assign a value automatically to myIssue: if no issue has an order assigned value, the value is set to MAX_ORDER_VALUE. |
java.util.ArrayList |
buildIssueAboveList(java.util.Collection issueIds,
com.atlassian.jira.issue.fields.CustomFieldImpl customField,
double minValue)
Return a list of issues which have a value greater than minValue |
java.util.ArrayList |
buildIssueBelowList(java.util.Collection issueIds,
com.atlassian.jira.issue.fields.CustomFieldImpl customField,
double maxValue)
Return a list of issues which have a value lower than maxValue |
void |
decreaseIssue(com.atlassian.jira.issue.fields.CustomFieldImpl customField,
com.atlassian.jira.issue.Issue myIssue,
java.lang.String issueOrderValue,
java.util.Collection idsIssue)
Exchange the values between myIssue and the issue which have a value just below issueValue. |
void |
displayIssuesValue(java.util.ArrayList issues,
com.atlassian.jira.issue.fields.CustomFieldImpl customField)
Display the key and the value for each issue in the list |
void |
doChangeValue(java.lang.String customFieldName,
java.lang.String action,
java.lang.String issueKey,
java.lang.String issueOrderValue,
java.lang.String numberOfBoxes)
Method called from FAIssueOrdererServlet. |
void |
exchangeValues(com.atlassian.jira.issue.Issue issue1,
com.atlassian.jira.issue.Issue issue2,
com.atlassian.jira.issue.fields.CustomFieldImpl customField)
Exchange the values between issue1 and issue2, according to the given custom field |
com.atlassian.jira.issue.Issue |
findIssueAbove(java.util.ArrayList issueList,
com.atlassian.jira.issue.fields.CustomFieldImpl customField,
float issueValue)
Return the issue that have the lower value greater than issueValue |
com.atlassian.jira.issue.Issue |
findIssueBelow(java.util.ArrayList issueList,
com.atlassian.jira.issue.fields.CustomFieldImpl customField,
float issueValue)
Return the issue that have the greater value lower than issueValue |
boolean |
hasAValueGreaterThanZero(com.atlassian.jira.issue.Issue issue,
com.atlassian.jira.issue.fields.CustomField customField)
|
void |
increaseIssue(com.atlassian.jira.issue.fields.CustomFieldImpl customField,
com.atlassian.jira.issue.Issue myIssue,
java.lang.String issueOrderValue,
java.util.Collection issueIds)
Exchange the values between myIssue and the issue which have a value just above issueValue |
void |
insertIssue(com.atlassian.jira.issue.Issue myIssue,
com.atlassian.jira.issue.Issue issueAbove,
com.atlassian.jira.issue.fields.CustomFieldImpl customField)
Insert an issue, i.e. set to it a calculated value, so as to could order it in the issue navigator. |
boolean |
isFirst(com.atlassian.jira.issue.Issue issue,
com.atlassian.jira.issue.fields.CustomField customField)
Return true if issue has the higher value among all the issue belonging to the same project (used from the columView_template file to manage the display of the tools) |
boolean |
isLast(com.atlassian.jira.issue.Issue issue,
com.atlassian.jira.issue.fields.CustomField customField)
Return true if issue has the lower value among all the issue belonging to the same project (used from the columView_template file to manage the display of the tools) |
void |
moveIssueInFirstPosition(com.atlassian.jira.issue.fields.CustomFieldImpl customField,
com.atlassian.jira.issue.Issue myIssue,
java.lang.String issueValue,
java.util.Collection issueIds)
Move an issue in first position, i.e. set the higher value found among all the issues that have an assigned value to myIssue. |
void |
moveIssueInLastPosition(com.atlassian.jira.issue.fields.CustomFieldImpl customField,
com.atlassian.jira.issue.Issue myIssue,
java.lang.String issueValue,
java.util.Collection issueIds)
Move an issue in last position, i.e. set the lower value found among all the issues that have an assigned value to myIssue. |
void |
moveIssueToPosition(com.atlassian.jira.issue.fields.CustomFieldImpl customField,
com.atlassian.jira.issue.Issue myIssue,
java.lang.String issueValue,
java.util.Collection issueIds,
java.lang.String s_nbOfBoxes)
Move an issue up or down, depending on the sign of s_nbOfBoxes, of s_nbOfBoxes boxes. |
void |
setValueToIssue(com.atlassian.jira.issue.Issue issue,
com.atlassian.jira.issue.fields.CustomField customField,
double orderValue)
Set the given value to the given issue for the given custom field (which is of type NumberCFType) |
void |
sortIssueList(java.util.ArrayList issueList,
com.atlassian.jira.issue.fields.CustomFieldImpl customField)
Sort a list of issues in ascending order, according to their assigned value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValueAssigner()
| Method Detail |
|---|
public void setValueToIssue(com.atlassian.jira.issue.Issue issue,
com.atlassian.jira.issue.fields.CustomField customField,
double orderValue)
throws com.atlassian.jira.issue.fields.layout.field.FieldLayoutStorageException
issue - The issue which the value will be assignedcustomField - The concerned custom fieldorderValue - The order value that will be assigned to the issue
com.atlassian.jira.issue.fields.layout.field.FieldLayoutStorageException - Thrown if there is a problem trying to recover the FieldLayoutItem object
public boolean hasAValueGreaterThanZero(com.atlassian.jira.issue.Issue issue,
com.atlassian.jira.issue.fields.CustomField customField)
issue - The issue we want to check the valuecustomField - The corresponding custom field for the value
public void doChangeValue(java.lang.String customFieldName,
java.lang.String action,
java.lang.String issueKey,
java.lang.String issueOrderValue,
java.lang.String numberOfBoxes)
customFieldName - The name of the corresponding custom fieldaction - The action to executeissueKey - The issue keyissueOrderValue - The issue valuenumberOfBoxes - The number of boxes to move the issue
public void increaseIssue(com.atlassian.jira.issue.fields.CustomFieldImpl customField,
com.atlassian.jira.issue.Issue myIssue,
java.lang.String issueOrderValue,
java.util.Collection issueIds)
throws com.atlassian.jira.issue.fields.layout.field.FieldLayoutStorageException
customField - The corresponding custom fieldmyIssue - The issue to modifyissueOrderValue - The issue valueissueIds - A list of ids of all the issue belonging to the same project than myIssue
com.atlassian.jira.issue.fields.layout.field.FieldLayoutStorageException - Thrown if there is a problem trying to recover the FieldLayoutItem object
public void decreaseIssue(com.atlassian.jira.issue.fields.CustomFieldImpl customField,
com.atlassian.jira.issue.Issue myIssue,
java.lang.String issueOrderValue,
java.util.Collection idsIssue)
throws com.atlassian.jira.issue.fields.layout.field.FieldLayoutStorageException
customField - The corresponding custom fieldmyIssue - The issue to modifyissueOrderValue - The issue valueidsIssue - A list of ids of all the issue belonging to the same project than myIssue
com.atlassian.jira.issue.fields.layout.field.FieldLayoutStorageException - Thrown if there is a problem trying to recover the FieldLayoutItem object
public void assignValueAutomatically(com.atlassian.jira.issue.fields.CustomFieldImpl customField,
com.atlassian.jira.issue.Issue myIssue,
java.util.Collection idsIssue)
throws com.atlassian.jira.issue.fields.layout.field.FieldLayoutStorageException
customField - The corresponding custom fieldmyIssue - The issue that the value will be assign to.idsIssue - A list of ids of all the issue belonging to the same project than myIssue
com.atlassian.jira.issue.fields.layout.field.FieldLayoutStorageException - Thrown if there is a problem trying to recover the FieldLayoutItem object
public void moveIssueInFirstPosition(com.atlassian.jira.issue.fields.CustomFieldImpl customField,
com.atlassian.jira.issue.Issue myIssue,
java.lang.String issueValue,
java.util.Collection issueIds)
customField - The corresponding custom fieldmyIssue - The issue to move in first positionissueValue - The value of myIssueissueIds - A list of ids of all the issue belonging to the same project than myIssue
public void moveIssueInLastPosition(com.atlassian.jira.issue.fields.CustomFieldImpl customField,
com.atlassian.jira.issue.Issue myIssue,
java.lang.String issueValue,
java.util.Collection issueIds)
customField - The corresponding custom fieldmyIssue - The issue to move in last positionissueValue - The value of myIssueissueIds - A list of ids of all the issue belonging to the same project than myIssue
public void moveIssueToPosition(com.atlassian.jira.issue.fields.CustomFieldImpl customField,
com.atlassian.jira.issue.Issue myIssue,
java.lang.String issueValue,
java.util.Collection issueIds,
java.lang.String s_nbOfBoxes)
customField - The corresponding custom fieldmyIssue - The issue to moveissueValue - The value of myIssueissueIds - A list of ids of all the issue belonging to the same project than myIssues_nbOfBoxes - The number of boxes that myIssue will move.
public com.atlassian.jira.issue.Issue findIssueAbove(java.util.ArrayList issueList,
com.atlassian.jira.issue.fields.CustomFieldImpl customField,
float issueValue)
issueList - A list of all the issues that have a greater value than issueValue (to get this list, use )customField - The corresponding custom fieldissueValue - The value of the issue to modify
public com.atlassian.jira.issue.Issue findIssueBelow(java.util.ArrayList issueList,
com.atlassian.jira.issue.fields.CustomFieldImpl customField,
float issueValue)
issueList - A list of all the issues that have a lower value than issueValue (to get this list, use )customField - The corresponding custom fieldissueValue - The value of the issue to modify
public void exchangeValues(com.atlassian.jira.issue.Issue issue1,
com.atlassian.jira.issue.Issue issue2,
com.atlassian.jira.issue.fields.CustomFieldImpl customField)
throws com.atlassian.jira.issue.fields.layout.field.FieldLayoutStorageException
issue1 - The first issue to modifyissue2 - The second issue to modifycustomField - The corresponding custom field
com.atlassian.jira.issue.fields.layout.field.FieldLayoutStorageException - Thrown if there is a problem trying to recover the FieldLayoutItem object
public void insertIssue(com.atlassian.jira.issue.Issue myIssue,
com.atlassian.jira.issue.Issue issueAbove,
com.atlassian.jira.issue.fields.CustomFieldImpl customField)
throws com.atlassian.jira.issue.fields.layout.field.FieldLayoutStorageException
myIssue - The issue that the value will be assigned toissueAbove - The issue that have the lower value among all the issues that have an assigned valuecustomField - The corresponding custom field
com.atlassian.jira.issue.fields.layout.field.FieldLayoutStorageException - Thrown if there is a problem trying to recover the FieldLayoutItem object
public java.util.ArrayList buildIssueAboveList(java.util.Collection issueIds,
com.atlassian.jira.issue.fields.CustomFieldImpl customField,
double minValue)
issueIds - A list of ids of all the issue belonging to the same project than myIssuecustomField - The corresponding custom fieldminValue - The minimum value that an issue must have to be selected
public java.util.ArrayList buildIssueBelowList(java.util.Collection issueIds,
com.atlassian.jira.issue.fields.CustomFieldImpl customField,
double maxValue)
issueIds - A list of ids of all the issue belonging to the same project than myIssuecustomField - The corresponding custom fieldmaxValue - The maximum value that an issue must have to be selected
public void sortIssueList(java.util.ArrayList issueList,
com.atlassian.jira.issue.fields.CustomFieldImpl customField)
issueList - The list of issues to be sortedcustomField - The corresponding custom field
public boolean isFirst(com.atlassian.jira.issue.Issue issue,
com.atlassian.jira.issue.fields.CustomField customField)
issue - The issue to checkcustomField - The corresponding custom field
public boolean isLast(com.atlassian.jira.issue.Issue issue,
com.atlassian.jira.issue.fields.CustomField customField)
issue - The issue to checkcustomField - The corresponding custom field
public void displayIssuesValue(java.util.ArrayList issues,
com.atlassian.jira.issue.fields.CustomFieldImpl customField)
issues - A list of issuescustomField - The corresponding custom field for the value to display
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||