@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,
String projectBugTrackerName)
Will change a bugtracker connexion parameter : the name of the bugtracker's project 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 |
disableWizardForWorkspace(long projectId,
org.squashtest.tm.api.workspace.WorkspaceType workspace,
String wizardId)
enables the given wizard 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 |
enableWizardForWorkspace(long projectId,
org.squashtest.tm.api.workspace.WorkspaceType workspace,
String wizardId)
enables the given wizard 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.
|
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> |
getWizardConfiguration(long projectId,
org.squashtest.tm.api.workspace.WorkspaceType workspace,
String wizardId)
Returns the configuration of a given wizard 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 |
setWizardConfiguration(long projectId,
org.squashtest.tm.api.workspace.WorkspaceType workspace,
String wizardId,
Map<String,String> configuration)
Applies the given configuration to a wizard for a given project.
|
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 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 CustomGenericProjectManagerpublic void changeBugTrackerProjectName(long projectId,
String projectBugTrackerName)
CustomGenericProjectManagerchangeBugTrackerProjectName in interface CustomGenericProjectManagerprojectId - the concerned projectprojectBugTrackerName - the name of the bugtracker's project, the Project is connected to@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')")
public void enableWizardForWorkspace(long projectId,
org.squashtest.tm.api.workspace.WorkspaceType workspace,
String wizardId)
CustomGenericProjectManagerenableWizardForWorkspace in interface CustomGenericProjectManager@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')")
public void disableWizardForWorkspace(long projectId,
org.squashtest.tm.api.workspace.WorkspaceType workspace,
String wizardId)
CustomGenericProjectManagerdisableWizardForWorkspace in interface CustomGenericProjectManagerpublic Map<String,String> getWizardConfiguration(long projectId, org.squashtest.tm.api.workspace.WorkspaceType workspace, String wizardId)
CustomGenericProjectManagergetWizardConfiguration in interface CustomGenericProjectManager@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') or hasRole(\'ROLE_TM_PROJECT_MANAGER\')")
public void setWizardConfiguration(long projectId,
org.squashtest.tm.api.workspace.WorkspaceType workspace,
String wizardId,
Map<String,String> configuration)
CustomGenericProjectManagersetWizardConfiguration 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)Copyright © 2010-2015 Henix, henix.fr. All Rights Reserved.