com.atlassian.studio.jira.web.action.admin
Class EditStudioTabs

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.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

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.ErrorCollection
ErrorCollection.Reason
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
protected  com.atlassian.sal.api.message.I18nResolver i18nResolver
           
protected  StudioTabManager studioTabManager
           
 
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
EditStudioTabs(StudioTabManager studioTabManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, JiraPermissionUtils jiraPermissionUtils)
           
 
Method Summary
 String doCreate()
           
 String doDefault()
           
 String doEdit()
           
 String doExecute()
           
 String doHide()
           
 String doMove()
           
 String doRemove()
           
 String doReset()
           
 String doShow()
           
 void doValidation()
           
 String execute()
           
 List<com.atlassian.studio.core.navbar.api.navigation.StudioTab> getDefaultTabs()
           
 String getDescription(com.atlassian.studio.core.navbar.api.navigation.StudioTab studioTab)
           
 List<com.atlassian.studio.core.navbar.api.navigation.StudioTab> getGlobalTabs()
           
 String getHomeUrl()
           
 String getKey()
           
 String getMessage()
           
 String getName()
           
 String getName(com.atlassian.studio.core.navbar.api.navigation.StudioTab studioTab)
           
 int getPosition()
           
 com.atlassian.studio.core.navbar.api.navigation.StudioTab getStudioTab()
           
 String getTabsRedirect(String message)
           
 String getText(String key)
          Called to return the formatted text of the specified i18n key or the key itself if no message can be found
 String getText(String key, String xs)
          Called to return the formatted text of the specified i18n key or the key itself if no message can be found
 String getUrl()
           
 boolean isCustom(com.atlassian.studio.core.navbar.api.navigation.StudioTab studioTab)
           
 boolean isDisplayed()
           
 boolean isGlobal()
           
 boolean isHome(com.atlassian.studio.core.navbar.api.navigation.StudioTab studioTab)
           
 void setDirection(String direction)
           
 void setDisplayed(boolean displayed)
           
 void setGlobal(boolean global)
           
 void setMessageKey(String messageKey)
           
 void setName(String name)
           
 void setPosition(int position)
           
 void setUrl(String url)
           
protected  boolean validateSecurity()
          Validate that the current user can access this action, may be overridden by child classes
 
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 com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
getCommandName, setCommand
 

Field Detail

studioTabManager

protected final StudioTabManager studioTabManager

i18nResolver

protected final com.atlassian.sal.api.message.I18nResolver i18nResolver
Constructor Detail

EditStudioTabs

public EditStudioTabs(StudioTabManager studioTabManager,
                      com.atlassian.sal.api.message.I18nResolver i18nResolver,
                      JiraPermissionUtils jiraPermissionUtils)
Method Detail

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 message
xs - 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.