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

All Superinterfaces:
CustomGenericProjectFinder
All Known Subinterfaces:
GenericProjectManagerService

@Transactional(readOnly=true)
public interface GenericProjectFinder
extends CustomGenericProjectFinder

Finder service for Generic Projects ie both Projects and ProjectTemplates

Author:
Gregory Fouquet

Method Summary
 List<GenericProject> findAllOrderedByName(org.squashtest.tm.core.foundation.collection.Paging paging)
           
 GenericProject findById(long projectId)
           
 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.
 
Methods inherited from interface org.squashtest.csp.tm.service.project.CustomGenericProjectFinder
findAdministrableProjectById, findBoundTestAutomationProjects, getLastBoundServerOrDefault
 

Method Detail

findAllOrderedByName

@PostFilter(value="hasPermission(filterObject, \'READ\') or  hasRole(\'ROLE_ADMIN\')")
List<GenericProject> findAllOrderedByName(org.squashtest.tm.core.foundation.collection.Paging paging)

findSortedProjects

@PreAuthorize(value="hasRole(\'ROLE_TM_PROJECT_MANAGER\') or hasRole(\'ROLE_ADMIN\')")
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:
filter - the PagingAndSorting that holds order and paging params
Returns:
a PagedCollectionHolder containing all projects the user has management access to, ordered according to the given params.

findById

GenericProject findById(long projectId)


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