org.squashtest.csp.tm.service
Interface CustomProjectModificationService

All Superinterfaces:
ProjectFinder
All Known Subinterfaces:
ProjectModificationService
All Known Implementing Classes:
CustomProjectModificationServiceImpl

public interface CustomProjectModificationService
extends ProjectFinder


Method Summary
 void addNewPermissionToProject(long userId, long projectId, String permission)
           
 void bindTestAutomationProject(long TMprojectId, TestAutomationProject TAproject)
          Will bind the TM project to a TA project.
 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 deleteProject(long projectId)
           
 AdministrableProject findAdministrableProjectById(long projectId)
           
 List<org.squashtest.csp.core.security.acls.PermissionGroup> findAllPossiblePermission()
           
 List<TestAutomationProject> findBoundTestAutomationProjects(long projectId)
           
 User findUserByLogin(String userLogin)
           
 List<UserProjectPermissionsBean> findUserPermissionsBeansByProject(long projectId)
           
 List<User> findUserWithoutPermissionByProject(long projectId)
           
 TestAutomationServer getLastBoundServerOrDefault(long projectId)
          Returns a TestAutomationServer instance.
 void removeBugTracker(long projectId)
          Will remove the association the Project has to it's Bugtracker.
 void removeProjectPermission(long userId, long projectId)
           
 void unbindTestAutomationProject(long TMprojectId, long TAProjectId)
           
 
Methods inherited from interface org.squashtest.csp.tm.service.ProjectFinder
findAllOrderedByName, findAllReadable, findById, findSortedProjects
 

Method Detail

deleteProject

void deleteProject(long projectId)

findAdministrableProjectById

AdministrableProject findAdministrableProjectById(long projectId)

addNewPermissionToProject

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

removeProjectPermission

void removeProjectPermission(long userId,
                             long projectId)

findUserPermissionsBeansByProject

List<UserProjectPermissionsBean> findUserPermissionsBeansByProject(long projectId)

findAllPossiblePermission

List<org.squashtest.csp.core.security.acls.PermissionGroup> findAllPossiblePermission()

findUserWithoutPermissionByProject

List<User> findUserWithoutPermissionByProject(long projectId)

findUserByLogin

User findUserByLogin(String userLogin)

getLastBoundServerOrDefault

TestAutomationServer getLastBoundServerOrDefault(long projectId)
Returns a TestAutomationServer instance. Either it is a persisted instance that the tm project was bound to lastly (through a ta project), either it will be the default server configuration.


bindTestAutomationProject

void bindTestAutomationProject(long TMprojectId,
                               TestAutomationProject TAproject)
Will bind the TM project to a TA project. Will persist it if necessary.

Parameters:
TMprojectId -
TAproject -

findBoundTestAutomationProjects

List<TestAutomationProject> findBoundTestAutomationProjects(long projectId)

unbindTestAutomationProject

void unbindTestAutomationProject(long TMprojectId,
                                 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 -

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


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