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

java.lang.Object
  extended byActionSupport
      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

public class IssueNavigator
extends AbstractBrowser

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
           
 
Fields inherited from class com.atlassian.jira.web.action.AbstractBrowser
MODE_HIDE, MODE_SHOW, params
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
savedFilters
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, permissionManager, request
 
Constructor Summary
IssueNavigator(ThumbnailManager thumbnailManager)
           
 
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 getCustomFieldName(java.lang.Long pId)
           
 java.lang.String getCustomFieldName(java.lang.Long pId, java.lang.String pSuffix)
           
 java.util.Collection getCustomFieldOptions(java.lang.Long customFieldId)
           
 java.lang.String getCustomFieldParamValue(java.lang.Long pId)
           
 java.lang.String getCustomFieldParamValue(java.lang.Long pId, java.lang.String pSuffix)
           
 java.util.Collection getCustomFields()
           
 java.lang.String getCustomFieldValue(GenericValue issue, GenericValue customfield)
           
 CustomFieldValuesHolder getCustomFieldValuesHolder(GenericValue issue)
           
 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()
           
 LinkCollection getLinkCollection(GenericValue issue)
           
 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()
           
 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(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(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 isReporterTypeGroup()
           
 boolean isReporterTypeNone()
           
 boolean isReporterTypeUser()
           
 boolean isShowOverrideColumnLayout()
          Determines whether the "Use Your Columns" link should be shown to the user.
 void resetPager()
           
 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, getSelectedProject, getUrlEncoded, getWorkflow, isCustomFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue, setSelectedProject, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSavedFilters
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConstantsManager, getDefaultAssignee, getField, getLocale, getOutlookDate, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getText, getText, getText, getText, getUserFullName, getUserPreferences, isDefaultAssignee, isDefaultAssignee, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, processDefaultAssignee, processDefaultAssignee
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrors, execute, getActionName, getApplicationProperties, getDelegator, getLocaleUtils, getResult, isIndexing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

IssueNavigator

public IssueNavigator(ThumbnailManager thumbnailManager)
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()

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

getCustomFieldOptions

public java.util.Collection getCustomFieldOptions(java.lang.Long customFieldId)

getCustomFieldName

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

getCustomFieldName

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

getCustomFieldParamValue

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

getCustomFieldParamValue

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

getValidCustomFields

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

getValidCustomFields

public java.util.Set getValidCustomFields(GenericValue issue)
                                   throws FieldException
Throws:
FieldException

getCustomFieldValue

public java.lang.String getCustomFieldValue(GenericValue issue,
                                            GenericValue customfield)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

setParameters

public void setParameters(java.util.Map parameters)
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(GenericValue issue)

getCustomFieldValuesHolder

public CustomFieldValuesHolder getCustomFieldValuesHolder(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(GenericValue issue)
                                   throws java.lang.Exception
Throws:
java.lang.Exception