org.squashtest.tm.service.internal.repository
Interface LibraryNodeDao<NODE extends org.squashtest.tm.domain.library.LibraryNode>

All Superinterfaces:
EntityDao<NODE>, GenericDao<NODE>
All Known Implementing Classes:
HibernateCampaignLibraryNodeDao, HibernateRequirementLibraryNodeDao, HibernateTestCaseLibraryNodeDao

public interface LibraryNodeDao<NODE extends org.squashtest.tm.domain.library.LibraryNode>
extends EntityDao<NODE>


Method Summary
 List<Long> getParentsIds(long entityId)
          Returns the ids path.
 List<String> getParentsName(long entityId)
          Returns the path of the given entity.
 
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

getParentsName

List<String> getParentsName(long entityId)
Returns the path of the given entity. The path is the concatenation of the ancestor names, sorted by ancestry. It does not begin with /<project-name>

Parameters:
entityId -
Returns:

getParentsIds

List<Long> getParentsIds(long entityId)
Returns the ids path. The path is a list of ids sorted by ancestry: first = elder, last = younger. The list contains only ids of library nodes.

Parameters:
entityId -
Returns:
ids of all entity parents sorted from elder to younger.


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