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

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.issue.AbstractIssueSelectAction
                          extended bycom.atlassian.jira.web.action.issue.AbstractViewIssue
                              extended bycom.atlassian.jira.web.action.issue.ViewIssue
All Implemented Interfaces:
CustomFieldValuesAware
Direct Known Subclasses:
ManageAttachments, ManageLinks

public class ViewIssue
extends AbstractViewIssue
implements CustomFieldValuesAware

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.ProjectActionSupport
savedFilters
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, permissionManager, request
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Constructor Summary
ViewIssue(RepositoryManager repositoryManager, PermissionManager permissionManager, TrackbackManager trackbackManager, ThumbnailManager thumbnailManager)
           
 
Method Summary
protected  java.lang.String doExecute()
           
 java.util.Collection getActions()
           
 java.util.Map getAvailableActions()
           
 java.util.Collection getComponents()
           
 java.lang.String getCustomFieldValue(GenericValue customfield)
          Used for XML view of an issue
 CustomFieldValuesHolder getCustomFieldValuesHolder()
           
 java.lang.String getEstimate()
           
 java.util.Collection getFileAttachments()
           
 java.util.Collection getFixVersions()
           
 java.lang.String getIssueUrl()
           
 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()
           
protected  RepositoryManager getRepositoryManager()
           
 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()
           
 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 isClosed()
          Determine whether the current issue is closed or not
 boolean isEditable()
          Determine whether the current user can edit or resolve this issue
 boolean isIssueReportedByMe()
           
 boolean isMovable()
          Determine whether the current user can Move the issue
 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
 java.util.Map loadAvailableActions()
           
 void setPage(java.lang.String page)
           
 void setResetPager(java.lang.String resetPager)
           
 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.AbstractViewIssue
getAttachments, getLinkCollection, getPossibleComponents, getPossibleVersions, getPossibleVersionsReleasedFirst, isScreenshotAttachable
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
getDefaultSecurityLevel, getId, getIssue, getIssuePath, getKey, getProject, getSecurityLevel, getSecurityLevel, getSecurityLevelName, getSecurityLevels, getSecurityLevels, isIssueExists, resetIssue, setId, setIssue, setKey
 
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
 
Methods inherited from interface com.atlassian.jira.issue.customfields.CustomFieldValuesAware
addError, addErrorMessage
 

Constructor Detail

ViewIssue

public ViewIssue(RepositoryManager repositoryManager,
                 PermissionManager permissionManager,
                 TrackbackManager trackbackManager,
                 ThumbnailManager thumbnailManager)
Method Detail

doExecute

protected java.lang.String doExecute()
                              throws java.lang.Exception
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

isEditable

public boolean isEditable()
                   throws java.lang.Exception
Determine whether the current user can edit or resolve this issue

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

isAttachable

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

Throws:
java.lang.Exception

isVotedAlready

public boolean isVotedAlready()
                       throws java.lang.Exception
Determine whether the current user has voted already or not

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

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

getAvailableActions

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

loadAvailableActions

public java.util.Map loadAvailableActions()
                                   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)

getCustomFieldValuesHolder

public CustomFieldValuesHolder getCustomFieldValuesHolder()
                                                   throws GenericEntityException
Specified by:
getCustomFieldValuesHolder in interface CustomFieldValuesAware
Throws:
GenericEntityException

getVisibleCustomFields

public java.util.List getVisibleCustomFields()

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 GenericEntityException
Throws:
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

getValidCustomFields

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

Throws:
FieldException

getCustomFieldValue

public java.lang.String getCustomFieldValue(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 -