org.squashtest.csp.tm.service.project
Interface CustomGenericProjectManager

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

@Transactional
public interface CustomGenericProjectManager
extends CustomGenericProjectFinder

Author:
Gregory Fouquet

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(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)
           
 List<org.squashtest.csp.core.security.acls.PermissionGroup> findAllPossiblePermission()
           
 org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<GenericProject>> findSortedProjects(org.squashtest.tm.core.foundation.collection.PagingAndSorting pagingAndSorting)
          Will find all Projects and Templates to which the user has management access to and return them ordered according to the given params.
 User findUserByLogin(String userLogin)
           
 List<UserProjectPermissionsBean> findUserPermissionsBeansByProject(long projectId)
           
 List<User> findUserWithoutPermissionByProject(long projectId)
           
 void persist(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.csp.tm.service.project.CustomGenericProjectFinder
findAdministrableProjectById, findBoundTestAutomationProjects, getLastBoundServerOrDefault
 

Method Detail

findSortedProjects

@Transactional(readOnly=true)
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<GenericProject>> findSortedProjects(org.squashtest.tm.core.foundation.collection.PagingAndSorting pagingAndSorting)
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
Returns:
a FilteredCollectionHolder containing all projects the user has management access to, ordered according to the given params.

persist

void persist(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)

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)

bindTestAutomationProject

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


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