public class

DefaultEditPopServerConfiguration

extends Object
implements EditPopServerConfiguration
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.admin.DefaultEditPopServerConfiguration

Summary

Nested Classes
class DefaultEditPopServerConfiguration.PasswordIsMandatoryException  
Public Constructors
DefaultEditPopServerConfiguration(MailServerAdministration parent, WebTester tester)
Public Methods
EditPopServerConfiguration setDescription(String description)
Sets the description field to an specified value.
EditPopServerConfiguration setHostName(String hostName)
Sets the host name field to an specified value.
EditPopServerConfiguration setName(String name)
Sets the name field to an specified value.
EditPopServerConfiguration setPassword(String password)
Sets the password field to an specified value.
EditPopServerConfiguration setPort(String portNumber)
Sets the port field to an specified value.
EditPopServerConfiguration setProtocol(String protocol)
Sets the protocol select list to an specified option.
EditPopServerConfiguration setTimeout(String timeout)
Sets the timeout field to an specified value.
EditPopServerConfiguration setUserName(String userName)
Sets the user name field to an specified value.
MailServerAdministration update()
Submits the edit POP/IMAP server configuration form.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.functest.framework.admin.EditPopServerConfiguration

Public Constructors

public DefaultEditPopServerConfiguration (MailServerAdministration parent, WebTester tester)

Public Methods

public EditPopServerConfiguration setDescription (String description)

Sets the description field to an specified value. This field is optional and can be blank.

Parameters
description The value of the description to set.
Returns
  • This instance of the Edit Pop Server Configuration form.

public EditPopServerConfiguration setHostName (String hostName)

Sets the host name field to an specified value. This can not be blank.

Parameters
hostName The value of the host name to set.
Returns
  • This instance of the Edit Pop Server Configuration form.

public EditPopServerConfiguration setName (String name)

Sets the name field to an specified value. This can not be blank.

Parameters
name The value of the name to set.
Returns
  • This instance of the Edit Pop Server Configuration form.

public EditPopServerConfiguration setPassword (String password)

Sets the password field to an specified value. It is mandatory to call this method before calling update() to submit the form, this is because the field is always set blank when the update form is displayed.

Parameters
password The value of the password to set.
Returns
  • This instance of the Edit Pop Server Configuration form.

public EditPopServerConfiguration setPort (String portNumber)

Sets the port field to an specified value. This field is optional and can be blank, if left blank the port will be set to the default value for the selected protocol.

Parameters
portNumber The value of the port to set.
Returns
  • This instance of the Edit Pop Server Configuration form.

public EditPopServerConfiguration setProtocol (String protocol)

Sets the protocol select list to an specified option. The default option is POP.

Parameters
protocol The value of the protocol to set. This must be one of the display values of the available options in the select list (POP, SECURE_POP, IMAP, SECURE_IMAP)
Returns
  • This instance of the Edit Pop Server Configuration form.

public EditPopServerConfiguration setTimeout (String timeout)

Sets the timeout field to an specified value. This is optional and can be blank. If left blank it will default to 10000 milliseconds.

Parameters
timeout The value of the timeout to set.
Returns
  • This instance of the Edit Pop Server Configuration form.

public EditPopServerConfiguration setUserName (String userName)

Sets the user name field to an specified value. This is a mandatory field and can not be left blank.

Parameters
userName The value of the user name to set.
Returns
  • This instance of the Edit Pop Server Configuration form.

public MailServerAdministration update ()

Submits the edit POP/IMAP server configuration form.

Returns
  • The Mail Server Administration page instance that is displayed after submitting the form.