com.atlassian.studio.jira.web.action.admin
Class EditStudioTabs
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.action.JiraActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.studio.jira.web.action.admin.EditStudioTabs
- All Implemented Interfaces:
- ErrorCollection, I18nHelper, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
- Direct Known Subclasses:
- EditStudioProjectTabs
public class EditStudioTabs
- extends JiraWebActionSupport
Action for managing Studio Tabs
- See Also:
- Serialized Form
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.atlassian.jira.web.action.JiraWebActionSupport |
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirectChecker, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId |
Methods inherited from class com.atlassian.jira.action.JiraActionSupport |
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getRemoteUser, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, removeKeyOrAddError |
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, getCommandName, 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 webwork.action.CommandDriven |
getCommandName, setCommand |
studioTabManager
protected final StudioTabManager studioTabManager
i18nResolver
protected final com.atlassian.sal.api.message.I18nResolver i18nResolver
EditStudioTabs
public EditStudioTabs(StudioTabManager studioTabManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
JiraPermissionUtils jiraPermissionUtils)
execute
public String execute()
throws Exception
- Specified by:
execute
in interface webwork.action.Action
- Overrides:
execute
in class JiraActionSupport
- Throws:
Exception
getText
public String getText(String key)
- Description copied from interface:
I18nHelper
- Called to return the formatted text of the specified i18n key or the key itself if no message can be found
- Specified by:
getText
in interface I18nHelper
- Overrides:
getText
in class JiraActionSupport
- Parameters:
key
- the key of the i18n message
- Returns:
- the formatted text or the key itself if no i18n message can be found
getText
public String getText(String key,
String xs)
- Description copied from interface:
I18nHelper
- Called to return the formatted text of the specified i18n key or the key itself if no message can be found
- Specified by:
getText
in interface I18nHelper
- Overrides:
getText
in class JiraActionSupport
- Parameters:
key
- the key of the i18n messagexs
- a value to be substituted into the message
- Returns:
- the formatted text or the key itself if no i18n message can be found
doDefault
public String doDefault()
throws Exception
- Overrides:
doDefault
in class webwork.action.ActionSupport
- Throws:
Exception
doValidation
public void doValidation()
- Overrides:
doValidation
in class webwork.action.ActionSupport
doExecute
public String doExecute()
throws Exception
- Overrides:
doExecute
in class webwork.action.ActionSupport
- Throws:
Exception
validateSecurity
protected boolean validateSecurity()
- Validate that the current user can access this action, may be overridden by child classes
- Returns:
- true if the current user is allowed to perform this action
doEdit
public String doEdit()
throws Exception
- Throws:
Exception
doCreate
public String doCreate()
throws Exception
- Throws:
Exception
doRemove
public String doRemove()
throws Exception
- Throws:
Exception
doShow
public String doShow()
throws Exception
- Throws:
Exception
doHide
public String doHide()
throws Exception
- Throws:
Exception
doMove
public String doMove()
throws Exception
- Throws:
Exception
doReset
public String doReset()
throws Exception
- Throws:
Exception
getTabsRedirect
public String getTabsRedirect(String message)
getGlobalTabs
public List<com.atlassian.studio.core.navbar.api.navigation.StudioTab> getGlobalTabs()
getDefaultTabs
public List<com.atlassian.studio.core.navbar.api.navigation.StudioTab> getDefaultTabs()
getStudioTab
public com.atlassian.studio.core.navbar.api.navigation.StudioTab getStudioTab()
getName
public String getName(com.atlassian.studio.core.navbar.api.navigation.StudioTab studioTab)
getDescription
public String getDescription(com.atlassian.studio.core.navbar.api.navigation.StudioTab studioTab)
getHomeUrl
public String getHomeUrl()
isCustom
public boolean isCustom(com.atlassian.studio.core.navbar.api.navigation.StudioTab studioTab)
isHome
public boolean isHome(com.atlassian.studio.core.navbar.api.navigation.StudioTab studioTab)
getName
public String getName()
setName
public void setName(String name)
getUrl
public String getUrl()
setUrl
public void setUrl(String url)
getKey
public String getKey()
getMessage
public String getMessage()
setMessageKey
public void setMessageKey(String messageKey)
getPosition
public int getPosition()
setPosition
public void setPosition(int position)
isDisplayed
public boolean isDisplayed()
setDisplayed
public void setDisplayed(boolean displayed)
setDirection
public void setDirection(String direction)
setGlobal
public void setGlobal(boolean global)
isGlobal
public boolean isGlobal()
Copyright © 2002-2012 Atlassian. All Rights Reserved.