org.squashtest.csp.tm.internal.service
Class ProjectFilterModificationServiceImpl

java.lang.Object
  extended by org.squashtest.csp.tm.internal.service.ProjectFilterModificationServiceImpl
All Implemented Interfaces:
ProjectFilterModificationService

@Service(value="squashtest.tm.service.ProjectFilterModificationService")
@Transactional
public class ProjectFilterModificationServiceImpl
extends Object
implements ProjectFilterModificationService


Constructor Summary
ProjectFilterModificationServiceImpl()
           
 
Method Summary
 ProjectFilter findProjectFilterByUserLogin()
          This method returns the default project filter for the current user
 List<Project> getAllProjects()
          Get the list of all existing projects
 void saveOrUpdateProjectFilter(List<Long> projectIdList, boolean isActive)
          This method update the projects filter project white list and status (activated or not)
 void updateProjectFilterStatus(boolean status)
          Method which update the project filter status
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectFilterModificationServiceImpl

public ProjectFilterModificationServiceImpl()
Method Detail

findProjectFilterByUserLogin

public ProjectFilter findProjectFilterByUserLogin()
Description copied from interface: ProjectFilterModificationService
This method returns the default project filter for the current user

Specified by:
findProjectFilterByUserLogin in interface ProjectFilterModificationService
Returns:
a projectFilter

saveOrUpdateProjectFilter

public void saveOrUpdateProjectFilter(List<Long> projectIdList,
                                      boolean isActive)
Description copied from interface: ProjectFilterModificationService
This method update the projects filter project white list and status (activated or not)

Specified by:
saveOrUpdateProjectFilter in interface ProjectFilterModificationService
Parameters:
projectIdList - the list of project in the "white list" (to be display)
isActive - the status (activated or not)

updateProjectFilterStatus

public void updateProjectFilterStatus(boolean status)
Description copied from interface: ProjectFilterModificationService
Method which update the project filter status

Specified by:
updateProjectFilterStatus in interface ProjectFilterModificationService
Parameters:
status - the project filter status

getAllProjects

@PostFilter(value="hasPermission(filterObject, \'READ\') or hasRole(\'ROLE_ADMIN\')")
public List<Project> getAllProjects()
Description copied from interface: ProjectFilterModificationService
Get the list of all existing projects

Specified by:
getAllProjects in interface ProjectFilterModificationService
Returns:
the list of all projects (List)


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.