com.atlassian.jira.web.action.issue
Class IssueNavigator

java.lang.Object
  extended bywebwork.action.ActionSupport
      extended bycom.atlassian.jira.action.JiraActionSupport
          extended bycom.atlassian.jira.web.action.JiraWebActionSupport
              extended bycom.atlassian.jira.web.action.ProjectActionSupport
                  extended bycom.atlassian.jira.web.action.IssueActionSupport
                      extended bycom.atlassian.jira.web.action.AbstractBrowser
                          extended bycom.atlassian.jira.web.action.issue.IssueNavigator
All Implemented Interfaces:
webwork.action.Action, webwork.action.CommandDriven, CustomFieldValuesAware, ErrorCollection, I18nHelper, webwork.action.IllegalArgumentAware, webwork.action.ParameterAware, java.io.Serializable

public class IssueNavigator
extends AbstractBrowser
implements CustomFieldValuesAware

See Also:
Serialized Form

Field Summary
static java.util.List invalidCharList
           
static java.lang.String SELECT_LIST_GROUP
           
static java.lang.String SELECT_LIST_NONE
           
static java.lang.String SELECT_LIST_USER
           
(package private)  java.util.Map thumbnailCache
           
 
Fields inherited from class com.atlassian.jira.web.action.AbstractBrowser
MODE_HIDE, MODE_SHOW, params
 
Fields inherited from class com.atlassian.jira.web.action.IssueActionSupport
attachmentManager
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManager, savedFilters
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface com.atlassian.jira.util.I18nHelper
DEFAULT_RESOURCE_BUNDLE
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
IssueNavigator(ThumbnailManager thumbnailManager, IssueLinkManager issueLinkManager, SubTaskManager subTaskManager)
           
 
Method Summary
 java.lang.String doColumnOverride()
           
protected  java.lang.String doExecute()
           
 java.lang.String getAssignee()
           
 java.lang.String getAssigneeSelect()
           
 java.util.List getAssigneeSelects()
           
 java.lang.String getAssigneeType()
           
 java.util.Collection getBrowsableItems()
          Return all issues matching the current filter, sorted.
 java.util.Collection getColumns()
           
 java.util.Collection getComponent()
           
 java.util.Collection getComponents()
          Get the components associated with this project
 java.lang.String getCreatedAfter()
           
 java.lang.String getCreatedBefore()
           
 java.lang.Long getCreatedPrevious()
           
 java.util.Collection getCurrentPage()
          Return the current 'page' of issues (given max and start) for the current filter
 java.lang.String getCustomFieldHtml(CustomField field)
           
 java.lang.String getCustomFieldName(java.lang.Long pId)
           
 java.lang.String getCustomFieldName(java.lang.Long pId, java.lang.String pSuffix)
           
 java.util.Collection getCustomFields()
           
 java.util.Map getCustomFieldValuesHolder()
           
 java.lang.String getDuedateAfter()
           
 java.lang.String getDuedateBefore()
           
 java.lang.String getDuedateNext()
           
 java.lang.String getDuedatePrevious()
           
 long getDurationInMinutes(long l)
           
 java.lang.String getDurationString(java.lang.Long millis)
           
 java.util.Collection getFields()
           
 SearchSort getFirstSorter()
           
 java.util.Collection getFixfor()
           
 java.util.Collection getIssueTypeList()
          Returns the list of all issue types to display
 LinkCollection getLinkCollection(org.ofbiz.core.entity.GenericValue issue)
           
 java.lang.String getMaxRatioLimit()
           
 java.lang.String getMinRatioLimit()
           
 PagerFilter getPager()
          Store the current pager in the session.
 java.lang.Long getPid()
           
 java.lang.String getPrettyDateDuration(long l)
          Used by full content view's issue_extraproperties.jsp.
 java.util.Collection getPriorityIds()
           
 ProjectIssueType getProjectIssueType()
           
 java.lang.String getQuery()
           
 java.lang.String getReporter()
           
 java.lang.String getReporterSelect()
           
 java.util.List getReporterSelects()
           
 java.util.Collection getResolutionIds()
           
 java.lang.String getSRQueryString()
          This method returns a query string representing the current search request
 java.util.Collection getStatusIds()
           
 int getTempMax()
          Get / Set the temporary maximum - this is used for printable and excel views etc
 java.util.Collection getThumbnails(org.ofbiz.core.entity.GenericValue issue)
           
 java.util.List getTypes()
           
 java.lang.String getUpdatedAfter()
           
 java.lang.String getUpdatedBefore()
           
 java.lang.Long getUpdatedPrevious()
           
 java.util.List getValidCustomFields()
           
 java.util.Set getValidCustomFields(org.ofbiz.core.entity.GenericValue issue)
           
 java.util.Collection getVersion()
           
 java.util.Collection getVersions()
          Get the versions associated with this project
 java.lang.String getView()
           
 java.util.Set getVisibleCustomFields()
           
 boolean isAssigneeTypeGroup()
           
 boolean isAssigneeTypeNone()
           
 boolean isAssigneeTypeUser()
           
 boolean isHasBulkEditPermissionForSearchRequest()
          Checks to see if the current user has a permission needed for bulk editing dependant on all projects or the currently selected project in the search request
 boolean isHasSearchRequestColumnLayout()
          Determines if the current search request has a column layout
 boolean isProjectLevelSearch()
           
 boolean isReporterTypeGroup()
           
 boolean isReporterTypeNone()
           
 boolean isReporterTypeUser()
           
 boolean isShowOverrideColumnLayout()
          Determines whether the "Use Your Columns" link should be shown to the user.
 boolean isTimeTrackingOn()
           
 void resetPager()
           
 void setMaxRatioLimit(java.lang.String maxRatioLimit)
           
 void setMinRatioLimit(java.lang.String minRatioLimit)
           
 void setParameters(java.util.Map parameters)
           
 void setPid(java.lang.Long pid)
           
 void setSearchFilter(SearchRequest searchRequest)
           
 void setTempMax(int tempMax)
           
 void setView(java.lang.String view)
           
 
