com.atlassian.jira.functest.framework.admin
Interface MailServerAdministration.PopMailServerAdministration

Enclosing interface:
MailServerAdministration

public static interface MailServerAdministration.PopMailServerAdministration

Represents the POP/IMAP Mail Server Panel in the Mail Servers Administration Page.

Since:
v4.3

Method Summary
 MailServerAdministration add(String name, String hostName, String userName, String password)
          Adds a new POP/IMAP Server configuration
 MailServerAdministration delete(String mailServerName)
          Removes a mail server with a specified name.
 EditPopServerConfiguration edit(String mailServerName)
          Navigates to the edit pop server configuration form for a mail server.
 MailServerAdministration.PopMailServerAdministration goTo()
          Navigates to the Mail Servers Administration Page.
 boolean isPresent()
          Determines whether the POP/IMAP Mail Server Administration Panel is on the page.
 List<MailServerAdministration.MailServerConfiguration> list()
          Gets the list of current POP/IMAP Mail Server configurations.
 

Method Detail

add

MailServerAdministration add(String name,
                             String hostName,
                             String userName,
                             String password)
Adds a new POP/IMAP Server configuration

Parameters:
name - The name to use for this server within JIRA.
hostName - The host name of the POP/IMAP server.
userName - The user name for the POP/IMAP account.
password - The password for the POP/IMAP account.
Returns:
An instance of the Mail Server Administration page.

isPresent

boolean isPresent()
Determines whether the POP/IMAP Mail Server Administration Panel is on the page.

Returns:
true if the POP/IMAP Mail Server Administration Panel is on the page; otherwise, false.

list

List<MailServerAdministration.MailServerConfiguration> list()
Gets the list of current POP/IMAP Mail Server configurations.

Returns:
the current POP/IMAP Mail Server configuration. If there is no configured mail servers an empty iterable is returned.

edit

EditPopServerConfiguration edit(String mailServerName)
Navigates to the edit pop server configuration form for a mail server.

Parameters:
mailServerName - The name of the mail server to edit.
Returns:
An instance of EditPopServerConfiguration that can be used to update the configuration of the specified mail server.

delete

MailServerAdministration delete(String mailServerName)
Removes a mail server with a specified name. It confirms the deletion on the confirm delete page for you.

Parameters:
mailServerName - The name of the mail server to delete.
Returns:

goTo

MailServerAdministration.PopMailServerAdministration goTo()
Navigates to the Mail Servers Administration Page.

Returns:
this instance of the page.


Copyright © 2002-2014 Atlassian. All Rights Reserved.