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

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.atlassian.jira.web.action.issue.AbstractViewIssue
                              extended by com.atlassian.jira.web.action.issue.AbstractCommentableIssue
                                  extended by com.atlassian.jira.web.action.issue.AddComment
                                      extended by com.atlassian.jira.web.action.issue.ViewIssue
All Implemented Interfaces:
ErrorCollection, I18nHelper, java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
ManageAttachments, ManageLinks

public class ViewIssue
extends AddComment

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
id
 
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
log
 
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
ViewIssue(RepositoryManager repositoryManager, PermissionManager permissionManager, TrackbackManager trackbackManager, ThumbnailManager thumbnailManager, SubTaskManager subTaskManager, IssueLinkManager issueLinkManager, IssueLinkTypeManager issueLinkTypeManager, VoteManager voteManager, WatcherManager watcherManager, com.atlassian.plugin.PluginManager pluginManager)
           
 
Method Summary
protected  java.lang.String doExecute()
           
 java.lang.String doMoveIssueLink()
           
protected  void doValidation()
           
 java.lang.String getActionOrder()
           
 java.util.Collection getActions()
           
 org.ofbiz.core.entity.GenericValue getAssignIn()
           
 java.util.Map getAvailabelActions(org.ofbiz.core.entity.GenericValue issue)
           
 java.util.Map getAvailableActions()
           
 java.util.Collection getComponents()
           
 java.lang.Long getCurrentSubTaskSequence()
           
 java.lang.String getCustomFieldValue(org.ofbiz.core.entity.GenericValue customfield)
          Used for XML view of an issue
 java.lang.String getDurationString(java.lang.Long millis)
          Used by the rss view to display time estimates.
 java.lang.String getEstimate()
           
 java.util.Collection getFileAttachments()
           
 java.util.Collection getFixVersions()
           
 java.lang.String getHistoryIssuetype()
           
 java.util.Collection getImageAttachments()
           
 java.util.Collection getIssueTabPanels()
           
 java.lang.String getIssuetype()
           
 java.lang.String getIssueUrl()
           
 JiraWorkflow getJiraWorkflow()
           
 java.lang.String getOldIssueUrl()
           
 java.lang.String getPage()
          Determine which page of the ViewIssue we're on

Options are : comments - brief overview of the issue and all the comments (default) details - detailed view of the issue history - the history log of the issue

 PagerManager getPagerManager()
           
 org.ofbiz.core.entity.GenericValue getParentIssue()
           
protected  RepositoryManager getRepositoryManager()
           
 SearchSort getSorter()
           
 SubTaskBean getSubTaskBean()
           
 java.util.Collection getSubTaskIssueTypes()
           
 java.lang.Long getSubTaskSequence()
           
 java.lang.String getSubTaskView()
           
 java.util.Collection getThumbnails()
           
 java.lang.String getTimeOriginalEstimate()
           
 java.lang.String getTimeSpent()
           
 java.util.Collection getTrackbacks()
           
 java.util.Set getValidCustomFields()
          Used for XML view of an issue
 java.util.Collection getVersions()
           
 java.lang.String getView()
          Retrieve the value of the view variable.
 java.util.List getVisibleCustomFields()
           
 java.util.List getVisibleCustomFields(org.ofbiz.core.entity.GenericValue issue)
           
 java.util.List getVisibleFieldLayoutItems(java.lang.String issueType)
           
 java.util.Collection getWatcherList()
           
 boolean isAllowedReorderSubTasks()
           
 boolean isAttachable()
          Determine whether the current user can attach files to this issue
 boolean isCanViewProjectRepositories()
          Check that the user has permission to view repositories and that the project has at least one associated repository
 boolean isCanViewVoterWatcherList()
           
 boolean isCanViewWatcherList()
           
 boolean isClosed()
          Determine whether the current issue is closed or not
 boolean isClosed(org.ofbiz.core.entity.GenericValue issue)
          Determine whether the passed issue is closed or not
 boolean isIssueLinkCreatable()
          Tests whether linking is enabled and the user has the link issue permission in the issue's project and whether there are any existing (non-system) issue link types.
 boolean isIssueReportedByMe()
           
 boolean isMovable()
          Determine whether the current user can Move the issue
 boolean isShowIssueDetails(java.lang.Long projectId, org.ofbiz.core.entity.GenericValue issue)
          Determine if table displaying time tracking, attachments, environment, issue linking, trackbacks or custom fields is required.
 boolean isSubTask()
          Determines whether the issue is a sub task - i.e.
 boolean isToolkitAvailable()
           
 java.lang.Boolean isViewIssue()
          Return Boolean.TRUE if this is the ViewIssue page (so the UI can customise itself).
 boolean isVotedAlready()
          Determine whether the current user has voted already or not
 boolean isWatchingAlready()
          Determine whether the current user is already watching the issue or not
 boolean isWorkable()
          Determine whether the current user can work on this issue
 void setActionOrder(java.lang.String actionOrder)
           
 void setCurrentSubTaskSequence(java.lang.Long currentSubTaskSequence)
           
 void setIssuetype(java.lang.String issuetypeId)
           
 void setPage(java.lang.String page)
           
 void setResetPager(java.lang.String resetPager)
           
 void setSubTaskSequence(java.lang.Long subTaskSequence)
           
 void setSubTaskView(java.lang.String subTaskView)
           
 void setView(java.lang.String view)
          Set the view, valid value are null or rss
 void setVote(java.lang.String vote)
           
 void setWatch(java.lang.String watch)
           
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractCommentableIssue
getComment, getCommentLevel, getCommentLevels, setComment, setCommentLevel
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractViewIssue
getAttachments, getIssueLinkManager, getLinkCollection, getPossibleComponents, getPossibleVersions, getPossibleVersionsReleasedFirst, getSubTaskManager, isScreenshotAttachable, isSubTaskCreatable
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
getDefaultSecurityLevel, getId, getIssue, getIssuePath, getKey, getProject, getSecurityLevel, getSecurityLevel, getSecurityLevelName, getSecurityLevels, getSecurityLevels, getViewIssueKey, getViewUrl, isEditable, isEditable, isIssueExists, redirectToView, resetIssue, setId, setIssue, setKey, setViewIssueKey
 
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, 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
 

