org.squashtest.tm.service.internal.project
@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 |
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 |
coerceTemplateIntoProject(long templateId) |
void |
deleteProject(long projectId) |
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
|
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) |
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.PagingAndSorting pagingAndSorting,
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.
|
org.squashtest.tm.domain.testautomation.TestAutomationServer |
getLastBoundServerOrDefault(long projectId)
Returns a TestAutomationServer instance.
|
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.
|
void |
persist(org.squashtest.tm.domain.project.GenericProject project) |
void |
removeBugTracker(long projectId)
Will remove the association the Project has to it's Bugtracker.
|
void |
removeProjectPermission(long userId,
long projectId) |
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_TM_PROJECT_MANAGER\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.project.GenericProject>> findSortedProjects(org.squashtest.tm.core.foundation.collection.PagingAndSorting pagingAndSorting, org.squashtest.tm.core.foundation.collection.Filtering filter)
CustomGenericProjectManagerfindSortedProjects in interface CustomGenericProjectManagerpagingAndSorting - 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(org.squashtest.tm.core.foundation.collection.PagingAndSorting)@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_TM_PROJECT_MANAGER\') or hasRole(\'ROLE_ADMIN\')") public void deleteProject(long projectId)
deleteProject in interface CustomGenericProjectManagerpublic 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 bindTestAutomationProject(long projectId,
org.squashtest.tm.domain.testautomation.TestAutomationProject taProject)
CustomGenericProjectManagerbindTestAutomationProject in interface CustomGenericProjectManagerpublic org.squashtest.tm.domain.testautomation.TestAutomationServer getLastBoundServerOrDefault(long projectId)
CustomGenericProjectFindergetLastBoundServerOrDefault in interface CustomGenericProjectFinderpublic List<org.squashtest.tm.domain.testautomation.TestAutomationProject> findBoundTestAutomationProjects(long projectId)
findBoundTestAutomationProjects in interface CustomGenericProjectFinderpublic void unbindTestAutomationProject(long projectId,
long taProjectId)
unbindTestAutomationProject in interface CustomGenericProjectManagerpublic 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_TM_PROJECT_MANAGER\') or hasRole(\'ROLE_ADMIN\')")
public void enableWizardForWorkspace(long projectId,
org.squashtest.tm.api.workspace.WorkspaceType workspace,
String wizardId)
CustomGenericProjectManagerenableWizardForWorkspace in interface CustomGenericProjectManager@PreAuthorize(value="hasRole(\'ROLE_TM_PROJECT_MANAGER\') or hasRole(\'ROLE_ADMIN\')")
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_TM_PROJECT_MANAGER\') or hasRole(\'ROLE_ADMIN\')")
public void setWizardConfiguration(long projectId,
org.squashtest.tm.api.workspace.WorkspaceType workspace,
String wizardId,
Map<String,String> configuration)
CustomGenericProjectManagersetWizardConfiguration in interface CustomGenericProjectManagerCopyright © 2010-2014 Henix, henix.fr. All Rights Reserved.