|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.functest.framework.AbstractFuncTestUtil
com.atlassian.jira.functest.framework.AdministrationImpl
public class AdministrationImpl
Implementation of Administration
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.atlassian.jira.functest.framework.Administration |
|---|
Administration.Utilities |
| Field Summary |
|---|
| Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil |
|---|
environmentData, FS, locators, logger, logIndentLevel, tester |
| Fields inherited from interface com.atlassian.jira.functest.framework.Administration |
|---|
ENTERPRISE, PROFESSIONAL, STANDARD |
| Constructor Summary | |
|---|---|
AdministrationImpl(net.sourceforge.jwebunit.WebTester tester,
com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData,
Navigation navigation,
Assertions assertions)
Note: if you need to construct this for an old-style JIRAWebTest, you may
want to consider using FuncTestHelperFactory instead. |
|
| Method Summary | |
|---|---|
void |
activateSubTasks()
|
void |
addGlobalPermission(int permission,
String group)
Add a group to a Global permission Ends up on the Global Permissions page. |
void |
addSubTaskType(String name)
|
AdvancedApplicationProperties |
advancedApplicationProperties()
Gets an instance of the AdvancedApplicationProperties Page Object. |
Attachments |
attachments()
|
CustomFields |
customFields()
Allows you to perform custom field actions. |
CvsModules |
cvsModules()
Allows you to perform actions for CVS Modules |
void |
enableAccessLogging()
enable http access logging |
File |
exportDataToFile(String fileName)
Exports the current running data to the specified absolute path |
FieldConfigurations |
fieldConfigurations()
Allows you to modify field configurations. |
FieldConfigurationSchemes |
fieldConfigurationSchemes()
Allows you to modify field configuration schemes. |
GeneralConfiguration |
generalConfiguration()
Allows you to perform generalConfiguration actions. |
long |
getBuildNumber()
Returns ths current build number. |
String |
getCurrentAttachmentPath()
Obtains the current attachment path configured for JIRA. |
String |
getEdition()
Returns the current edition name. |
String |
getJiraHomeDirectory()
Returns the JIRA home directory as reported in the System Info section |
String |
getSystemTenantHomeDirectory()
Get the system tenant home directory. |
IssueLinking |
issueLinking()
Go to issue linking administration section. |
IssueSecuritySchemes |
issueSecuritySchemes()
Allows you to modify issue security schemes. |
MailServerAdministration |
mailServers()
Gets an instance of the Mail Server Administration page. |
NotificationSchemes |
notificationSchemes()
'Notification Schemes' administration section |
PermissionSchemes |
permissionSchemes()
Allows you to modify permission schemes. |
Plugins |
plugins()
Utility function to allow you some basic plugins control |
Project |
project()
Allows you to perform project actions. |
ProjectImport |
projectImport()
Allows you to perform project imports. |
void |
reIndex()
Reindex JIRA, waiting for JIRA to complete the task, in the default index directory. |
void |
removeGlobalPermission(int permission,
String group)
Remove a grop from a given Global Permission. |
File |
replaceTokensInFile(String originalXmlFileName,
Map<String,String> replacements)
Reads in an XML file and performs token replacements on it, writes the data to a temp file which is the return value |
Resolutions |
resolutions()
|
void |
restoreBlankInstance()
Restores the jira instance to one with no issues. |
void |
restoreBlankInstanceWithLicense(LicenseKeys.License license)
Restores a JIRA to a well known blank instance with the supplied licence. |
void |
restoreData(String fileName)
Same as Administration.restoreData(String, boolean), but with useDefaultPaths set to false. |
void |
restoreData(String fileName,
boolean useDefaultPaths)
Restores the specified fileName as JIRA data. |
void |
restoreData(String path,
String fileName)
|
void |
restoreData(String path,
String fileName,
boolean useDefaultPath)
|
void |
restoreDataAndLogin(String fileName,
String username)
same as Administration.restoreDataAndLogin(String, String, boolean) but with userDefaultPaths parameter set to false. |
void |
restoreDataAndLogin(String fileName,
String username,
boolean useDefaultPaths)
Restore the specified file and login to JIRA using the passed username. |
void |
restoreDataSlowOldWay(String fileName)
Same as Administration.restoreDataSlowOldWay(String, boolean), except with useDefaultPaths set to false. |
void |
restoreDataSlowOldWay(String fileName,
boolean useDefaultPaths)
Restores the specified fileName as JIRA data NOT using the clear cache mechanism. |
void |
restoreDataSlowOldWay(String path,
String fileName)
Same as Administration.restoreDataSlowOldWay(String, String, boolean), but with useDefaultPath set to false; |
void |
restoreDataSlowOldWay(String path,
String fileName,
boolean useDefaultPath)
Restores the XML file from the specified directory NOT using the clear cache mechanism. |
void |
restoreDataSlowOldWayAndLogin(String fileName,
String username)
Same as Administration.restoreDataSlowOldWayAndLogin(String, String, boolean) but with useDefaultPath set to false. |
void |
restoreDataSlowOldWayAndLogin(String fileName,
String username,
boolean useDefaultPath)
Restore the specified file data NOT using the clear cache mechanism and login to JIRA using the passed username. |
void |
restoreDataWithLicense(String fileName,
String licenseKey)
same as Administration.restoreDataWithLicense(String, String, boolean), except with useDefaultPaths set to false. |
void |
restoreDataWithLicense(String fileName,
String licenseKey,
boolean useDefaultPaths)
Restores the specified fileName as JIRA data, using the specified License key on import. |
void |
restoreDataWithPluginsReload(String fileName)
Same as Administration.restoreDataWithPluginsReload(String, boolean), except with useDefaultPaths set to false. |
void |
restoreDataWithPluginsReload(String fileName,
boolean useDefaultPaths)
Restores the specified fileName as JIRA data NOT using the clear cache mechanism. |
void |
restoreDataWithReplacedTokens(String originalXmlFileName,
Map<String,String> replacements)
Same as Administration.restoreDataWithReplacedTokens(String, java.util.Map, boolean), except with useDefaultPaths set to false. |
void |
restoreDataWithReplacedTokens(String originalXmlFileName,
Map<String,String> replacements,
boolean useDefaultPaths)
Reads in an XML file and performs token replacements on it, writes the data to a temp file, then imports that into JIRA. |
void |
restoreI18nData(String fileName)
Restores the specified fileName as JIRA data. |
void |
restoreNotSetupInstance()
Restores a backup file with JIRA in an not setup state. |
Roles |
roles()
Allows you to perform role actions |
void |
runJellyScript(String script)
Given a jelly script, this call will navigate to the admin section in JIRA and execute the script. |
SendBulkMail |
sendBulkMail()
Gets an instance of the Send Bulk Mail Page. |
ViewServices |
services()
Returns the ViewServices object which allows you to run operations on the ViewServices page. |
void |
setProfiling(boolean on)
Set JIRA's profiling on or off. |
SharedDashboardsAdministration |
sharedDashboards()
|
SharedFiltersAdministration |
sharedFilters()
Gets an instance of the Shared Filters Administration page. |
Subtasks |
subtasks()
|
void |
switchToLicense(LicenseKeys.License license)
Changes JIRA's lincense to a given license object |
void |
switchToLicense(String license,
String description)
Changes JIRA's lincense to a given license and asserts that the description then appears on the view license |
void |
switchToPersonalLicense()
Switches the license to a personal license. |
void |
switchToStarterLicense()
Switches the license to a starter license. |
AdminTabs |
tabs()
Gets an instance of the AdminTabs Page Object. |
TimeTracking |
timeTracking()
Get time tracking administration section util. |
UsersAndGroups |
usersAndGroups()
Allows you to perform user and group actions. |
Administration.Utilities |
utilities()
|
ViewFieldScreens |
viewFieldScreens()
Field screens config. |
void |
waitForRestore()
Waits for the data import progress to complete. |
ViewWorkflows |
workflows()
Manage the 'Workflows' administration page |
WorkflowSchemes |
workflowSchemes()
'Workflow Schemes' administration section |
| Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil |
|---|
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.jira.functest.framework.log.FuncTestLogger |
|---|
log, log |
| Constructor Detail |
|---|
public AdministrationImpl(net.sourceforge.jwebunit.WebTester tester,
com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData,
Navigation navigation,
Assertions assertions)
JIRAWebTest, you may
want to consider using FuncTestHelperFactory instead.
tester - the testerenvironmentData - the environment datanavigation - the navigationassertions - the assertionsFuncTestHelperFactory.getAdministration()| Method Detail |
|---|
public void reIndex()
Administration
reIndex in interface Administrationpublic void setProfiling(boolean on)
Administration
setProfiling in interface Administrationon - or offpublic void restoreBlankInstance()
restoreBlankInstance in interface Administrationpublic void restoreBlankInstanceWithLicense(LicenseKeys.License license)
Administration
restoreBlankInstanceWithLicense in interface Administrationlicense - the license to be installedpublic void restoreNotSetupInstance()
Administration
restoreNotSetupInstance in interface Administration
public File replaceTokensInFile(String originalXmlFileName,
Map<String,String> replacements)
throws IOException
Administration
replaceTokensInFile in interface AdministrationoriginalXmlFileName - the name of the XML file to read in; must be located in the standard XML file directoryreplacements - a map of token replacements
IOException - if there is a problem reading/writing the files
public void restoreDataWithReplacedTokens(String originalXmlFileName,
Map<String,String> replacements)
throws IOException
AdministrationAdministration.restoreDataWithReplacedTokens(String, java.util.Map, boolean), except with useDefaultPaths set to false.
restoreDataWithReplacedTokens in interface AdministrationIOException
public void restoreDataWithReplacedTokens(String originalXmlFileName,
Map<String,String> replacements,
boolean useDefaultPaths)
throws IOException
AdministrationDateUtil
class
restoreDataWithReplacedTokens in interface AdministrationoriginalXmlFileName - the name of the XML file to read in; must be located in the standard XML file directoryreplacements - a map of token replacements
IOException - if there is a problem reading/writing the filespublic void restoreData(String fileName)
AdministrationAdministration.restoreData(String, boolean), but with useDefaultPaths set to false.
restoreData in interface Administration
public void restoreData(String fileName,
boolean useDefaultPaths)
Administration
restoreData in interface AdministrationfileName - the XML file inside the standard backup file directory containing the JIRA datauseDefaultPaths - if set to true, the xml backup's paths (e.g., index, attachment etc) will be ignored, and the
default for those used in stead
public void restoreDataAndLogin(String fileName,
String username)
AdministrationAdministration.restoreDataAndLogin(String, String, boolean) but with userDefaultPaths parameter set to false.
restoreDataAndLogin in interface Administration
public void restoreDataAndLogin(String fileName,
String username,
boolean useDefaultPaths)
Administration
restoreDataAndLogin in interface AdministrationfileName - the name of the xml file to restore.username - the username used to login to JIRA after the restore. The username and the password are assumed to
be the same.useDefaultPaths - if set to true, the xml backup's paths (e.g., index, attachment etc) will be ignored, and the
default for those used in stead
public void restoreDataSlowOldWayAndLogin(String fileName,
String username)
AdministrationAdministration.restoreDataSlowOldWayAndLogin(String, String, boolean) but with useDefaultPath set to false.
restoreDataSlowOldWayAndLogin in interface Administration
public void restoreDataSlowOldWayAndLogin(String fileName,
String username,
boolean useDefaultPath)
Administration
restoreDataSlowOldWayAndLogin in interface AdministrationfileName - the name of the xml file to restore.username - the username used to login to JIRA after the restore. The username and the password are assumed to be
the same.useDefaultPath - if set to true, the paths in the xml backup (e.g., index, and attachment) will be ignored, and their
default paths used instead.public void restoreDataSlowOldWay(String fileName)
AdministrationAdministration.restoreDataSlowOldWay(String, boolean), except with useDefaultPaths set to false.
restoreDataSlowOldWay in interface Administration
public void restoreDataSlowOldWay(String fileName,
boolean useDefaultPaths)
Administration
restoreDataSlowOldWay in interface AdministrationfileName - the XML file inside the standard backup file directory containing the JIRA datapublic void restoreDataWithPluginsReload(String fileName)
AdministrationAdministration.restoreDataWithPluginsReload(String, boolean), except with useDefaultPaths set to false.
restoreDataWithPluginsReload in interface Administration
public void restoreDataWithPluginsReload(String fileName,
boolean useDefaultPaths)
AdministrationRestores the specified fileName as JIRA data NOT using the clear cache mechanism. The plugins system is restarted.
This restore uses the full Pico refresh the same as in Production. ie it does not do a "Quick Import".
This is much slower than using the default methods and should only be used if there is a real reason for it.
restoreDataWithPluginsReload in interface AdministrationfileName - the XML file inside the standard backup file directory containing the JIRA data
public void restoreData(String path,
String fileName)
public void restoreData(String path,
String fileName,
boolean useDefaultPath)
public void restoreDataSlowOldWay(String path,
String fileName)
AdministrationAdministration.restoreDataSlowOldWay(String, String, boolean), but with useDefaultPath set to false;
restoreDataSlowOldWay in interface Administration
public void restoreDataSlowOldWay(String path,
String fileName,
boolean useDefaultPath)
Administration
restoreDataSlowOldWay in interface Administrationpath - the directory in which the XML file is locatedfileName - the name of the XML fileuseDefaultPath - if set to true, the paths (e.g., attachment, index) in the xml backup will be ignored, and the
default used instead
public void restoreDataWithLicense(String fileName,
String licenseKey,
boolean useDefaultPaths)
Administration
restoreDataWithLicense in interface AdministrationfileName - the file conatining the JIRA datalicenseKey - the license key to be installed
public void restoreDataWithLicense(String fileName,
String licenseKey)
AdministrationAdministration.restoreDataWithLicense(String, String, boolean), except with useDefaultPaths set to false.
restoreDataWithLicense in interface Administrationpublic void restoreI18nData(String fileName)
Administration
restoreI18nData in interface AdministrationfileName - the fiel conatining the JIRA datapublic File exportDataToFile(String fileName)
Administration
exportDataToFile in interface AdministrationfileName - to backup to. This should just be a filename because JIRA always appends ${JIRA.HOME}/export
to it before doing the export. Passing a directory may make it fail on windows.
public String getCurrentAttachmentPath()
AdministrationThis method does not check whether Attachments are enabled or not. If JIRA is configured to use the "default" attachment path, then this method still returns the ACTUAL path that is used.
The implementation navigates to the Admin Attachments Settings page and screenscrapes, so don't expect to remain on the same page as when you called the method.
getCurrentAttachmentPath in interface Administrationpublic void activateSubTasks()
activateSubTasks in interface Administrationpublic void addSubTaskType(String name)
addSubTaskType in interface Administrationpublic GeneralConfiguration generalConfiguration()
Administration
generalConfiguration in interface Administrationpublic CvsModules cvsModules()
Administration
cvsModules in interface Administrationpublic Project project()
Administration
project in interface Administrationpublic UsersAndGroups usersAndGroups()
Administration
usersAndGroups in interface Administrationpublic Roles roles()
Administration
roles in interface Administrationpublic CustomFields customFields()
Administration
customFields in interface Administrationpublic PermissionSchemes permissionSchemes()
Administration
permissionSchemes in interface Administrationpublic IssueSecuritySchemes issueSecuritySchemes()
Administration
issueSecuritySchemes in interface Administrationpublic FieldConfigurations fieldConfigurations()
Administration
fieldConfigurations in interface Administrationpublic FieldConfigurationSchemes fieldConfigurationSchemes()
Administration
fieldConfigurationSchemes in interface Administrationpublic ProjectImport projectImport()
Administration
projectImport in interface Administrationpublic Plugins plugins()
Administration
plugins in interface Administration
public void removeGlobalPermission(int permission,
String group)
Administration
removeGlobalPermission in interface Administrationpermission - The permission to remove teh group fromgroup - the group to remove
public void addGlobalPermission(int permission,
String group)
Administration
addGlobalPermission in interface Administrationpermission - the permission to add the group togroup - The group to addpublic void switchToLicense(LicenseKeys.License license)
Administration
switchToLicense in interface Administrationlicense - license to switch to
public void switchToLicense(String license,
String description)
Administration
switchToLicense in interface Administrationlicense - license to switch todescription - license descriptionpublic void switchToPersonalLicense()
Administration
switchToPersonalLicense in interface Administrationpublic void switchToStarterLicense()
Administration
switchToStarterLicense in interface Administrationpublic String getJiraHomeDirectory()
Administration
getJiraHomeDirectory in interface Administrationpublic String getSystemTenantHomeDirectory()
Administration
getSystemTenantHomeDirectory in interface Administrationpublic MailServerAdministration mailServers()
Administration
mailServers in interface Administrationpublic SharedFiltersAdministration sharedFilters()
Administration
sharedFilters in interface Administrationpublic SharedDashboardsAdministration sharedDashboards()
sharedDashboards in interface Administrationpublic SendBulkMail sendBulkMail()
Administration
sendBulkMail in interface Administrationpublic AdminTabs tabs()
Administration
tabs in interface Administrationpublic AdvancedApplicationProperties advancedApplicationProperties()
Administration
advancedApplicationProperties in interface Administrationpublic Subtasks subtasks()
subtasks in interface Administrationpublic IssueLinking issueLinking()
Administration
issueLinking in interface Administrationpublic TimeTracking timeTracking()
Administration
timeTracking in interface Administrationpublic Resolutions resolutions()
resolutions in interface Administrationpublic ViewServices services()
Administration
services in interface Administrationpublic String getEdition()
Administration
getEdition in interface AdministrationAdministration.ENTERPRISE,
Administration.PROFESSIONAL,
Administration.STANDARDpublic long getBuildNumber()
AdministrationRuntimeException will be thrown if we can't find the build number.
getBuildNumber in interface Administrationpublic void runJellyScript(String script)
Administration
runJellyScript in interface Administrationscript - The script to execute.public void enableAccessLogging()
Administration
enableAccessLogging in interface Administrationpublic Attachments attachments()
attachments in interface Administrationpublic ViewFieldScreens viewFieldScreens()
Administration
viewFieldScreens in interface Administrationpublic Administration.Utilities utilities()
utilities in interface Administrationpublic ViewWorkflows workflows()
Administration
workflows in interface AdministrationViewWorkflows instancepublic WorkflowSchemes workflowSchemes()
Administration
workflowSchemes in interface AdministrationWorkflowSchemes instancepublic NotificationSchemes notificationSchemes()
Administration
notificationSchemes in interface AdministrationNotificationSchemes instancepublic void waitForRestore()
Administration
waitForRestore in interface Administration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||