com.pyxis.greenhopper.jira.actions
Class RankingAction

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.web.action.JiraWebActionSupport
              extended by com.atlassian.jira.web.action.ProjectActionSupport
                  extended by com.atlassian.jira.web.action.IssueActionSupport
                      extended by com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
                          extended by com.pyxis.greenhopper.jira.actions.AbstractBoardAction
                              extended by com.pyxis.greenhopper.jira.actions.BoardAction
                                  extended by com.pyxis.greenhopper.jira.actions.ContextBoardAction
                                      extended by com.pyxis.greenhopper.jira.actions.CardBoardAction
                                          extended by com.pyxis.greenhopper.jira.actions.RankingAction
All Implemented Interfaces:
com.atlassian.jira.util.ErrorCollection, com.atlassian.jira.util.I18nHelper, com.atlassian.jira.web.action.issue.IssueSummaryAware, com.atlassian.jira.web.util.AuthorizationSupport, I18n, java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
MultipleRankingAction

public class RankingAction
extends CardBoardAction

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
com.atlassian.jira.util.I18nHelper.BeanFactory
 
Field Summary
 
Fields inherited from class com.pyxis.greenhopper.jira.actions.CardBoardAction
anchor, capacityService, EXPANDED_BOX, fieldId, fieldType, maxCapacity, minCapacity, simpleUpdate, statService
 
Fields inherited from class com.pyxis.greenhopper.jira.actions.ContextBoardAction
contextName, maxVBIssues
 
Fields inherited from class com.pyxis.greenhopper.jira.actions.BoardAction
confirmed, context, issueLinkManager, refresh, selectedBoard, selectedProjectId, selectedVersion, start, subtaskManager, warningId
 
Fields inherited from class com.pyxis.greenhopper.jira.actions.AbstractBoardAction
ghLicense, greenHopperService, issuesToUpdate
 
Fields inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
id, issueObject
 
Fields inherited from class com.atlassian.jira.web.action.IssueActionSupport
attachmentManager
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManager
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
RankingAction(GreenHopper greenHopperService, GreenHopperLicenseManager ghLicense, com.atlassian.jira.issue.link.IssueLinkManager issueLinkManager, com.atlassian.jira.config.SubTaskManager subtaskManager, StatService statService, CapacityService capacityService)
           
 
Method Summary
 java.lang.Double absolutePosition(com.atlassian.jira.issue.Issue issue)
           
 java.lang.String absolutePositionLocalized(com.atlassian.jira.issue.Issue issue)
          Used by the velocity template to provide the absolute position in Rank.setRank(...).
 java.lang.String doGetRankPage()
           
 boolean doMoveAfter(com.atlassian.jira.issue.Issue issue)
           
 java.lang.String doPageRankIssue()
           
 java.lang.String doSetRank()
           
 java.lang.String getContextName()
           
 com.atlassian.jira.issue.fields.CustomField getCustomField()
           
protected  java.lang.Double getIssuePosition()
           
protected  java.lang.Double getNonNullValue(com.atlassian.jira.issue.Issue issue)
           
 java.lang.Integer getPageRankStart()
           
 java.lang.String getParentKey()
           
 java.util.List<com.atlassian.jira.issue.Issue> getRankedIssues()
           
 java.lang.String getRankedIssuesQueryString()
           
 RankingBoard getRankingBoard()
           
 java.lang.Long getSelectedProjectId()
           
protected  RankingField getSelectedRankField()
           
protected  RankingCFType getSelectedRankType()
           
 boolean isIssueRanked()
           
 java.lang.String realPosition(com.atlassian.jira.issue.Issue issue)
           
 void setBacklogId(java.lang.Long backlogId)
           
 void setFieldValue(java.lang.String fieldValue)
           
 void setPageRankStart(java.lang.Integer pageRankStart)
           
 void setParentKey(java.lang.String parentKey)
           
 void setSelectedProjectId(java.lang.Long selectedProjectId)
           
 void setVersionId(java.lang.Long versionId)
           
 
Methods inherited from class com.pyxis.greenhopper.jira.actions.CardBoardAction
affectsDisplay, affectsStats, canLogWork, doEditField, doFlag, doGetBoardForIssue, doNavigator, doRefreshIssue, doSetIssueDisplay, doSuccess, doToggleCard, doUpdateField, getAnchor, getBottomMarkers, getBoxType, getCanProjectSchedule, getCapacity, getCapacityMessage, getColPage, getCompiledMarkers, getContextMap, getDefaultCapacity, getExpandedBoxes, getField, getFieldId, getFieldType, getIndex, getIssueMarkers, getNavInfo, getSummaryForBoard, getWatchedField, isAnyVisibleStepBusted, isAssignable, isBusted, isDropEnabled, isExpanded, isMaxBusted, isMinBusted, isParentStep, isPreviousVisibleStepMaxBusted, isSelected, isSimpleUpdate, setColPage, setCommitedIn, setDropEnabled, setFieldId, setFieldType, setIndex, setMaxCapacity, setMinCapacity, setNavInfo
 