Constructor Detail

ViewIssue

public ViewIssue(RepositoryManager repositoryManager,
                 PermissionManager permissionManager,
                 TrackbackManager trackbackManager,
                 ThumbnailManager thumbnailManager,
                 SubTaskManager subTaskManager,
                 IssueLinkManager issueLinkManager,
                 IssueLinkTypeManager issueLinkTypeManager,
                 VoteManager voteManager,
                 WatcherManager watcherManager,
                 com.atlassian.plugin.PluginManager pluginManager)
Method Detail

doValidation

protected void doValidation()
Overrides:
doValidation in class AddComment

doExecute

protected java.lang.String doExecute()
                              throws java.lang.Exception
Overrides:
doExecute in class AddComment
Throws:
java.lang.Exception

getPagerManager

public PagerManager getPagerManager()

getComponents

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

getVersions

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

getFixVersions

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

isMovable

public boolean isMovable()
                  throws java.lang.Exception
Determine whether the current user can Move the issue

Throws:
java.lang.Exception

isWorkable

public boolean isWorkable()
                   throws java.lang.Exception
Determine whether the current user can work on this issue

Throws:
java.lang.Exception

isClosed

public boolean isClosed()
                 throws java.lang.Exception
Determine whether the current issue is closed or not

Throws:
java.lang.Exception

isClosed

public boolean isClosed(org.ofbiz.core.entity.GenericValue issue)
                 throws java.lang.Exception
Determine whether the passed issue is closed or not

Throws:
java.lang.Exception

isAttachable

public boolean isAttachable()
                     throws java.lang.Exception
Determine whether the current user can attach files to this issue

Throws:
java.lang.Exception

isViewIssue

public java.lang.Boolean isViewIssue()
Return Boolean.TRUE if this is the ViewIssue page (so the UI can customise itself).

Any subclass should probably return FALSE.


isWatchingAlready

public boolean isWatchingAlready()
                          throws java.lang.Exception
Determine whether the current user is already watching the issue or not

Throws:
java.lang.Exception

isIssueReportedByMe

public boolean isIssueReportedByMe()
                            throws java.lang.Exception
Throws:
java.lang.Exception

getVisibleFieldLayoutItems

public java.util.List getVisibleFieldLayoutItems(java.lang.String issueType)

getPage

public java.lang.String getPage()
Determine which page of the ViewIssue we're on

Options are : comments - brief overview of the issue and all the comments (default) details - detailed view of the issue history - the history log of the issue


setPage

public void setPage(java.lang.String page)

getActions

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

getIssueTabPanels

public java.util.Collection getIssueTabPanels()

getAvailableActions