Methods inherited from class com.atlassian.jira.web.action.AbstractBrowser
getMaxValues, getMode, getNiceEnd, getNiceStart, getSingleParam, getTimePeriods, setHide, setMode, setShow, setStart
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
getActionManager, getAttachmentManager, getCustomFieldManager, getDaysPerWeek, getHoursPerDay, getIssueManager, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getSearchRequest, getUrlEncoded, getWorkflow, isCustomFieldHidden, isFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSavedFilters, getSelectedProject, isEnterprise, setSelectedProject, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, getAssignableUsers, getAssignableUsers, getCachedGroups, getColumnViewHtml, getComponentManager, getConstantsManager, getCustomFieldHtml, getCustomFieldXML, getDefaultAssignee, getDefaultResourceBundle, getField, getLocale, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getText, getText, getText, getText, getText, getUserFullName, getUserPreferences, getVersionManager, isDefaultAssignee, isDefaultAssignee, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, processDefaultAssignee, processDefaultAssignee, processDefaultAssignee, setReturnUrl
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, execute, getActionName, getApplicationProperties, getDelegator, getLocaleUtils, getResult, getUnescapedText, getWatcherManager, hasAnyErrors, isIndexing
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, addIllegalArgumentException, doDefault, doValidation, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, 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.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Field Detail

invalidCharList

public static final java.util.List invalidCharList

SELECT_LIST_NONE

public static final java.lang.String SELECT_LIST_NONE
See Also:
Constant Field Values

SELECT_LIST_USER

public static final java.lang.String SELECT_LIST_USER
See Also:
Constant Field Values

SELECT_LIST_GROUP

public static final java.lang.String SELECT_LIST_GROUP
See Also:
Constant Field Values

thumbnailCache

java.util.Map thumbnailCache
Constructor Detail

IssueNavigator

public IssueNavigator(ThumbnailManager thumbnailManager,
                      IssueLinkManager issueLinkManager,
                      SubTaskManager subTaskManager)
Method Detail

doExecute

protected java.lang.String doExecute()
                              throws java.lang.Exception
Throws:
java.lang.Exception

setSearchFilter

public void setSearchFilter(SearchRequest searchRequest)

getFirstSorter

public SearchSort getFirstSorter()

getPager

public PagerFilter getPager()
Store the current pager in the session. The pager handles paging through the issue list.

Specified by:
getPager in class AbstractBrowser

resetPager

public void resetPager()
Specified by:
resetPager in class AbstractBrowser

getCurrentPage

public java.util.Collection getCurrentPage()
Return the current 'page' of issues (given max and start) for the current filter

Specified by:
getCurrentPage in class AbstractBrowser

getBrowsableItems

public java.util.Collection getBrowsableItems()
Return all issues matching the current filter, sorted.

Specified by:
getBrowsableItems in class AbstractBrowser

getPid

public java.lang.Long getPid()
                      throws java.lang.Exception
Throws:
java.lang.Exception

setPid

public void setPid(java.lang.Long pid)
            throws java.lang.Exception
Throws:
java.lang.Exception

getVersions

public java.util.Collection getVersions()
                                 throws java.lang.Exception
Get the versions associated with this project

Throws:
java.lang.Exception

getComponents

public java.util.Collection getComponents()
                                   throws java.lang.Exception
Get the components associated with this project

Throws:
java.lang.Exception

getQuery

public java.lang.String getQuery()

getFields

public java.util.Collection getFields()

getTypes

public java.util.List getTypes()

getIssueTypeList

public java.util.Collection getIssueTypeList()
Returns the list of all issue types to display

Returns:

getFixfor

public java.util.Collection getFixfor()

getReporterSelects

public java.util.List getReporterSelects()

getReporterSelect

public java.lang.String getReporterSelect()

isReporterTypeNone

public boolean isReporterTypeNone()

isReporterTypeUser

public boolean isReporterTypeUser()

isReporterTypeGroup