Methods inherited from class com.pyxis.greenhopper.jira.actions.ContextBoardAction
doAddNonWorkingDay, doCreateContext, doDeleteContext, doEditContext, doEnablePersonal, doRemoveNonWorkingDay, doSaveContext, doSaveUserPreferences, doSetContext, doSetSort, doSetSortOrder, doToggleDone, doToggleMyIssues, doTogglePending, doToggleSubs, getContextId, getRefreshModbar, isRankable, setAssignee, setAutoAssignOn, setCardBgColored, setComponentIds, setContextId, setContextName, setDoneFilterOn, setFilterOn, setHiliteAssignee, setHiliteComponentIds, setHiliteDoneFilterOn, setHiliteOn, setHilitePriorityIds, setHiliteStatusIds, setHiliteTypeIds, setHiliteUnresolvedFilterOn, setJiraFilter, setJiraHilite, setListAlt, setMaxParents, setMaxTBIssues, setMaxVBIssues, setNonWorkingDay, setOpacityRatio, setPersonalFilterOn, setPrecision, setPriorityIds, setShare, setSortField, setSortOrder, setStatusIds, setTypeIds, setUnresolvedFilterOn, setUseJIRAIFrame, setWithDates, setWithForecast, setWithLabels
 
Methods inherited from class com.pyxis.greenhopper.jira.actions.BoardAction
boardResult, canGHBrowse, doCloseLegend, doFullScreen, doGet, doGetLegend, doNormalScreen, encodeJavaScript, encodeJson, findBacklog, getAllAssigneeBoards, getAllChartableFields, getAllComponentBoards, getAllComponents, getAllowUnassigned, getAllPlanningViews, getAllSecurityLevels, getAllStatuses, getAllTabs, getAllUserProjects, getAllVersionBoards, getAssignableUsers, getBoardContext, getBoardGroup, getBoardURL, getCanAssign, getCanBrowse, getCanBulkEdit, getCanCreateNewCards, getCanEditConfig, getCanProjectAssign, getCanProjectEdit, getCanSelectVersion, getCanSetSecurity, getConfigFor, getContext, getDefaultAssignee, getDefaultSecurity, getFieldName, getGHConfiguration, getGhProject, getHighLightRatio, getHtmlEncodedText, getIsAssignable, getIssueCountField, getIssueDisplay, getIssueFieldManager, getJavascriptEncodedText, getModifierKey, getPageTitle, getPreferences, getProjectBoard, getProjectConfig, getProjectIssueTypes, getRedirectType, getReleasedVersions, getRemainingField, getReporterUsers, getSearchKey, getSearchResults, getSearchType, getSelectedBoard, getSelectedTab, getShowLegend, getStandardIssueTypes, getSubsVisibility, getSubtaskTypes, getText, getText, getText, getText, getTruncatedText, getType, getUnreleasedVersions, getUrlEncodedText, getUseJiraIFrame, getUserSettings, getView, getViewIssueKey, getWarningId, getWarningUrl, getXProject, getXsrfToken, hasModBar, htmlEncode, isAProjectBoard, isArchiveChartBoard, isAssigneeBoard, isBoardSpecified, isCardBgColored, isChartBoard, isCompactView, isComponentBoard, isConfigurationBoard, isFullScreen, isHierarchyInstalled, isListAlt, isPlanningBoard, isRefresh, isReleasedBoard, isSearchBoard, isSecurityEnabled, isSelected, isSubtaskAllowed, isTaskBoard, isVersionBoard, registerSelectedView, setConfirmed, setIssueDisplay, setRedirectType, setSearchKey, setSearchType, setSelectedBoardId, setStart, setType, setViewIssueKey, setWarningId
 
