|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.webtest.selenium.harness.util.AbstractSeleniumUtil com.atlassian.jira.webtest.selenium.harness.util.AdministrationImpl
public class AdministrationImpl
Field Summary |
---|
Fields inherited from class com.atlassian.jira.webtest.selenium.harness.util.AbstractSeleniumUtil |
---|
environmentData, PAGE_LOAD_WAIT, selenium |
Constructor Summary | |
---|---|
AdministrationImpl(SeleniumContext ctx)
|
Method Summary | |
---|---|
void |
activateTimeTracking()
Navigates to the admin section and enables time tracking |
void |
addPermissionForUser(String username,
String permissionScheme,
String permission)
|
void |
addUserToGroup(String username,
String group)
|
void |
createProject(String name,
String key,
String lead)
Creates a project through the add project page |
void |
disableAttachments()
|
void |
disablePluginModule(String pluginId,
String moduleName)
Disabled a plugin module via the UPM |
void |
enableAttachments()
|
void |
enableAttachments(String maxSize)
Enables attachmenets, setting the max attachment size to the input provided. |
void |
enableGzipCompression()
Enables GZIP compression in the admin section |
void |
enablePluginModule(String pluginId,
String moduleName)
Enable a plugin module via the UPM |
String |
getCurrentAttachmentPath()
Obtains the current attachment path configured for JIRA. |
void |
removeRolePermission(int permissionId,
int roleId)
Removes a role permission in the default permission scheme |
void |
setMimeSniffingPolicy(String policy)
Set the mime sniffing policy for attachments in the admin section to the setting provided. |
void |
setProfiling(boolean turnOn)
Set JIRA's profiling on or off. |
void |
setRendererForField(String fieldId,
String renderer)
Sets the renderer for the field provided in the default field configuration. |
void |
toogleCommentGroupVisibility(boolean enable)
Toggles group visibility in the security level dropdown for comments. |
Methods inherited from class com.atlassian.jira.webtest.selenium.harness.util.AbstractSeleniumUtil |
---|
getEnvironmentData, getSelenium |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdministrationImpl(SeleniumContext ctx)
Method Detail |
---|
public void addPermissionForUser(String username, String permissionScheme, String permission)
addPermissionForUser
in interface Administration
public void addUserToGroup(String username, String group)
addUserToGroup
in interface Administration
public void setProfiling(boolean turnOn)
Administration
setProfiling
in interface Administration
turnOn
- or offpublic void enableAttachments()
enableAttachments
in interface Administration
public void enableAttachments(String maxSize)
Administration
enableAttachments
in interface Administration
maxSize
- The max size for attachmentspublic void disableAttachments()
disableAttachments
in interface Administration
public void activateTimeTracking()
Administration
activateTimeTracking
in interface Administration
public String getCurrentAttachmentPath()
Administration
This 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 Administration
public void setMimeSniffingPolicy(String policy)
Administration
setMimeSniffingPolicy
in interface Administration
policy
- the policy to set topublic void enableGzipCompression()
Administration
enableGzipCompression
in interface Administration
public void toogleCommentGroupVisibility(boolean enable)
Administration
toogleCommentGroupVisibility
in interface Administration
enable
- To enable groups in the dropdown.public void removeRolePermission(int permissionId, int roleId)
Administration
removeRolePermission
in interface Administration
permissionId
- The id of the permissionroleId
- The role to removepublic void setRendererForField(String fieldId, String renderer)
Administration
setRendererForField
in interface Administration
fieldId
- The fieldid to set the renderer forrenderer
- The new renderer to setpublic void disablePluginModule(String pluginId, String moduleName)
Administration
disablePluginModule
in interface Administration
pluginId
- the upm plugin idmoduleName
- the module to disablepublic void enablePluginModule(String pluginId, String moduleName)
Administration
enablePluginModule
in interface Administration
pluginId
- the upm plugin idmoduleName
- the module to enablepublic void createProject(String name, String key, String lead)
Administration
createProject
in interface Administration
name
- project namekey
- project keylead
- project lead
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |