com.atlassian.jira.functest.framework.admin
Class DefaultEditPopServerConfiguration

java.lang.Object
  extended by com.atlassian.jira.functest.framework.admin.DefaultEditPopServerConfiguration
All Implemented Interfaces:
EditPopServerConfiguration

public class DefaultEditPopServerConfiguration
extends Object
implements EditPopServerConfiguration

Since:
v4.3

Nested Class Summary
 class DefaultEditPopServerConfiguration.PasswordIsMandatoryException
           
 
Constructor Summary
DefaultEditPopServerConfiguration(MailServerAdministration parent, net.sourceforge.jwebunit.WebTester tester)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEditPopServerConfiguration

public DefaultEditPopServerConfiguration(MailServerAdministration parent,
                                         net.sourceforge.jwebunit.WebTester tester)
Method Detail

setName

public EditPopServerConfiguration setName(String name)
Description copied from interface: EditPopServerConfiguration
Sets the name field to an specified value. This can not be blank.

Specified by:
setName in interface EditPopServerConfiguration
Parameters:
name - The value of the name to set.
Returns:
This instance of the Edit Pop Server Configuration form.

setDescription

public EditPopServerConfiguration setDescription(String description)
Description copied from interface: EditPopServerConfiguration
Sets the description field to an specified value. This field is optional and can be blank.

Specified by:
setDescription in interface EditPopServerConfiguration
Parameters:
description - The value of the description to set.
Returns:
This instance of the Edit Pop Server Configuration form.

setProtocol

public EditPopServerConfiguration setProtocol(String protocol)
Description copied from interface: EditPopServerConfiguration
Sets the protocol select list to an specified option. The default option is POP.

Specified by:
setProtocol in interface EditPopServerConfiguration
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.

setHostName

public EditPopServerConfiguration setHostName(String hostName)
Description copied from interface: EditPopServerConfiguration
Sets the host name field to an specified value. This can not be blank.

Specified by:
setHostName in interface EditPopServerConfiguration
Parameters:
hostName - The value of the host name to set.
Returns:
This instance of the Edit Pop Server Configuration form.

setPort

public EditPopServerConfiguration setPort(String portNumber)
Description copied from interface: EditPopServerConfiguration
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.

Specified by:
setPort in interface EditPopServerConfiguration
Parameters:
portNumber - The value of the port to set.
Returns:
This instance of the Edit Pop Server Configuration form.

setTimeout

public EditPopServerConfiguration setTimeout(String timeout)
Description copied from interface: EditPopServerConfiguration
Sets the timeout field to an specified value. This is optional and can be blank. If left blank it will default to 10000 milliseconds.

Specified by:
setTimeout in interface EditPopServerConfiguration
Parameters:
timeout - The value of the timeout to set.
Returns:
This instance of the Edit Pop Server Configuration form.

setUserName

public EditPopServerConfiguration setUserName(String userName)
Description copied from interface: EditPopServerConfiguration
Sets the user name field to an specified value. This is a mandatory field and can not be left blank.

Specified by:
setUserName in interface EditPopServerConfiguration
Parameters:
userName - The value of the user name to set.
Returns:
This instance of the Edit Pop Server Configuration form.

setPassword

public EditPopServerConfiguration setPassword(String password)
Description copied from interface: EditPopServerConfiguration
Sets the password field to an specified value. It is mandatory to call this method before calling EditPopServerConfiguration.update() to submit the form, this is because the field is always set blank when the update form is displayed.

Specified by:
setPassword in interface EditPopServerConfiguration
Parameters:
password - The value of the password to set.
Returns:
This instance of the Edit Pop Server Configuration form.

update

public MailServerAdministration update()
                                throws DefaultEditPopServerConfiguration.PasswordIsMandatoryException
Description copied from interface: EditPopServerConfiguration
Submits the edit POP/IMAP server configuration form.

Specified by:
update in interface EditPopServerConfiguration
Returns:
The Mail Server Administration page instance that is displayed after submitting the form.
Throws:
DefaultEditPopServerConfiguration.PasswordIsMandatoryException - if no value has been set for the password field, you should always call EditPopServerConfiguration.setPassword(String) before calling this method.


Copyright © 2002-2011 Atlassian. All Rights Reserved.