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

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

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


Constructor Summary
ProjectFilterModificationServiceImpl()
           
 
Method Summary
 org.squashtest.tm.domain.projectfilter.ProjectFilter findProjectFilterByUserLogin()
          This method checks whether this user uses a project filter.
 List<org.squashtest.tm.domain.project.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 org.squashtest.tm.domain.projectfilter.ProjectFilter findProjectFilterByUserLogin()
This method checks whether this user uses a project filter. If so, it returns it. If not, it returns a default - empty- one.

Specified by:
findProjectFilterByUserLogin in interface ProjectFilterModificationService
Returns:
what I just said

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\')")
@Transactional(readOnly=true)
public List<org.squashtest.tm.domain.project.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-2013 Henix, henix.fr. All Rights Reserved.