org.squashtest.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<org.squashtest.tm.domain.project.GenericProject> findAllOrderedByName(org.squashtest.tm.core.foundation.collection.Paging paging)
           
 org.squashtest.tm.domain.project.GenericProject findById(long projectId)
           
 org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.project.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.tm.service.project.CustomGenericProjectFinder
findAdministrableProjectById, findAllPossiblePermission, findBoundTestAutomationProjects, findPartyPermissionsBeanByProject, findPartyPermissionsBeansByProject, findPartyWithoutPermissionByProject, getLastBoundServerOrDefault
 

Method Detail

findAllOrderedByName

@PostFilter(value="hasPermission(filterObject, \'READ\') or  hasRole(\'ROLE_ADMIN\')")
List<org.squashtest.tm.domain.project.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<org.squashtest.tm.domain.project.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

org.squashtest.tm.domain.project.GenericProject findById(long projectId)


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