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.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.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.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 com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
implements I18n

See Also:
Serialized Form

Nested Class Summary
 
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.atlassian.jira.web.action.issue.AbstractIssueSelectAction
id, issueObject
 
Fields inherited from class com.atlassian.jira.web.action.IssueActionSupport
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, 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)
           
 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()
           
 I18n2 getI18n()
           
 java.lang.Long getId()
           
 java.lang.String getIssueKeys()
           
 java.util.Collection<com.atlassian.jira.plugin.webfragment.model.SimpleLink> getIssueOperations()
          NOTE: Code is a copy from public com.atlassian.jira.web.action.issue.IssueNavigator.getIssueOperations() Used for the dot dialog functionality.
 java.util.Set<com.atlassian.jira.issue.Issue> getIssuesToUpdate()
           
 java.lang.String getKey()
           
 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 isTimeTrackingOn()
           
 boolean isUnassignAllowed()
           
 void registerKeyboardContext()
          Registers the GreenHopper keyboard context.
 void resetIssue()
           
 void setI18nFactoryService(I18nFactoryService i18nFactoryService)
          Deprecated. 
 void setId(java.lang.Long id)
           
 void setIssueKeys(java.lang.String keys)
           
 void setKey(java.lang.String 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.atlassian.jira.web.action.issue.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.atlassian.jira.web.action.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.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, forceRedirect, getApplicationProperties, getAssignableUsers, getAssignableUsers, getComponentManager, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraServiceContext, getLanguage, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRandomHint, getRedirect, getRedirectChecker, getRemoteUser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getTimeFormat, getUriValidator, getUserFullName, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, setConglomerateCookieValue, setInline, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
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.pyxis.greenhopper.jira.util.I18n
getHtmlEncodedText, getText, getText, getText
 
Methods inherited from interface com.atlassian.jira.web.action.issue.IssueSummaryAware
getRemoteUser
 
Methods inherited from interface com.atlassian.jira.util.ErrorCollection
addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, 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()

getId

public java.lang.Long getId()
Overrides:
getId in class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction

getKey

public java.lang.String getKey()
Overrides:
getKey in class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction

setId

public void setId(java.lang.Long id)
Overrides:
setId in class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction

setKey

public void setKey(java.lang.String key)
Overrides:
setKey in class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction

resetIssue

public void resetIssue()
Overrides:
resetIssue in class com.atlassian.jira.web.action.issue.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.


getIssueOperations

public java.util.Collection<com.atlassian.jira.plugin.webfragment.model.SimpleLink> getIssueOperations()
NOTE: Code is a copy from public com.atlassian.jira.web.action.issue.IssueNavigator.getIssueOperations() Used for the dot dialog functionality. The way the keyboard shortcuts work is that they click on hidden links (generated out of the data provided by this method), the listeners attached to those links then get the issue id/key from somewhere, take the url from the link and replace the id placeholder with the real id. the real url and issue id is then passed as ajaxOptions to the dialogs that then load the resulting urls, which gives the content htlm for the form.


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. 



Copyright © 2007-2011 Atlassian. All Rights Reserved.