public boolean isReporterTypeGroup()

getReporter

public java.lang.String getReporter()

getAssigneeSelects

public java.util.List getAssigneeSelects()

getAssigneeSelect

public java.lang.String getAssigneeSelect()

getAssigneeType

public java.lang.String getAssigneeType()

isAssigneeTypeNone

public boolean isAssigneeTypeNone()

isAssigneeTypeUser

public boolean isAssigneeTypeUser()

isAssigneeTypeGroup

public boolean isAssigneeTypeGroup()

getAssignee

public java.lang.String getAssignee()

getCreatedBefore

public java.lang.String getCreatedBefore()

getCreatedAfter

public java.lang.String getCreatedAfter()

getDuedateAfter

public java.lang.String getDuedateAfter()

getDuedateBefore

public java.lang.String getDuedateBefore()

getDuedatePrevious

public java.lang.String getDuedatePrevious()

getDuedateNext

public java.lang.String getDuedateNext()

getCreatedPrevious

public java.lang.Long getCreatedPrevious()

getUpdatedBefore

public java.lang.String getUpdatedBefore()

getUpdatedAfter

public java.lang.String getUpdatedAfter()

getUpdatedPrevious

public java.lang.Long getUpdatedPrevious()

getComponent

public java.util.Collection getComponent()

getVersion

public java.util.Collection getVersion()

getStatusIds

public java.util.Collection getStatusIds()

getResolutionIds

public java.util.Collection getResolutionIds()

getPriorityIds

public java.util.Collection getPriorityIds()

getView

public java.lang.String getView()

setView

public void setView(java.lang.String view)

getTempMax

public int getTempMax()
Get / Set the temporary maximum - this is used for printable and excel views etc


setTempMax

public void setTempMax(int tempMax)

getCustomFields

public java.util.Collection getCustomFields()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getCustomFieldName

public java.lang.String getCustomFieldName(java.lang.Long pId)

getCustomFieldName

public java.lang.String getCustomFieldName(java.lang.Long pId,
                                           java.lang.String pSuffix)

getValidCustomFields

public java.util.List getValidCustomFields()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

isProjectLevelSearch

public boolean isProjectLevelSearch()

getValidCustomFields

public java.util.Set getValidCustomFields(org.ofbiz.core.entity.GenericValue issue)
                                   throws FieldException
Throws:
FieldException

setParameters

public void setParameters(java.util.Map parameters)
Specified by:
setParameters in interface webwork.action.ParameterAware
Overrides:
setParameters in class AbstractBrowser

getSRQueryString

public java.lang.String getSRQueryString()
This method returns a query string representing the current search request


getDurationString

public java.lang.String getDurationString(java.lang.Long millis)

getLinkCollection

public LinkCollection getLinkCollection(org.ofbiz.core.entity.GenericValue issue)

getPrettyDateDuration

public java.lang.String getPrettyDateDuration(long l)
Used by full content view's issue_extraproperties.jsp.

TODO - move this into a utility bean


getDurationInMinutes

public long getDurationInMinutes(long l)

getVisibleCustomFields

public java.util.Set getVisibleCustomFields()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getColumns

public java.util.Collection getColumns()
                                throws java.lang.Exception
Throws:
java.lang.Exception

isHasSearchRequestColumnLayout

public boolean isHasSearchRequestColumnLayout()
                                       throws ColumnLayoutStorageException
Determines if the current search request has a column layout

Throws:
ColumnLayoutStorageException

isShowOverrideColumnLayout

public boolean isShowOverrideColumnLayout()
                                   throws ColumnLayoutStorageException
Determines whether the "Use Your Columns" link should be shown to the user. This will happen IF the search request has its own column layout AND If the user has NOT chosen to override the search request's column layout

Returns:
Throws:
ColumnLayoutStorageException

doColumnOverride

public java.lang.String doColumnOverride()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

isHasBulkEditPermissionForSearchRequest

public boolean isHasBulkEditPermissionForSearchRequest()
Checks to see if the current user has a permission needed for bulk editing dependant on all projects or the currently selected project in the search request

Returns:

getThumbnails

public java.util.Collection getThumbnails(org.ofbiz.core.entity.GenericValue issue)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getCustomFieldValuesHolder

public java.util.Map getCustomFieldValuesHolder()
Specified by:
getCustomFieldValuesHolder in interface CustomFieldValuesAware

setMinRatioLimit

public void setMinRatioLimit(java.lang.String minRatioLimit)

getMinRatioLimit

public java.lang.String getMinRatioLimit()

getMaxRatioLimit

public java.lang.String getMaxRatioLimit()

setMaxRatioLimit

public void setMaxRatioLimit(java.lang.String maxRatioLimit)

isTimeTrackingOn

public boolean isTimeTrackingOn()

getCustomFieldHtml

public java.lang.String getCustomFieldHtml(CustomField field)

getProjectIssueType

public ProjectIssueType getProjectIssueType()


Copyright © 2002-2005 Atlassian. All Rights Reserved.