|
||||||||||
| 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.admin.ProjectImpl
public class ProjectImpl
Implementation of Project interface
| Field Summary |
|---|
| Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil |
|---|
environmentData, FS, locators, logger, logIndentLevel, tester |
| Constructor Summary | |
|---|---|
ProjectImpl(net.sourceforge.jwebunit.WebTester tester,
com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData,
Navigation navigation,
Assertions assertions,
AsynchronousTasks asynchronousTasks)
|
|
| Method Summary | |
|---|---|
String |
addComponent(String projectKey,
String componentName,
String description,
String leadUserName)
Adds a component to the project |
long |
addProject(String name,
String key,
String lead)
Adds a project, or if a project with that name exists, does almost nothing. |
String |
addVersion(String projectKey,
String versionName,
String description,
String releaseDate)
Adds a version to a project. |
void |
archiveVersion(String projectKey,
String versionName)
Archives a version of a project. |
void |
associateFieldConfigurationScheme(String projectName,
String newFieldConfigurationSchemeName)
Associates the specified configuration scheme with the project. |
void |
associateNotificationScheme(String projectName,
String notificationSchemeName)
Associates the specified notification scheme with the project. |
void |
associateWorkflowScheme(String projectName,
String workflowSchemeName)
Associates the specified workflow scheme with the project. |
void |
associateWorkflowScheme(String projectName,
String workflowSchemeName,
Map<String,String> statusMapping,
boolean wait)
Associates the specified workflow scheme with the project. |
void |
deleteProject(long projectId)
Delete a project |
void |
deleteProject(String project)
Delete project with the given name |
void |
deleteVersion(String projectKey,
String versionName)
Deletes a version of a project. |
void |
editComponent(String projectKey,
String componentName,
String name,
String description,
String leadUserName)
Edits a component of a project. |
void |
editProject(long projectId,
String name,
String description,
String url)
Change the parameters for the passed project. |
void |
editVersionDetails(String projectKey,
String versionName,
String name,
String description,
String releaseDate)
Edits a version of a project. |
boolean |
projectExists(String project)
Checks whether or not the specified project exists. |
void |
releaseVersion(String projectKey,
String versionName,
String releaseDate)
Releases a version of a project. |
void |
setProjectLead(String projectName,
String userName)
Sets the lead for a project |
void |
unreleaseVersion(String projectKey,
String versionName,
String releaseDate)
Unreleases a version of a project. |
void |
viewProject(String project)
Browses to the View Project administration screen. |
| 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 |
| Constructor Detail |
|---|
public ProjectImpl(net.sourceforge.jwebunit.WebTester tester,
com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData,
Navigation navigation,
Assertions assertions,
AsynchronousTasks asynchronousTasks)
| Method Detail |
|---|
public long addProject(String name,
String key,
String lead)
Project
addProject in interface Projectname - the name of the project.key - the project key.lead - the username of the project lead.
public void viewProject(String project)
Project
viewProject in interface Projectproject - the name of the project
public void editProject(long projectId,
String name,
String description,
String url)
Project
editProject in interface ProjectprojectId - the id of the project to change.name - the new name of the project. Set to null to keep current setting.description - the description of the project. Set to null to keep current setting.url - the url for the project. Set to null to keep current setting.public void deleteProject(long projectId)
Project
deleteProject in interface ProjectprojectId - the id of the projectpublic void deleteProject(String project)
Project
deleteProject in interface Projectproject - the project name.
public String addComponent(String projectKey,
String componentName,
String description,
String leadUserName)
Project
addComponent in interface ProjectprojectKey - the key of the projectcomponentName - the component namedescription - the description; use null to not set oneleadUserName - the lead user's name; use null to not set one
public String addVersion(String projectKey,
String versionName,
String description,
String releaseDate)
Project
addVersion in interface ProjectprojectKey - the key of the project e.g. "HSP".versionName - the name of the version e.g. "New Version 1"description - the new description of the version; use null to not provide a descriptionreleaseDate - the new release date of the version; use null to not provide a release date
public void archiveVersion(String projectKey,
String versionName)
Project
archiveVersion in interface ProjectprojectKey - the name of the project e.g. "HSP"versionName - the name of the version e.g. "New Version 5"
public void releaseVersion(String projectKey,
String versionName,
String releaseDate)
Project
releaseVersion in interface ProjectprojectKey - the name of the project e.g. "HSP". Must not be null.versionName - the name of the version e.g. "New Version 5". Must not be null.releaseDate - the release date of the version. Use null to ignore setting of this field.
public void unreleaseVersion(String projectKey,
String versionName,
String releaseDate)
Project
unreleaseVersion in interface ProjectprojectKey - the name of the project e.g. "HSP". Must not be null.versionName - the name of the version e.g. "New Version 5". Must not be null.releaseDate - the release date of the version. Use null to ignore setting of this field.
public void deleteVersion(String projectKey,
String versionName)
Project
deleteVersion in interface ProjectprojectKey - the name of the project e.g. "HSP". Must not be null.versionName - the name of the version e.g. "New Version 5". Must not be null.
public void editVersionDetails(String projectKey,
String versionName,
String name,
String description,
String releaseDate)
Project
editVersionDetails in interface ProjectprojectKey - the name of the project e.g. "homosapien".versionName - the name of the version e.g. "New Version 1"name - the new name of the version; use null to retain previous valuedescription - the new description of the version; use null to retain previous valuereleaseDate - the new release date of the version; use null to retain previous value
public void editComponent(String projectKey,
String componentName,
String name,
String description,
String leadUserName)
Project
editComponent in interface ProjectprojectKey - the key of the project e.g. "HSP".componentName - the name of the component e.g. "New Component 1"name - the new name of the component; use null to retain previous valuedescription - the new description of the component; use null to retain previous valueleadUserName - the new username of the component lead; use null to retain previous value
public void associateFieldConfigurationScheme(String projectName,
String newFieldConfigurationSchemeName)
Project
associateFieldConfigurationScheme in interface ProjectprojectName - the name of the project to alternewFieldConfigurationSchemeName - the name of the new field configuration scheme; use null or
"None" to restore the System Default Field Configuration Scheme.
public void associateWorkflowScheme(String projectName,
String workflowSchemeName,
Map<String,String> statusMapping,
boolean wait)
Project
associateWorkflowScheme in interface ProjectprojectName - the name of the project to alterworkflowSchemeName - name of the workflow scheme to associate.statusMapping - mapping for statuses
public void associateWorkflowScheme(String projectName,
String workflowSchemeName)
Project
associateWorkflowScheme in interface ProjectprojectName - the name of the project to alterworkflowSchemeName - name of the workflow scheme to associate.
public void associateNotificationScheme(String projectName,
String notificationSchemeName)
Project
associateNotificationScheme in interface ProjectprojectName - the name of the project to alternotificationSchemeName - name of the notification scheme to associate.
public void setProjectLead(String projectName,
String userName)
Project
setProjectLead in interface ProjectprojectName - the project to changeuserName - the new project leadpublic boolean projectExists(String project)
Project
projectExists in interface Projectproject - the name of the project to check e.g. "homosapien"
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||