com.pyxis.greenhopper.jira.actions
Class AbstractBoardAction

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.pyxis.greenhopper.jira.actions.ProjectActionSupport
                  extended by com.pyxis.greenhopper.jira.actions.IssueActionSupport
                      extended by com.pyxis.greenhopper.jira.actions.AbstractIssueSelectAction
                          extended by com.pyxis.greenhopper.jira.actions.AbstractBoardAction
All Implemented Interfaces:
com.atlassian.jira.util.ErrorCollection, com.atlassian.jira.util.I18nHelper, com.atlassian.jira.web.action.issue.IssueSummaryAware, com.atlassian.jira.web.HttpServletVariables, com.atlassian.jira.web.util.AuthorizationSupport, I18n, java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
BoardAction, GadgetBoardAction

public abstract class AbstractBoardAction
extends AbstractIssueSelectAction
implements I18n

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport.MessageType
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.ErrorCollection
com.atlassian.jira.util.ErrorCollection.Reason
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
com.atlassian.jira.util.I18nHelper.BeanFactory
 
Field Summary
protected  GreenHopperLicenseManager ghLicense
           
protected  GreenHopper greenHopperService
           
protected  java.util.Set<com.atlassian.jira.issue.Issue> issuesToUpdate
           
 
Fields inherited from class com.pyxis.greenhopper.jira.actions.AbstractIssueSelectAction
id, issueObject
 
Fields inherited from class com.pyxis.greenhopper.jira.actions.IssueActionSupport
attachmentManager
 
Fields inherited from class com.pyxis.greenhopper.jira.actions.ProjectActionSupport
projectManager
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
AbstractBoardAction(GreenHopper greenHopperService, GreenHopperLicenseManager ghLicense)
           
 
Method Summary
protected  void addError(java.lang.Exception e)
           
protected  void addError(java.lang.Exception e, java.lang.String msgId)
           
 void addError(java.lang.String e, java.lang.String msg)
           
 void asApplicationSlashJson()
          This can be called to set the response to be application/json.
 java.util.Collection<com.atlassian.jira.project.Project> getAllJIRAProjects()
           
 java.util.Collection<com.atlassian.jira.issue.priority.Priority> getAllPriorities()
           
 java.util.Set<com.atlassian.jira.issue.resolution.Resolution> getAllResolutions()
           
 java.lang.String getCalendarFormat()
           
 java.lang.String getCalendarLocale()
           
 java.lang.String getCalendarTimeFormat()
           
 boolean getCanEditPreferences()
           
 java.lang.String getDefaultPriorityId()
           
 java.lang.String getDefaultResolutionId()
           
 GreenHopperHelpPathResolver.HelpPath getHelpPath(java.lang.String key)
           
 I18n2 getI18n()
           
 java.lang.Long getId()
          Get Id of current issue.
 java.lang.String getIssueKeys()
           
 java.util.Set<com.atlassian.jira.issue.Issue> getIssuesToUpdate()
           
 java.lang.String getKey()
          Get key of current issue.
 java.lang.String getPluginKey()
           
 java.lang.String getPluginVersion()
           
 java.lang.String getResourceLocation(java.lang.String moduleName, java.lang.String resourceName)
           
protected  com.atlassian.jira.user.UserProjectHistoryManager getUserProjectHistoryManager()
           
 WebUtilities getUtil()
          Utilities object
 void includeFieldResourcesForCurrentUser()
          Load additional field specific javascript files JIRA includes this on various jsp files, such as the navigator, search, issuedetails or wizards and forms.
 boolean isAdmin()
           
 boolean isBetaEnabled(java.lang.String betaId)
           
 boolean isHostedEnvironment()
           
 boolean isTimeTrackingOn()
           
 boolean isUnassignAllowed()
           
protected  java.lang.String redirectToDashboard()
           