Methods inherited from class com.pyxis.greenhopper.jira.actions.AbstractBoardAction
addError, addError, addError, getAllJIRAProjects, getAllPriorities, getAllResolutions, getCalendarFormat, getCalendarLocale, getCalendarTimeFormat, getCanEditPreferences, getDefaultPriorityId, getDefaultResolutionId, getI18n, getId, getIssueKeys, getIssueOperations, getIssuesToUpdate, getKey, getPluginKey, getPluginVersion, getResourceLocation, getUserProjectHistoryManager, getUtil, includeFieldResourcesForCurrentUser, isAdmin, isBetaEnabled, isTimeTrackingOn, isUnassignAllowed, registerKeyboardContext, resetIssue, setI18nFactoryService, setId, setIssueKeys, setKey, setWebUtilities, toDecimalFormat, validate
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
cameFromIssue, cameFromParent, getIssue, getIssueObject, getIssueObjectNoSecurityCheck, getIssuePath, getLayoutBean, getParentIssueObject, getProject, getSecurityLevel, getSecurityLevel, getSecurityLevelName, getSubTaskManager, getSummaryIssue, getViewUrl, isEditable, isEditable, isHasEditIssuePermission, isIssueExists, isIssueValid, isSubTask, isSubTaskCreatable, isWorkflowAllowsEdit, redirectToView, setIssue
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
clearSelectedIssue, getAttachmentManager, getCurrentFailedLoginCount, getCurrentJQL, getCustomFieldManager, getDaysPerWeek, getEverLoggedIn, getHoursPerDay, getIssueManager, getLastFailedLogin, getLastLogin, getLoginCount, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getPreviousLogin, getSearchRequest, getSelectedIssueId, getSessionPagerFilterManager, getSessionSearchRequestManager, getSessionSearchRequestManagerFactory, getSessionSelectedIssueManager, getTotalFailedLoginCount, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isElevatedSecurityCheckRequired, isFieldHidden, isFieldHidden, isFieldHidden, isTimeTrackingEnabled, setCurrentIssue, setSearchRequest, setSelectedIssueId, updateSearchRequest
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, setSelectedProject, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, forceRedirect, getApplicationProperties, getAssignableUsers, getAssignableUsers, getComponentManager, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraServiceContext, getLanguage, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRandomHint, getRedirect, getRedirectChecker, getRemoteUser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getTimeFormat, getUriValidator, getUserFullName, getVersionManager, getWebworkStack, getWebworkStack, hasErrorMessage, hasErrorMessageByKey, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, setConglomerateCookieValue, setInline, setReturnUrl
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addErrorMessage, doDefault, doExecute, doValidation, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.pyxis.greenhopper.jira.util.I18n
getText
 
Methods inherited from interface com.atlassian.jira.web.action.issue.IssueSummaryAware
getRemoteUser
 
Methods inherited from interface com.atlassian.jira.util.ErrorCollection
addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Constructor Detail

RankingAction

public RankingAction(GreenHopper greenHopperService,
                     GreenHopperLicenseManager ghLicense,
                     com.atlassian.jira.issue.link.IssueLinkManager issueLinkManager,
                     com.atlassian.jira.config.SubTaskManager subtaskManager,
                     StatService statService,
                     CapacityService capacityService)
Method Detail

doPageRankIssue

public java.lang.String doPageRankIssue()

doGetRankPage

public java.lang.String doGetRankPage()

doSetRank

public java.lang.String doSetRank()

getRankingBoard

public RankingBoard getRankingBoard()

getSelectedProjectId

public java.lang.Long getSelectedProjectId()
Overrides:
getSelectedProjectId in class BoardAction

setSelectedProjectId

public void setSelectedProjectId(java.lang.Long selectedProjectId)
Overrides:
setSelectedProjectId in class BoardAction

setFieldValue

public void setFieldValue(java.lang.String fieldValue)
Overrides:
setFieldValue in class CardBoardAction

realPosition

public java.lang.String realPosition(com.atlassian.jira.issue.Issue issue)

absolutePositionLocalized

public java.lang.String absolutePositionLocalized(com.atlassian.jira.issue.Issue issue)
Used by the velocity template to provide the absolute position in Rank.setRank(...). This value needs to be localized as it is converted from a String to Double by RankingCFType.getSingularObjectFromString which uses the user locale for the conversion.


absolutePosition

public java.lang.Double absolutePosition(com.atlassian.jira.issue.Issue issue)

doMoveAfter

public boolean doMoveAfter(com.atlassian.jira.issue.Issue issue)

getCustomField

public com.atlassian.jira.issue.fields.CustomField getCustomField()

getPageRankStart

public java.lang.Integer getPageRankStart()

setPageRankStart

public void setPageRankStart(java.lang.Integer pageRankStart)

getRankedIssues

public java.util.List<com.atlassian.jira.issue.Issue> getRankedIssues()

isIssueRanked

public boolean isIssueRanked()

getParentKey

public java.lang.String getParentKey()

setParentKey

public void setParentKey(java.lang.String parentKey)

getContextName

public java.lang.String getContextName()
Overrides:
getContextName in class ContextBoardAction

setVersionId

public void setVersionId(java.lang.Long versionId)

setBacklogId

public void setBacklogId(java.lang.Long backlogId)

getRankedIssuesQueryString

public java.lang.String getRankedIssuesQueryString()

getSelectedRankField

protected RankingField getSelectedRankField()

getSelectedRankType

protected RankingCFType getSelectedRankType()

getIssuePosition

protected java.lang.Double getIssuePosition()

getNonNullValue

protected java.lang.Double getNonNullValue(com.atlassian.jira.issue.Issue issue)


Copyright © 2007-2011 Atlassian. All Rights Reserved.