com.pyxis.greenhopper.jira.actions
Class BoardAction
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.action.JiraActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.ProjectActionSupport
com.atlassian.jira.web.action.IssueActionSupport
com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
com.pyxis.greenhopper.jira.actions.AbstractBoardAction
com.pyxis.greenhopper.jira.actions.BoardAction
- 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:
- ConfigurationAction, ContextBoardAction, GreenHopperAction, JIRAIFrameAction, LicenseAction, PlanningBoardAction
public class BoardAction
- extends AbstractBoardAction
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper |
com.atlassian.jira.util.I18nHelper.BeanFactory |
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 |
Methods inherited from class com.pyxis.greenhopper.jira.actions.AbstractBoardAction |
addError, addError, addError, getAllJIRAProjects, getAllPriorities, getAllResolutions, getCalendarFormat, getCalendarLocale, getCalendarTimeFormat, getCanEditPreferences, getDefaultPriorityId, getDefaultResolutionId, getI18n, getId, getIssueKeys, getIssueOperations, getIssuesToUpdate, getKey, getPluginKey, getPluginVersion, getResourceLocation, getUserProjectHistoryManager, getUtil, includeFieldResourcesForCurrentUser, isAdmin, isBetaEnabled, isTimeTrackingOn, isUnassignAllowed, registerKeyboardContext, resetIssue, setI18nFactoryService, setId, setIssueKeys, setKey, setWebUtilities, toDecimalFormat, validate |
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, getViewUrl, isEditable, isEditable, isHasEditIssuePermission, isIssueExists, isIssueValid, isSubTask, isSubTaskCreatable, isWorkflowAllowsEdit, redirectToView, setIssue |
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, 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, hasErrorMessage, hasErrorMessageByKey, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, setConglomerateCookieValue, setInline, setReturnUrl |
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, 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 |
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 |
issueLinkManager
protected com.atlassian.jira.issue.link.IssueLinkManager issueLinkManager
subtaskManager
protected com.atlassian.jira.config.SubTaskManager subtaskManager
selectedBoard
protected Board selectedBoard
selectedVersion
protected com.atlassian.jira.project.version.Version selectedVersion
selectedProjectId
protected java.lang.Long selectedProjectId
confirmed
protected boolean confirmed
refresh
protected boolean refresh
context
protected Context context
warningId
protected java.lang.String warningId
start
protected int start
BoardAction
public BoardAction(GreenHopper greenHopperService,
GreenHopperLicenseManager ghLicense,
com.atlassian.jira.issue.link.IssueLinkManager issueLinkManager,
com.atlassian.jira.config.SubTaskManager subtaskManager)
doSuccess
public java.lang.String doSuccess()
doGet
public java.lang.String doGet()
doFullScreen
public java.lang.String doFullScreen()
doNormalScreen
public java.lang.String doNormalScreen()
doGetLegend
public java.lang.String doGetLegend()
doCloseLegend
public java.lang.String doCloseLegend()
getXProject
public XProject getXProject()
- Returns the selected XProject (if available). Once everything is switched over to XProject this will never be null.
getGhProject
public com.atlassian.jira.project.Project getGhProject()
isSelected
public boolean isSelected(com.atlassian.jira.project.Project project)
getSelectedProjectId
public java.lang.Long getSelectedProjectId()
- Overrides:
getSelectedProjectId
in class com.atlassian.jira.web.action.ProjectActionSupport
setSelectedProjectId
public void setSelectedProjectId(java.lang.Long selectedProjectId)
- Overrides:
setSelectedProjectId
in class com.atlassian.jira.web.action.JiraWebActionSupport
getProjectBoard
public ProjectBoard getProjectBoard()
getAllPlanningViews
public java.util.Map<java.lang.String,java.lang.String> getAllPlanningViews()
getSearchKey
public java.lang.String getSearchKey()
setSearchKey
public void setSearchKey(java.lang.String searchKey)
getSearchType
public java.lang.String getSearchType()
setSearchType
public void setSearchType(java.lang.String searchType)
getSearchResults
public java.util.Collection<com.atlassian.jira.issue.Issue> getSearchResults()
getSubsVisibility
public boolean getSubsVisibility()
getUseJiraIFrame
public boolean getUseJiraIFrame()
isCompactView
public boolean isCompactView()
getUnreleasedVersions
public java.util.List<com.atlassian.jira.project.version.Version> getUnreleasedVersions()
getReleasedVersions
public java.util.List<com.atlassian.jira.project.version.Version> getReleasedVersions()
isSubtaskAllowed
public boolean isSubtaskAllowed()
getAllChartableFields
public java.util.Set<WatchedField> getAllChartableFields()
getHighLightRatio
public double getHighLightRatio()
getRemainingField
public WatchedField getRemainingField()
getIssueCountField
public WatchedField getIssueCountField()
getProjectConfig
public ProjectConfiguration getProjectConfig()
getGHConfiguration
public GHConfiguration getGHConfiguration()
getConfigFor
public ProjectConfiguration getConfigFor(java.lang.Long projectId)
getCanBulkEdit
public boolean getCanBulkEdit()
getCanEditConfig
public boolean getCanEditConfig()
getCanCreateNewCards
public boolean getCanCreateNewCards()
getCanProjectEdit
public boolean getCanProjectEdit()
getCanProjectAssign
public boolean getCanProjectAssign()
getCanSelectVersion
public boolean getCanSelectVersion()
getCanSetSecurity
public boolean getCanSetSecurity()
getCanAssign
public boolean getCanAssign()
getIsAssignable
public boolean getIsAssignable()
getDefaultAssignee
public com.opensymphony.user.User getDefaultAssignee()
getDefaultSecurity
public org.ofbiz.core.entity.GenericValue getDefaultSecurity()
getAllowUnassigned
public boolean getAllowUnassigned()
getPreferences
public UserBoardsPreferences getPreferences()
getUserSettings
public UserBoardSettings getUserSettings()
getAllUserProjects
public java.util.TreeSet<com.atlassian.jira.project.Project> getAllUserProjects()
getAllSecurityLevels
public java.util.Collection<org.ofbiz.core.entity.GenericValue> getAllSecurityLevels()
getAllComponents
public java.util.Collection<com.atlassian.jira.bc.project.component.ProjectComponent> getAllComponents()
getAllStatuses
public java.util.Collection<com.atlassian.jira.issue.status.Status> getAllStatuses()
isRefresh
public boolean isRefresh()
setConfirmed
public void setConfirmed(boolean confirmed)
setSelectedBoardId
public void setSelectedBoardId(java.lang.String selectedBoardId)
getShowLegend
public boolean getShowLegend()
isSecurityEnabled
public boolean isSecurityEnabled()
getProjectIssueTypes
public java.util.Collection<com.atlassian.jira.issue.issuetype.IssueType> getProjectIssueTypes()
getStandardIssueTypes
public java.util.Collection<com.atlassian.jira.issue.issuetype.IssueType> getStandardIssueTypes()
getSubtaskTypes
public java.util.Collection<com.atlassian.jira.issue.issuetype.IssueType> getSubtaskTypes()
getAllVersionBoards
public java.util.Set<VersionBoard> getAllVersionBoards()
getAllComponentBoards
public java.util.Set<ComponentBoard> getAllComponentBoards()
getAllAssigneeBoards
public java.util.Set<AssigneeBoard> getAllAssigneeBoards()
getReporterUsers
public java.util.Collection<com.opensymphony.user.User> getReporterUsers()
getAssignableUsers
public java.util.Collection<com.opensymphony.user.User> getAssignableUsers()
getCanBrowse
public boolean getCanBrowse()
isHierarchyInstalled
public boolean isHierarchyInstalled()
getText
public java.lang.String getText(java.lang.String key,
java.util.Locale locale)
getText
public java.lang.String getText(java.lang.String key)
- Get the translated text from the resource bundle. If it's not
found in the GH translations, try to fall back to JIRA. If it's
not found there as well, return the key.
- Specified by:
getText
in interface com.atlassian.jira.util.I18nHelper
- Specified by:
getText
in interface I18n
- Overrides:
getText
in class com.atlassian.jira.action.JiraActionSupport
getText
public java.lang.String getText(java.lang.String string,
java.lang.String[] parameters)
getText
public java.lang.String getText(java.lang.String string,
java.lang.String parameter)
- Specified by:
getText
in interface com.atlassian.jira.util.I18nHelper
- Overrides:
getText
in class com.atlassian.jira.action.JiraActionSupport
getModifierKey
public java.lang.String getModifierKey()
- Returns the modifier key used for the specific browser/platform.
This is used to render keyboard shortcuts, e.g. CTRL+s
getHtmlEncodedText
public java.lang.String getHtmlEncodedText(java.lang.String key)
getJavascriptEncodedText
public java.lang.String getJavascriptEncodedText(java.lang.String key)
htmlEncode
public java.lang.String htmlEncode(java.lang.String txt)
- Overrides:
htmlEncode
in class com.atlassian.jira.web.action.JiraWebActionSupport
getUrlEncodedText
public java.lang.String getUrlEncodedText(java.lang.String key)
getTruncatedText
public java.lang.String getTruncatedText(java.lang.String key,
int length)
encodeJavaScript
public java.lang.String encodeJavaScript(java.lang.String text)
encodeJson
public java.lang.String encodeJson(java.lang.String text)
setRedirectType
public void setRedirectType(java.lang.String redirectType)
getType
public java.lang.String getType()
setType
public void setType(java.lang.String type)
isFullScreen
public boolean isFullScreen()
isCardBgColored
public boolean isCardBgColored()
isListAlt
public boolean isListAlt()
getIssueDisplay
public java.lang.String getIssueDisplay()
setIssueDisplay
public void setIssueDisplay(java.lang.String issueDisplay)
setStart
public void setStart(int start)
getFieldName
public java.lang.String getFieldName(java.lang.String fieldId)
getWarningId
public java.lang.String getWarningId()
setWarningId
public void setWarningId(java.lang.String warningId)
getBoardContext
public BoardContext getBoardContext()
getContext
public Context getContext()
getPageTitle
public java.lang.String getPageTitle()
hasModBar
public boolean hasModBar()
registerSelectedView
protected void registerSelectedView()
getWarningUrl
protected java.lang.String getWarningUrl(java.lang.String warningId)
boardResult
protected java.lang.String boardResult()
canGHBrowse
protected boolean canGHBrowse()
getBoardURL
public java.lang.String getBoardURL()
- Changed to public to be accessible by issueaction-links.vm
getXsrfToken
public java.lang.String getXsrfToken()
- Returns the xsrf token used for the current request.
We currently only use this to generate correct workflow transition requests
- Overrides:
getXsrfToken
in class com.atlassian.jira.web.action.JiraWebActionSupport
isAProjectBoard
public boolean isAProjectBoard()
- TODO This should be refactored!
Was initially meant to correct the xml plugin file size
Is it still an issue?
Advatages of the MVC not being fully used!
isVersionBoard
public boolean isVersionBoard()
isAssigneeBoard
public boolean isAssigneeBoard()
isComponentBoard
public boolean isComponentBoard()
isTaskBoard
public boolean isTaskBoard()
isChartBoard
public boolean isChartBoard()
isArchiveChartBoard
public boolean isArchiveChartBoard()
isConfigurationBoard
public boolean isConfigurationBoard()
isSearchBoard
public boolean isSearchBoard()
isReleasedBoard
public boolean isReleasedBoard()
isPlanningBoard
public boolean isPlanningBoard()
getSelectedBoard
public Board getSelectedBoard()
findBacklog
protected Backlog findBacklog(java.lang.String id)
getView
public java.lang.String getView()
getBoardGroup
public java.lang.String getBoardGroup()
getAllTabs
public java.util.Map<java.lang.String,java.lang.String> getAllTabs()
getSelectedTab
public java.lang.String getSelectedTab()
getRedirectType
public java.lang.String getRedirectType()
isBoardSpecified
protected boolean isBoardSpecified()
getIssueFieldManager
protected IssueFieldManager getIssueFieldManager()
getViewIssueKey
public java.lang.String getViewIssueKey()
- Overrides:
getViewIssueKey
in class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
setViewIssueKey
public void setViewIssueKey(java.lang.String viewIssueKey)
- Overrides:
setViewIssueKey
in class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
Copyright © 2007-2011 Atlassian. All Rights Reserved.