org.squashtest.tm.service.project
Interface CustomGenericProjectManager

All Superinterfaces:
CustomGenericProjectFinder
All Known Subinterfaces:
GenericProjectManagerService
All Known Implementing Classes:
CustomGenericProjectManagerImpl

public interface CustomGenericProjectManager
extends CustomGenericProjectFinder

Author:
Gregory Fouquet

Method Summary
 void addNewPermissionToProject(long userId, long projectId, String permission)
           
 void bindTestAutomationProject(long tmProjectId, 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 bugtracker)
          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.users.Party findPartyById(long partyId)
           
 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 filtering)
          Will find all Projects and Templates to which the user has management access to and return them ordered according to the given params.
 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 unbindTestAutomationProject(long projectId, long taProjectId)
           
 
Methods inherited from interface org.squashtest.tm.service.project.CustomGenericProjectFinder
findAdministrableProjectById, findAllPossiblePermission, findBoundTestAutomationProjects, findPartyPermissionsBeanByProject, findPartyPermissionsBeansByProject, findPartyWithoutPermissionByProject, getLastBoundServerOrDefault
 

Method Detail

findSortedProjects

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 filtering)
Will find all Projects and Templates to which the user has management access to and return them ordered according to the given params.

Parameters:
pagingAndSorting - the PagingAndSorting that holds order and paging params
filter - the filter to apply on the result
Returns:
a PagedCollectionHolder containing all projects the user has management access to, ordered according to the given params.

persist

void persist(org.squashtest.tm.domain.project.GenericProject project)
Parameters:
project -

coerceTemplateIntoProject

void coerceTemplateIntoProject(long templateId)
Parameters:
templateId -

deleteProject

void deleteProject(long projectId)

addNewPermissionToProject

void addNewPermissionToProject(long userId,
                               long projectId,
                               String permission)

removeProjectPermission

void removeProjectPermission(long userId,
                             long projectId)

findPartyById

org.squashtest.tm.domain.users.Party findPartyById(long partyId)

bindTestAutomationProject

void bindTestAutomationProject(long tmProjectId,
                               org.squashtest.tm.domain.testautomation.TestAutomationProject taProject)
Will bind the TM project to a TA project. Will persist it if necessary.

Parameters:
TMprojectId -
TAproject -

unbindTestAutomationProject

void unbindTestAutomationProject(long projectId,
                                 long taProjectId)

changeBugTracker

void changeBugTracker(long projectId,
                      Long newBugtrackerId)
Change the Bugtracker the Project is associated-to.
If the Project had no Bugtracker, will add a new association.
If the Project had a already a Bugtracker, it will keep the project-Name information

Parameters:
projectId -
newBugtrackerId -

changeBugTracker

void changeBugTracker(org.squashtest.tm.domain.project.GenericProject project,
                      org.squashtest.csp.core.bugtracker.domain.BugTracker bugtracker)
Change the Bugtracker the Project is associated-to.
If the Project had no Bugtracker, will add a new association.
If the Project had a already a Bugtracker, it will keep the project-Name information

Parameters:
project - : the concerned GenericProject
bugtracker - : the bugtracker to bind the project to

removeBugTracker

void removeBugTracker(long projectId)
Will remove the association the Project has to it's Bugtracker.

Parameters:
projectId -

changeBugTrackerProjectName

void changeBugTrackerProjectName(long projectId,
                                 String projectBugTrackerName)
Will change a bugtracker connexion parameter : the name of the bugtracker's project it's associated to.

Parameters:
projectId - the concerned project
projectBugTrackerName - the name of the bugtracker's project, the Project is connected to

enableWizardForWorkspace

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


disableWizardForWorkspace

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



Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.