public class

EditCrowdApplication

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

Summary

Nested Classes
class EditCrowdApplication.RemoteAddressifyFn Creates a RemoteAddress from a String. 
class EditCrowdApplication.StringifyFn Creates a String from a RemoteAddress. 
Constants
String REMOTE_ADDR_SEP Separator character used for the remote address text area.
[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
[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
EditCrowdApplication(JaacsService jaacsService, I18nHelper.BeanFactory i18nFactory, JiraAuthenticationContext jiraAuthenticationContext)
Public Methods
String doCreate()
Creates a new Crowd application.
String doDelete()
String doUpdate()
Updates an existing Crowd application.
String getCancelAction()
String getHelpTextKey()
Long getId()
String getName()
String getPasswordDescriptionKey()
String getRemoteAddresses()
String getSubmitAction()
String getTitleTextKey()
void setCredential(String credential)
void setId(Long id)
void setName(String name)
void setRemoteAddresses(String remoteAddresses)
Protected Methods
String doExecute()
I18nHelper i18n()
boolean isCreate()
Returns true if this is the create action.
String redirect(String defaultUrl, String... params)
Redirects to the Crowd application list page.
Set<RemoteAddress> remoteAddressify(String stringifiedRemoteAddresses)
Builds a Set of RemoteAddress objects from the stringified version.
String stringify(Set<RemoteAddress> remoteAddresses)
Returns a string representation for the given set of remote addresses.
[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

Constants

public static final String REMOTE_ADDR_SEP

Separator character used for the remote address text area.

Constant Value: " "

Public Constructors

public EditCrowdApplication (JaacsService jaacsService, I18nHelper.BeanFactory i18nFactory, JiraAuthenticationContext jiraAuthenticationContext)

Public Methods

public String doCreate ()

Creates a new Crowd application.

public String doDelete ()

Throws
Exception

public String doUpdate ()

Updates an existing Crowd application.

public String getCancelAction ()

public String getHelpTextKey ()

Returns
  • the i18n key for the page's help text

public Long getId ()

public String getName ()

public String getPasswordDescriptionKey ()

Returns
  • the i18n key for the password Description.

public String getRemoteAddresses ()

public String getSubmitAction ()

Returns
  • the name of the WebWork action to execute on submit

public String getTitleTextKey ()

Returns
  • the i18n key for the page's title.

public void setCredential (String credential)

public void setId (Long id)

public void setName (String name)

public void setRemoteAddresses (String remoteAddresses)

Protected Methods

protected String doExecute ()

Throws
Exception

protected I18nHelper i18n ()

Returns
  • an I18nBean for the logged in user

protected boolean isCreate ()

Returns true if this is the create action.

Returns
  • true if this is the create action

protected String redirect (String defaultUrl, String... params)

Redirects to the Crowd application list page.

Parameters
params the URL parameters to append to the URL
Returns
  • null

protected Set<RemoteAddress> remoteAddressify (String stringifiedRemoteAddresses)

Builds a Set of RemoteAddress objects from the stringified version. The remote addresses are extracted from the passed-in String using REMOTE_ADDR_SEP as the separator character.

Parameters
stringifiedRemoteAddresses a String representing a set of RemoteAddress
Returns
  • a Set of RemoteAddress

protected String stringify (Set<RemoteAddress> remoteAddresses)

Returns a string representation for the given set of remote addresses. The remote addresses are then concatenated into a String using REMOTE_ADDR_SEP as the separator character.

Parameters
remoteAddresses a set of RemoteAddress
Returns
  • a String