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, issue, key
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
savedFilters
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
PERMISSION_VIOLATION_RESULT, request
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Constructor Summary
ViewIssue()
           
 
Method Summary
protected  java.lang.String doExecute()
           
 java.util.Collection getActions()
           
 java.util.Map getAvailableActions()
           
 java.util.Collection getComponents()
           
 CustomFieldValuesHolder getCustomFieldValuesHolder()
           
 java.lang.String getEstimate()
           
 java.util.Collection getFixVersions()
           
 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
 java.lang.String getTimeOriginalEstimate()
           
 java.lang.String getTimeSpent()
           
 java.util.Collection getVersions()
           
 boolean isAttachable()
          Determine whether the current user can attach files to this issue
 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
 void setPage(java.lang.String page)
           
 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
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
getDefaultSecurityLevel, getId, getIssue, getProject, getSecurityLevel, getSecurityLevel, getSecurityLevelName, getSecurityLevels, getSecurityLevels, setId, setKey
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
getActionManager, getAssignableUsers, getAttachmentManager, getCustomFieldManager, getDaysPerWeek, getHoursPerDay, getIssueManager, getPossibleVersions, getPrettyDuration, getSearchRequest, getSelectedProject, getUrlEncoded, getVisibleCustomFields, getVisibleFields, getWorkflow, isFieldHidden, setCurrentIssue, setSelectedProject, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getProjectManager, getSavedFilters
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
getCachedGroups, getConstantsManager, getGlobalColumns, getPropertySet, getRedirect, getRemoteUser, getUserPreferences, isHasIssuePermission, isHasPermission, isHasPermission, isHasProjectPermission
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrors, execute, getActionName, getApplicationProperties, getDelegator, 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()
Method Detail

doExecute

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

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

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 java.lang.Exception
Specified by:
getCustomFieldValuesHolder in interface CustomFieldValuesAware
Throws:
java.lang.Exception