@Transactional @Service(value="squashtest.tm.service.TestAutomationProjectManagementService") public class TestAutomationProjectManagerServiceImpl extends Object implements TestAutomationProjectManagerService
| Constructor and Description |
|---|
TestAutomationProjectManagerServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeJobName(long projectId,
String jobName) |
void |
changeLabel(long projectId,
String label) |
void |
changeSlaves(long projectId,
String slaveList)
Note : the slave list is a semicolon separated list
|
void |
deleteAllForTMProject(long tmProjectId) |
void |
deleteProject(long projectId) |
void |
editProject(long projectId,
org.squashtest.tm.domain.testautomation.TestAutomationProject newValues)
Will edit the label, jobName and slaves properties of the
TestAutomationProject matching the given id
with the ones held by the given newValues parameter. |
org.squashtest.tm.domain.testautomation.TestAutomationProject |
findProjectById(long projectId) |
URL |
findProjectURL(org.squashtest.tm.domain.testautomation.TestAutomationProject testAutomationProject) |
Map<String,URL> |
findProjectUrls(Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> taProjects)
Will return the ta-project urls mapped by their jobName.
|
boolean |
hasExecutedTests(long projectId) |
Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> |
listProjectsOnServer(Long serverId)
see
#listProjectsOnServer(URL, String, String), using its ID for argument |
Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> |
listProjectsOnServer(String serverName)
Given the name of a server, will return the list of project currently available on it.
|
Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> |
listProjectsOnServer(org.squashtest.tm.domain.testautomation.TestAutomationServer server)
see
#listProjectsOnServer(URL, String, String), using a TestAutomationServer for argument |
void |
persist(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject) |
public TestAutomationProjectManagerServiceImpl()
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')") public void persist(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
persist in interface TestAutomationProjectManagerServicepublic org.squashtest.tm.domain.testautomation.TestAutomationProject findProjectById(long projectId)
findProjectById in interface TestAutomationProjectFinderServicepublic void deleteProject(long projectId)
deleteProject in interface TestAutomationProjectManagerServicepublic void deleteAllForTMProject(long tmProjectId)
deleteAllForTMProject in interface TestAutomationProjectManagerService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')")
public void changeLabel(long projectId,
String label)
changeLabel in interface TestAutomationProjectManagerService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')")
public void changeJobName(long projectId,
String jobName)
changeJobName in interface TestAutomationProjectManagerService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')")
public void changeSlaves(long projectId,
String slaveList)
TestAutomationProjectManagerServicechangeSlaves in interface TestAutomationProjectManagerServicepublic void editProject(long projectId,
org.squashtest.tm.domain.testautomation.TestAutomationProject newValues)
TestAutomationProjectManagerServiceTestAutomationProject matching the given id
with the ones held by the given newValues parameter.editProject in interface TestAutomationProjectManagerService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')") public Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> listProjectsOnServer(String serverName)
TestAutomationProjectFinderServiceGiven the name of a server, will return the list of project currently available on it. The credentials will be tested on the fly.
listProjectsOnServer in interface TestAutomationProjectFinderService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')") public Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> listProjectsOnServer(Long serverId)
TestAutomationProjectFinderService#listProjectsOnServer(URL, String, String), using its ID for argumentlistProjectsOnServer in interface TestAutomationProjectFinderService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')") public Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> listProjectsOnServer(org.squashtest.tm.domain.testautomation.TestAutomationServer server)
TestAutomationProjectFinderService#listProjectsOnServer(URL, String, String), using a TestAutomationServer for argumentlistProjectsOnServer in interface TestAutomationProjectFinderServicepublic Map<String,URL> findProjectUrls(Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> taProjects)
TestAutomationProjectFinderServicefindProjectUrls in interface TestAutomationProjectFinderServicetaProjects - : the TestAutomationProject to get the urls ofTestAutomationProjectFinderService#findProjectUrls(List)public URL findProjectURL(org.squashtest.tm.domain.testautomation.TestAutomationProject testAutomationProject)
findProjectURL in interface TestAutomationProjectFinderServicepublic boolean hasExecutedTests(long projectId)
hasExecutedTests in interface TestAutomationProjectFinderServicetrue if the project have been executed, false otherwiseTestAutomationProjectFinderService.hasExecutedTests(long)Copyright © 2010–2017 Henix, henix.fr. All rights reserved.