org.squashtest.tm.service.internal.repository
Interface FolderDao<FOLDER extends org.squashtest.tm.domain.library.Folder<? extends NODE>,NODE extends org.squashtest.tm.domain.library.LibraryNode>

All Superinterfaces:
EntityDao<FOLDER>, GenericDao<FOLDER>
All Known Subinterfaces:
CampaignFolderDao, RequirementFolderDao, TestCaseFolderDao
All Known Implementing Classes:
HibernateCampaignFolderDao, HibernateRequirementFolderDao, HibernateTestCaseFolderDao

public interface FolderDao<FOLDER extends org.squashtest.tm.domain.library.Folder<? extends NODE>,NODE extends org.squashtest.tm.domain.library.LibraryNode>
extends EntityDao<FOLDER>


Method Summary
 List<NODE> findAllContentById(long folderId)
           
 FOLDER findByContent(NODE node)
          Finds the folder which has the given node in its content.
 List<Long> findContentForList(List<Long> ids)
           
 List<String> findNamesInFolderStartingWith(long folderId, String nameStart)
           
 List<String> findNamesInLibraryStartingWith(long libraryId, String nameStart)
           
 List<Long[]> findPairedContentForList(List<Long> ids)
           
 FOLDER findParentOf(Long id)
          will return the parent folder of the node with the id parameter
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.EntityDao
findAll, findAllByIds, findById
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.GenericDao
clearFromCache, clearFromCache, flush, persist, persist, remove, removeAll
 

Method Detail

findAllContentById

List<NODE> findAllContentById(long folderId)

findByContent

FOLDER findByContent(NODE node)
Finds the folder which has the given node in its content.

Parameters:
node -
Returns:

findNamesInFolderStartingWith

List<String> findNamesInFolderStartingWith(long folderId,
                                           String nameStart)

findNamesInLibraryStartingWith

List<String> findNamesInLibraryStartingWith(long libraryId,
                                            String nameStart)

findContentForList

List<Long> findContentForList(List<Long> ids)
Parameters:
ids -
Returns:
the list of the node ids which are descendant of the given folder ids.

findPairedContentForList

List<Long[]> findPairedContentForList(List<Long> ids)
Returns:
the list of the node ids which are descendant of the given folder ids paired with their owners

findParentOf

FOLDER findParentOf(Long id)
will return the parent folder of the node with the id parameter

Parameters:
id -


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