public abstract class

AbstractSchemeToolAction

extends JiraWebActionSupport
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ com.atlassian.jira.action.JiraActionSupport
       ↳ com.atlassian.jira.web.action.JiraWebActionSupport
         ↳ com.atlassian.jira.web.action.admin.scheme.AbstractSchemeToolAction
Known Direct Subclasses
Known Indirect Subclasses

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
Fields
protected ApplicationProperties applicationProperties
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
AbstractSchemeToolAction(SchemeManagerFactory schemeManagerFactory, SchemeFactory schemeFactory, ApplicationProperties applicationProperties)
Public Methods
SchemeFactory getSchemeFactory()
SchemeManagerFactory getSchemeManagerFactory()
String[] getSelectedSchemeIds()
String getSelectedSchemeIdsSessionKey()
Uses getToolName() to create a unique session key to store the selected scheme ids (String[]) for a set of tools (eg.
String getSelectedSchemeType()
String getToolName()
Used by getSelectedSchemeIdsSessionKey() to generate a session key for each set of tools that needs selected scheme id's.
boolean isHasSelectedSchemeIds()
Checks if there is selected scheme ids in the session.
void resetSelectedSchemeIds()
void setSelectedSchemeIds(String[] selectedSchemeIds)
void setSelectedSchemeType(String selectedSchemeType)
void storeSelectedSchemeIdsInSession()
Protected Methods
SchemeManager getSchemeManager(String type)
List<Scheme> getSchemeObjs()
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
From class java.lang.Object
From interface com.atlassian.jira.util.ErrorCollection
From interface com.atlassian.jira.util.I18nHelper
From interface com.atlassian.jira.web.HttpServletVariables
From interface com.atlassian.jira.web.util.AuthorizationSupport
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware

Fields

protected ApplicationProperties applicationProperties

Public Constructors

public AbstractSchemeToolAction (SchemeManagerFactory schemeManagerFactory, SchemeFactory schemeFactory, ApplicationProperties applicationProperties)

Public Methods

public SchemeFactory getSchemeFactory ()

public SchemeManagerFactory getSchemeManagerFactory ()

public String[] getSelectedSchemeIds ()

public String getSelectedSchemeIdsSessionKey ()

Uses getToolName() to create a unique session key to store the selected scheme ids (String[]) for a set of tools (eg. Group to Roles mapper, Scheme comparison etc)

Returns
  • Scheme tool specific session key to store selected scheme id's

public String getSelectedSchemeType ()

public String getToolName ()

Used by getSelectedSchemeIdsSessionKey() to generate a session key for each set of tools that needs selected scheme id's.

Returns
  • Name identifying a set of related picker tools uniquely

public boolean isHasSelectedSchemeIds ()

Checks if there is selected scheme ids in the session. (ignores the cached value)

Returns
  • true if there are selected scheme ids in session, false otherwise

public void resetSelectedSchemeIds ()

public void setSelectedSchemeIds (String[] selectedSchemeIds)

public void setSelectedSchemeType (String selectedSchemeType)

public void storeSelectedSchemeIdsInSession ()

Protected Methods

protected SchemeManager getSchemeManager (String type)

protected List<Scheme> getSchemeObjs ()