com.atlassian.jira.web.action
Class IssueActionSupport

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
All Implemented Interfaces:
ErrorCollection, I18nHelper, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
AbstractBrowser, AbstractBulkOperationAction, AbstractIssueSelectAction, Dashboard, DeleteComment, DeleteGroup, DeleteProject, DeleteProjectEntity, DeleteVersion, SearchDescriptionEnabledAction, ViewProfile, ViewUser

public class IssueActionSupport
extends ProjectActionSupport

See Also:
Serialized Form

Field Summary
protected  AttachmentManager attachmentManager
           
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManager
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, savedFilters, selectedProject
 
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
IssueActionSupport()
           
IssueActionSupport(IssueManager issueManager, CustomFieldManager customFieldManager, AttachmentManager attachmentManager, ProjectManager projectManager, PermissionManager permissionManager, VersionManager versionManager)
           
 
Method Summary
 AttachmentManager getAttachmentManager()
           
 CustomFieldManager getCustomFieldManager()
           
 int getDaysPerWeek()
           
 int getHoursPerDay()
           
 IssueManager getIssueManager()
           
 List getPossibleVersions(org.ofbiz.core.entity.GenericValue project)
          Returns a list of versions applicable to this issue (unreleased first).
 List getPossibleVersionsReleasedFirst(org.ofbiz.core.entity.GenericValue project)
          Returns a list of versions applicable to this issue (released first).
 String getPrettyDuration(Long v)
          this formatting function is shared by the full view for navigator as well as view issue.
 SearchRequest getSearchRequest()
          This method will return the one in the current search request, or return null if one does not exist
 String getUrlEncoded(String s)
           
 com.opensymphony.workflow.Workflow getWorkflow()
           
 String getWorkflowTransitionDescription(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
           
 String getWorkflowTransitionDisplayName(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
          Get the i18n'ed name of a workflow action (eg.
 boolean isCustomFieldHidden(Long projectId, Long customFieldId, String issueTypeId)
          Deprecated. Use FieldVisibilityBean.isCustomFieldHidden(java.lang.Long, java.lang.Long, java.lang.String) instead.
 boolean isFieldHidden(Long projectId, String id, Integer issueTypeId)
           
 boolean isFieldHidden(Long projectId, String id, String issueTypeId)
          Deprecated. Use FieldVisibilityBean.isFieldHidden(java.lang.Long, java.lang.String, java.lang.String) instead.
 boolean isFieldHidden(String id)
          Deprecated. Use FieldVisibilityBean.isFieldHidden(com.opensymphony.user.User, java.lang.String) instead
 void setCurrentIssue(org.ofbiz.core.entity.GenericValue issue)
          Sets the current issue.
protected  void setSearchRequest(SearchRequest searchRequest)
          This method set the SearchRequest in the user's session
protected  void updateSearchRequest()
           
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, forceRedirect, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getSearchSortReverseDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUserFullName, getVersionManager, getWebworkStack, getWebworkStack, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isSystemAdministrator, isUserExists, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doDefault, doExecute, doValidation, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, 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, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Field Detail

attachmentManager

protected final AttachmentManager attachmentManager
Constructor Detail

IssueActionSupport

public IssueActionSupport(IssueManager issueManager,
                          CustomFieldManager customFieldManager,
                          AttachmentManager attachmentManager,
                          ProjectManager projectManager,
                          PermissionManager permissionManager,
                          VersionManager versionManager)

IssueActionSupport

public IssueActionSupport()
Method Detail

getIssueManager

public IssueManager getIssueManager()

getCustomFieldManager

public CustomFieldManager getCustomFieldManager()

getAttachmentManager

public AttachmentManager getAttachmentManager()

getSearchRequest

public SearchRequest getSearchRequest()
This method will return the one in the current search request, or return null if one does not exist


setSearchRequest

protected void setSearchRequest(SearchRequest searchRequest)
This method set the SearchRequest in the user's session

Parameters:
searchRequest - The seerachRequest to place in the session

updateSearchRequest

protected void updateSearchRequest()

setCurrentIssue

public void setCurrentIssue(org.ofbiz.core.entity.GenericValue issue)
Sets the current issue. This is similar to setting the current project - so that we can make things more convenient for users.

At the moment - the only use is for the user history popup.

Parameters:
issue - The issue that you are currently viewing.

getPossibleVersions

public List getPossibleVersions(org.ofbiz.core.entity.GenericValue project)
                         throws Exception
Returns a list of versions applicable to this issue (unreleased first).

Throws:
Exception

getPossibleVersionsReleasedFirst

public List getPossibleVersionsReleasedFirst(org.ofbiz.core.entity.GenericValue project)
                                      throws Exception
Returns a list of versions applicable to this issue (released first).

Throws:
Exception

getUrlEncoded

public String getUrlEncoded(String s)

getWorkflow

public com.opensymphony.workflow.Workflow getWorkflow()

getHoursPerDay

public int getHoursPerDay()

getDaysPerWeek

public int getDaysPerWeek()

getPrettyDuration

public String getPrettyDuration(Long v)
this formatting function is shared by the full view for navigator as well as view issue.

Parameters:
v - duration in seconds

isFieldHidden

public boolean isFieldHidden(String id)
                      throws FieldLayoutStorageException
Deprecated. Use FieldVisibilityBean.isFieldHidden(com.opensymphony.user.User, java.lang.String) instead

Checks if the field is hidden or visible across all the projects that the user can see (has the Permissions.BROWSE permission).

Parameters:
id - id of the FieldConfiguration
Throws:
FieldLayoutStorageException

isCustomFieldHidden

public boolean isCustomFieldHidden(Long projectId,
                                   Long customFieldId,
                                   String issueTypeId)
Deprecated. Use FieldVisibilityBean.isCustomFieldHidden(java.lang.Long, java.lang.Long, java.lang.String) instead.

Checks if the custom field is hidden in the project with id of projectId.

Parameters:
projectId -
customFieldId - the data store id of the custom field

isFieldHidden

public boolean isFieldHidden(Long projectId,
                             String id,
                             String issueTypeId)
Deprecated. Use FieldVisibilityBean.isFieldHidden(java.lang.Long, java.lang.String, java.lang.String) instead.

Checks if the field is hidden in the project with id of projectId.

Parameters:
projectId -
id - fieldId

isFieldHidden

public boolean isFieldHidden(Long projectId,
                             String id,
                             Integer issueTypeId)

getWorkflowTransitionDisplayName

public String getWorkflowTransitionDisplayName(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
Get the i18n'ed name of a workflow action (eg. 'Start Progress').

Parameters:
descriptor - Descriptor eg. from JiraWorkflow.getDescriptor()

getWorkflowTransitionDescription

public String getWorkflowTransitionDescription(com.opensymphony.workflow.loader.ActionDescriptor descriptor)


Copyright © 2002-2009 Atlassian. All Rights Reserved.