public java.util.Map getAvailableActions()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

getAvailabelActions

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

getEstimate

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

getTimeOriginalEstimate

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

getTimeSpent

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

setVote

public void setVote(java.lang.String vote)

setWatch

public void setWatch(java.lang.String watch)

getVisibleCustomFields

public java.util.List getVisibleCustomFields()

getVisibleCustomFields

public java.util.List getVisibleCustomFields(org.ofbiz.core.entity.GenericValue issue)

setResetPager

public void setResetPager(java.lang.String resetPager)

isCanViewProjectRepositories

public boolean isCanViewProjectRepositories()
Check that the user has permission to view repositories and that the project has at least one associated repository

Returns:

getRepositoryManager

protected RepositoryManager getRepositoryManager()

getIssueUrl

public java.lang.String getIssueUrl()

getOldIssueUrl

public java.lang.String getOldIssueUrl()

getTrackbacks

public java.util.Collection getTrackbacks()
                                   throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getThumbnails

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

getFileAttachments

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

getImageAttachments

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

isToolkitAvailable

public boolean isToolkitAvailable()

getValidCustomFields

public java.util.Set getValidCustomFields()
                                   throws FieldException
Used for XML view of an issue

Throws:
FieldException

getCustomFieldValue

public java.lang.String getCustomFieldValue(org.ofbiz.core.entity.GenericValue customfield)
                                     throws java.lang.Exception
Used for XML view of an issue

Throws:
java.lang.Exception

getView

public java.lang.String getView()
Retrieve the value of the view variable. currently null or rss

Returns:

setView

public void setView(java.lang.String view)
Set the view, valid value are null or rss

Parameters:
view -

getDurationString

public java.lang.String getDurationString(java.lang.Long millis)
Used by the rss view to display time estimates.

Parameters:
millis -
Returns:

getParentIssue

public org.ofbiz.core.entity.GenericValue getParentIssue()

getSubTaskBean

public SubTaskBean getSubTaskBean()

getHistoryIssuetype

public java.lang.String getHistoryIssuetype()

getSorter

public SearchSort getSorter()

doMoveIssueLink

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

isAllowedReorderSubTasks

public boolean isAllowedReorderSubTasks()

getSubTaskView

public java.lang.String getSubTaskView()

setSubTaskView

public void setSubTaskView(java.lang.String subTaskView)

getCurrentSubTaskSequence

public java.lang.Long getCurrentSubTaskSequence()

setCurrentSubTaskSequence

public void setCurrentSubTaskSequence(java.lang.Long currentSubTaskSequence)

getSubTaskSequence

public java.lang.Long getSubTaskSequence()

setSubTaskSequence

public void setSubTaskSequence(java.lang.Long subTaskSequence)

getSubTaskIssueTypes

public java.util.Collection getSubTaskIssueTypes()

getAssignIn

public org.ofbiz.core.entity.GenericValue getAssignIn()

getJiraWorkflow

public JiraWorkflow getJiraWorkflow()
                             throws WorkflowException
Throws:
WorkflowException

isIssueLinkCreatable

public boolean isIssueLinkCreatable()
Tests whether linking is enabled and the user has the link issue permission in the issue's project and whether there are any existing (non-system) issue link types.

Returns:

setIssuetype

public void setIssuetype(java.lang.String issuetypeId)

getIssuetype

public java.lang.String getIssuetype()

isShowIssueDetails

public boolean isShowIssueDetails(java.lang.Long projectId,
                                  org.ofbiz.core.entity.GenericValue issue)
                           throws java.lang.Exception
Determine if table displaying time tracking, attachments, environment, issue linking, trackbacks or custom fields is required.

Throws:
java.lang.Exception

isSubTask

public boolean isSubTask()
Description copied from class: AbstractViewIssue
Determines whether the issue is a sub task - i.e. if it has any incoming sub-task issue links

Overrides:
isSubTask in class AbstractViewIssue
Returns:

isVotedAlready

public boolean isVotedAlready()
Determine whether the current user has voted already or not


isCanViewVoterWatcherList

public boolean isCanViewVoterWatcherList()
                                  throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

isCanViewWatcherList

public boolean isCanViewWatcherList()
                             throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getWatcherList

public java.util.Collection getWatcherList()

getActionOrder

public java.lang.String getActionOrder()

setActionOrder

public void setActionOrder(java.lang.String actionOrder)


Copyright © 2002-2006 Atlassian. All Rights Reserved.