protected  java.lang.String redirectToRapidStart()
           
 void registerKeyboardContext()
          Registers the GreenHopper keyboard context.
 void resetIssue()
           
 void setI18nFactoryService(I18nFactoryService i18nFactoryService)
          Deprecated. 
 void setId(java.lang.Long id)
          Set the the current issue by its id.
 void setIssueKeys(java.lang.String keys)
           
 void setKey(java.lang.String key)
          Set current issue by its key.
 void setWebUtilities(WebUtilities webUtilities)
          Deprecated. 
protected  java.lang.String toDecimalFormat(java.lang.String value)
           
protected  void validate(java.lang.String str, java.lang.String key)
           
 
Methods inherited from class com.pyxis.greenhopper.jira.actions.AbstractIssueSelectAction
cameFromIssue, cameFromParent, getIssue, getIssueObject, getIssueObjectNoSecurityCheck, getIssuePath, getLayoutBean, getParentIssueObject, getProject, getSecurityLevel, getSecurityLevel, getSecurityLevelName, getSubTaskManager, getSummaryIssue, getViewIssueKey, getViewUrl, isEditable, isEditable, isHasEditIssuePermission, isIssueExists, isIssueValid, isSubTask, isSubTaskCreatable, isWorkflowAllowsEdit, redirectToView, setIssue, setViewIssueKey
 
Methods inherited from class com.pyxis.greenhopper.jira.actions.IssueActionSupport
clearSelectedIssue, getAttachmentManager, getCurrentFailedLoginCount, getCurrentJQL, getCustomFieldManager, getDaysPerWeek, getEverLoggedIn, getHoursPerDay, getIssueManager, getLastFailedLogin, getLastLogin, getLoginCount, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getPreviousLogin, getSearchRequest, getSelectedIssueId, getSessionPagerFilterManager, getSessionSearchRequestManager, getSessionSearchRequestManagerFactory, getSessionSelectedIssueManager, getTotalFailedLoginCount, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isElevatedSecurityCheckRequired, isFieldHidden, isFieldHidden, isFieldHidden, isTimeTrackingEnabled, setCurrentIssue, setSearchRequest, setSelectedIssueId, updateSearchRequest
 
Methods inherited from class com.pyxis.greenhopper.jira.actions.ProjectActionSupport
escapeJavaScript, getHtmlEncodedText, getSelectedProjectId, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, htmlEncode, setSelectedProject, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addMessageToResponse, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, hasIssuePermission, hasPermission, hasProjectPermission, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, urlEncode
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getRemoteUser, getResourceBundle, getResult, getUnescapedText, getUntransformedRawText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, isKeyDefined, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addErrorMessage, doDefault, doExecute, doValidation, 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.pyxis.greenhopper.jira.util.I18n
getHtmlEncodedText, getText, getText, getText
 
Methods inherited from interface com.atlassian.jira.web.action.issue.IssueSummaryAware
getLoggedInUser
 
Methods inherited from interface com.atlassian.jira.util.ErrorCollection
addErrorMessage, addErrorMessages, addErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Field Detail

greenHopperService

protected GreenHopper greenHopperService

ghLicense

protected GreenHopperLicenseManager ghLicense

issuesToUpdate

protected java.util.Set<com.atlassian.jira.issue.Issue> issuesToUpdate
Constructor Detail

AbstractBoardAction

public AbstractBoardAction(GreenHopper greenHopperService,
                           GreenHopperLicenseManager ghLicense)
Method Detail

getUtil

public WebUtilities getUtil()
Utilities object


getI18n

public I18n2 getI18n()
Overrides:
getI18n in class ProjectActionSupport

getId

public java.lang.Long getId()
Description copied from class: AbstractIssueSelectAction
Get Id of current issue.

Overrides:
getId in class AbstractIssueSelectAction
Returns:
Integer Id, or null if issue not set

getKey

public java.lang.String getKey()
Description copied from class: AbstractIssueSelectAction
Get key of current issue.

Overrides:
getKey in class AbstractIssueSelectAction
Returns:
Issue key, or null if not set

setId

public void setId(java.lang.Long id)
Description copied from class: AbstractIssueSelectAction
Set the the current issue by its id.

