@Service(value="CustomGenericProjectManager") @Transactional public class CustomGenericProjectManagerImpl extends Object implements CustomGenericProjectManager
| Constructor and Description |
|---|
CustomGenericProjectManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewPermissionToProject(long userId,
long projectId,
String permission) |
void |
bindTestAutomationProject(long projectId,
org.squashtest.tm.domain.testautomation.TestAutomationProject taProject)
Will bind the TM project to a TA project.
|
void |
bindTestAutomationProjects(long projectId,
Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> taProjects) |
void |
bindTestAutomationServer(long tmProjectId,
Long serverId)
Will bind a TM project to a test automation server.
|
void |
changeBugTracker(org.squashtest.tm.domain.project.GenericProject project,
org.squashtest.csp.core.bugtracker.domain.BugTracker newBugtracker)
Change the Bugtracker the Project is associated-to.
|
void |
changeBugTracker(long projectId,
Long newBugtrackerId)
Change the Bugtracker the Project is associated-to.
|
void |
changeBugTrackerProjectName(long projectId,
List<String> projectBugTrackerNames)
Will change a bugtracker connexion parameter : the names of the bugtracker's projects it's associated to.
|
void |
changeName(long projectId,
String newName) |
void |
coerceTemplateIntoProject(long templateId) |
void |
deleteProject(long projectId) |
Set<org.squashtest.tm.domain.execution.ExecutionStatus> |
disabledExecutionStatuses(long projectId)
Returns the list of disabled execution statuses given a project.
|
void |
disableExecutionStatus(long projectId,
org.squashtest.tm.domain.execution.ExecutionStatus executionStatus)
Disables an execution status for a project
|
void |
disablePluginForWorkspace(long projectId,
org.squashtest.tm.api.workspace.WorkspaceType workspace,
String pluginId)
enables the given plugin for the given workspace of the given project
|
Set<org.squashtest.tm.domain.execution.ExecutionStatus> |
enabledExecutionStatuses(long projectId)
Returns the list of enabled execution statuses given a project.
|
void |
enableExecutionStatus(long projectId,
org.squashtest.tm.domain.execution.ExecutionStatus executionStatus)
Enables an execution status for a project
|
void |
enablePluginForWorkspace(long projectId,
org.squashtest.tm.api.workspace.WorkspaceType workspace,
String pluginId)
enables the given plugin for the given workspace of the given project
|
org.squashtest.tm.domain.project.AdministrableProject |
findAdministrableProjectById(long projectId) |
Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> |
findAllAvailableTaProjects(long projectId)
Will return a list of TestAutomationProject (jobNames only) available for the server bound to the given project.
|
Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> |
findAllAvailableTaProjectsWithCredentials(long projectId,
String login,
String password)
Will return a list of TestAutomationProject (jobNames only) available on the server bound to the given project
and authorized for the Jenkins account defined with the login and the password given as parameters.
|
List<org.squashtest.tm.security.acls.PermissionGroup> |
findAllPossiblePermission() |
List<org.squashtest.tm.domain.testautomation.TestAutomationProject> |
findBoundTestAutomationProjects(long projectId) |
org.squashtest.tm.domain.users.Party |
findPartyById(long partyId) |
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.users.PartyProjectPermissionsBean>> |
findPartyPermissionsBeanByProject(org.squashtest.tm.core.foundation.collection.PagingAndSorting sorting,
org.squashtest.tm.core.foundation.collection.Filtering filtering,
long projectId) |
List<org.squashtest.tm.domain.users.PartyProjectPermissionsBean> |
findPartyPermissionsBeansByProject(long projectId) |
List<org.squashtest.tm.domain.users.Party> |
findPartyWithoutPermissionByProject(long projectId) |
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.project.GenericProject>> |
findSortedProjects(org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting,
org.squashtest.tm.core.foundation.collection.Filtering filter)
Will find all Projects and Templates to which the user has management access to and return them ordered according
to the given params.
|
Map<String,String> |
getPluginConfiguration(long projectId,
org.squashtest.tm.api.workspace.WorkspaceType workspace,
String pluginId)
Returns the configuration of a given plugin for a given project.
|
boolean |
isExecutionStatusEnabledForProject(long projectId,
org.squashtest.tm.domain.execution.ExecutionStatus executionStatus)
Returns true if a given execution status is enabled for a given project, false otherwise
|
void |
persist(org.squashtest.tm.domain.project.GenericProject project) |
boolean |
projectUsesExecutionStatus(long projectId,
org.squashtest.tm.domain.execution.ExecutionStatus executionStatus) |
void |
removeBugTracker(long projectId)
Will remove the association the Project has to it's Bugtracker.
|
void |
removeProjectPermission(long userId,
long projectId) |
void |
replaceExecutionStepStatus(long projectId,
org.squashtest.tm.domain.execution.ExecutionStatus source,
org.squashtest.tm.domain.execution.ExecutionStatus target)
Replaces an execution status with another within a project
|
void |
setPluginConfiguration(long projectId,
org.squashtest.tm.api.workspace.WorkspaceType workspace,
String pluginId,
Map<String,String> configuration)
Applies the given configuration to a plugin for a given project.
|
org.squashtest.tm.domain.project.GenericProject |
synchronizeGenericProject(org.squashtest.tm.domain.project.GenericProject target,
org.squashtest.tm.domain.project.GenericProject source,
GenericProjectCopyParameter params) |
void |
unbindTestAutomationProject(long projectId,
long taProjectId) |
@Transactional(readOnly=true) @PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')") public org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.project.GenericProject>> findSortedProjects(org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting, org.squashtest.tm.core.foundation.collection.Filtering filter)
CustomGenericProjectManagerfindSortedProjects in interface CustomGenericProjectManagersorting - the PagingAndSorting that holds order and paging paramsPagedCollectionHolder containing all projects the user has management access to, ordered
according to the given params.org.squashtest.tm.service.project.CustomGenericProjectManager#findSortedProjects(PagingAndMultiSorting,
Filtering))@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')") public void persist(org.squashtest.tm.domain.project.GenericProject project)
persist in interface CustomGenericProjectManager@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')") public void coerceTemplateIntoProject(long templateId)
coerceTemplateIntoProject in interface CustomGenericProjectManagerCustomGenericProjectManager.coerceTemplateIntoProject(long)@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')") public void deleteProject(long projectId)
deleteProject in interface CustomGenericProjectManager@PreAuthorize(value="hasPermission(#projectId, \'org.squashtest.tm.domain.project.Project\' , \'MANAGEMENT\') or hasPermission(#projectId, \'org.squashtest.tm.domain.project.ProjectTemplate\' , \'MANAGEMENT\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.project.AdministrableProject findAdministrableProjectById(long projectId)
findAdministrableProjectById in interface CustomGenericProjectFinderpublic void addNewPermissionToProject(long userId,
long projectId,
String permission)
addNewPermissionToProject in interface CustomGenericProjectManagerpublic void removeProjectPermission(long userId,
long projectId)
removeProjectPermission in interface CustomGenericProjectManagerpublic List<org.squashtest.tm.domain.users.PartyProjectPermissionsBean> findPartyPermissionsBeansByProject(long projectId)
findPartyPermissionsBeansByProject in interface CustomGenericProjectFinderpublic org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.users.PartyProjectPermissionsBean>> findPartyPermissionsBeanByProject(org.squashtest.tm.core.foundation.collection.PagingAndSorting sorting, org.squashtest.tm.core.foundation.collection.Filtering filtering, long projectId)
findPartyPermissionsBeanByProject in interface CustomGenericProjectFinderpublic List<org.squashtest.tm.security.acls.PermissionGroup> findAllPossiblePermission()
findAllPossiblePermission in interface CustomGenericProjectFinderpublic List<org.squashtest.tm.domain.users.Party> findPartyWithoutPermissionByProject(long projectId)
findPartyWithoutPermissionByProject in interface CustomGenericProjectFinderpublic org.squashtest.tm.domain.users.Party findPartyById(long partyId)
findPartyById in interface CustomGenericProjectManagerpublic void bindTestAutomationServer(long tmProjectId,
Long serverId)
CustomGenericProjectManagerbindTestAutomationServer in interface CustomGenericProjectManagerpublic void bindTestAutomationProject(long projectId,
org.squashtest.tm.domain.testautomation.TestAutomationProject taProject)
CustomGenericProjectManagerbindTestAutomationProject in interface CustomGenericProjectManagerpublic void bindTestAutomationProjects(long projectId,
Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> taProjects)
bindTestAutomationProjects in interface CustomGenericProjectManagerpublic List<org.squashtest.tm.domain.testautomation.TestAutomationProject> findBoundTestAutomationProjects(long projectId)
findBoundTestAutomationProjects in interface CustomGenericProjectFinderpublic void unbindTestAutomationProject(long projectId,
long taProjectId)
unbindTestAutomationProject in interface CustomGenericProjectManagerpublic Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> findAllAvailableTaProjects(long projectId)
CustomGenericProjectFinderfindAllAvailableTaProjects in interface CustomGenericProjectFinderprojectId - : the id of the GenericProject we want the available ta-projects forTestAutomationProject available and not already bound to the tm-projectCustomGenericProjectFinder.findAllAvailableTaProjects(long)public Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> findAllAvailableTaProjectsWithCredentials(long projectId, String login, String password)
CustomGenericProjectFinderfindAllAvailableTaProjectsWithCredentials in interface CustomGenericProjectFinderprojectId - The Id of the GenericProject we want the available ta-projects for.login - The login of the Jenkins account.password - The password of the Jenkins account.TestAutomationProject available on the server,
authorized for this Jenkins account and not already bound to the tm-project.CustomGenericProjectFinder#findAllAvailableTaProjects(long, String, String)public void changeBugTracker(long projectId,
Long newBugtrackerId)
CustomGenericProjectManagerchangeBugTracker in interface CustomGenericProjectManagerpublic void changeBugTracker(org.squashtest.tm.domain.project.GenericProject project,
org.squashtest.csp.core.bugtracker.domain.BugTracker newBugtracker)
CustomGenericProjectManagerchangeBugTracker in interface CustomGenericProjectManagerproject - : the concerned GenericProjectnewBugtracker - : the bugtracker to bind the project topublic void removeBugTracker(long projectId)
CustomGenericProjectManagerremoveBugTracker in interface CustomGenericProjectManager@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')")
public void enablePluginForWorkspace(long projectId,
org.squashtest.tm.api.workspace.WorkspaceType workspace,
String pluginId)
CustomGenericProjectManagerenablePluginForWorkspace in interface CustomGenericProjectManager@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')")
public void disablePluginForWorkspace(long projectId,
org.squashtest.tm.api.workspace.WorkspaceType workspace,
String pluginId)
CustomGenericProjectManagerdisablePluginForWorkspace in interface CustomGenericProjectManager@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')") public Map<String,String> getPluginConfiguration(long projectId, org.squashtest.tm.api.workspace.WorkspaceType workspace, String pluginId)
CustomGenericProjectManagergetPluginConfiguration in interface CustomGenericProjectManager@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')")
public void setPluginConfiguration(long projectId,
org.squashtest.tm.api.workspace.WorkspaceType workspace,
String pluginId,
Map<String,String> configuration)
CustomGenericProjectManagersetPluginConfiguration in interface CustomGenericProjectManagerpublic void enableExecutionStatus(long projectId,
org.squashtest.tm.domain.execution.ExecutionStatus executionStatus)
CustomGenericProjectManagerenableExecutionStatus in interface CustomGenericProjectManagerpublic void disableExecutionStatus(long projectId,
org.squashtest.tm.domain.execution.ExecutionStatus executionStatus)
CustomGenericProjectManagerdisableExecutionStatus in interface CustomGenericProjectManagerpublic Set<org.squashtest.tm.domain.execution.ExecutionStatus> enabledExecutionStatuses(long projectId)
CustomGenericProjectManagerenabledExecutionStatuses in interface CustomGenericProjectManagerpublic Set<org.squashtest.tm.domain.execution.ExecutionStatus> disabledExecutionStatuses(long projectId)
CustomGenericProjectManagerdisabledExecutionStatuses in interface CustomGenericProjectManagerpublic void replaceExecutionStepStatus(long projectId,
org.squashtest.tm.domain.execution.ExecutionStatus source,
org.squashtest.tm.domain.execution.ExecutionStatus target)
CustomGenericProjectManagerreplaceExecutionStepStatus in interface CustomGenericProjectManagerpublic boolean isExecutionStatusEnabledForProject(long projectId,
org.squashtest.tm.domain.execution.ExecutionStatus executionStatus)
CustomGenericProjectManagerisExecutionStatusEnabledForProject in interface CustomGenericProjectManagerpublic boolean projectUsesExecutionStatus(long projectId,
org.squashtest.tm.domain.execution.ExecutionStatus executionStatus)
projectUsesExecutionStatus in interface CustomGenericProjectManager@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')")
public void changeName(long projectId,
String newName)
changeName in interface CustomGenericProjectManagerCustomGenericProjectManager.changeName(long,
java.lang.String)@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
public org.squashtest.tm.domain.project.GenericProject synchronizeGenericProject(org.squashtest.tm.domain.project.GenericProject target,
org.squashtest.tm.domain.project.GenericProject source,
GenericProjectCopyParameter params)
synchronizeGenericProject in interface CustomGenericProjectManagerpublic void changeBugTrackerProjectName(long projectId,
List<String> projectBugTrackerNames)
CustomGenericProjectManagerchangeBugTrackerProjectName in interface CustomGenericProjectManagerprojectId - the concerned projectprojectBugTrackerNames - the names of the bugtracker's projects, the Project is connected toCopyright © 2010–2017 Henix, henix.fr. All rights reserved.