Overrides:
setId in class AbstractIssueSelectAction
Parameters:
id - Eg. from Issue.getId()

setKey

public void setKey(java.lang.String key)
Description copied from class: AbstractIssueSelectAction
Set current issue by its key.

Overrides:
setKey in class AbstractIssueSelectAction
Parameters:
key - Issue key.

resetIssue

public void resetIssue()
Overrides:
resetIssue in class AbstractIssueSelectAction

getIssuesToUpdate

public java.util.Set<com.atlassian.jira.issue.Issue> getIssuesToUpdate()

setIssueKeys

public void setIssueKeys(java.lang.String keys)

getIssueKeys

public java.lang.String getIssueKeys()

registerKeyboardContext

public void registerKeyboardContext()
Registers the GreenHopper keyboard context.


includeFieldResourcesForCurrentUser

public void includeFieldResourcesForCurrentUser()
Load additional field specific javascript files JIRA includes this on various jsp files, such as the navigator, search, issuedetails or wizards and forms.


isBetaEnabled

public boolean isBetaEnabled(java.lang.String betaId)

getPluginKey

public java.lang.String getPluginKey()

getPluginVersion

public java.lang.String getPluginVersion()

getCalendarLocale

public java.lang.String getCalendarLocale()

getCalendarFormat

public java.lang.String getCalendarFormat()

getCalendarTimeFormat

public java.lang.String getCalendarTimeFormat()

getDefaultResolutionId

public java.lang.String getDefaultResolutionId()

getDefaultPriorityId

public java.lang.String getDefaultPriorityId()

isAdmin

public boolean isAdmin()

getAllResolutions

public java.util.Set<com.atlassian.jira.issue.resolution.Resolution> getAllResolutions()

isTimeTrackingOn

public boolean isTimeTrackingOn()

isUnassignAllowed

public boolean isUnassignAllowed()

getCanEditPreferences

public boolean getCanEditPreferences()

getAllPriorities

public java.util.Collection<com.atlassian.jira.issue.priority.Priority> getAllPriorities()

getAllJIRAProjects

public java.util.Collection<com.atlassian.jira.project.Project> getAllJIRAProjects()

addError

public void addError(java.lang.String e,
                     java.lang.String msg)
Specified by:
addError in interface com.atlassian.jira.util.ErrorCollection
Overrides:
addError in class webwork.action.ActionSupport

getResourceLocation

public java.lang.String getResourceLocation(java.lang.String moduleName,
                                            java.lang.String resourceName)

addError

protected void addError(java.lang.Exception e)

addError

protected void addError(java.lang.Exception e,
                        java.lang.String msgId)

getUserProjectHistoryManager

protected com.atlassian.jira.user.UserProjectHistoryManager getUserProjectHistoryManager()
Overrides:
getUserProjectHistoryManager in class com.atlassian.jira.web.action.JiraWebActionSupport

validate

protected void validate(java.lang.String str,
                        java.lang.String key)
                 throws GreenHopperException
Throws:
GreenHopperException

toDecimalFormat

protected java.lang.String toDecimalFormat(java.lang.String value)

setWebUtilities

@Deprecated
public void setWebUtilities(WebUtilities webUtilities)
Deprecated. 


setI18nFactoryService

@Deprecated
public void setI18nFactoryService(I18nFactoryService i18nFactoryService)
Deprecated. 


isHostedEnvironment

public boolean isHostedEnvironment()

asApplicationSlashJson

public void asApplicationSlashJson()
This can be called to set the response to be application/json. It callable even from Velocity since we have shared actions that produce both JSON and HTML and hence its the .vm that is in the best position to make this call.


redirectToRapidStart

protected java.lang.String redirectToRapidStart()

redirectToDashboard

protected java.lang.String redirectToDashboard()

getHelpPath

public GreenHopperHelpPathResolver.HelpPath getHelpPath(java.lang.String key)


Copyright © 2007-2014 Atlassian. All Rights Reserved.