org.squashtest.tm.service.internal.repository
Interface BugTrackerDao

All Superinterfaces:
EntityDao<org.squashtest.csp.core.bugtracker.domain.BugTracker>, GenericDao<org.squashtest.csp.core.bugtracker.domain.BugTracker>
All Known Implementing Classes:
HibernateBugTrackerDao

public interface BugTrackerDao
extends EntityDao<org.squashtest.csp.core.bugtracker.domain.BugTracker>


Method Summary
 void checkNameAvailability(String name)
          checks if there is a Bugtracker of the same name in the database.
 long countBugTrackers()
           
 org.squashtest.csp.core.bugtracker.domain.BugTracker findByName(String bugtrackerName)
          Given its name, returns a bugtracker
 List<org.squashtest.csp.core.bugtracker.domain.BugTracker> findDistinctBugTrackersForProjects(List<Long> projectIds)
           
 List<org.squashtest.csp.core.bugtracker.domain.BugTracker> findSortedBugTrackers(org.squashtest.tm.core.foundation.collection.PagingAndSorting filter)
           
 
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

countBugTrackers

long countBugTrackers()
Returns:
number of all bugtrackers in squash database

findSortedBugTrackers

List<org.squashtest.csp.core.bugtracker.domain.BugTracker> findSortedBugTrackers(org.squashtest.tm.core.foundation.collection.PagingAndSorting filter)
Parameters:
filter -
Returns:
a page of bugtrackers according to the filter

checkNameAvailability

void checkNameAvailability(String name)
checks if there is a Bugtracker of the same name in the database.
If so, raises a BugTrackerNameAlreadyExistsException

Parameters:
name -

findDistinctBugTrackersForProjects

List<org.squashtest.csp.core.bugtracker.domain.BugTracker> findDistinctBugTrackersForProjects(List<Long> projectIds)
Parameters:
projectIds -
Returns:
the list of distinct BugTrackers concerned by the given projects;

findByName

org.squashtest.csp.core.bugtracker.domain.BugTracker findByName(String bugtrackerName)
Given its name, returns a bugtracker

Parameters:
bugtrackerName -
Returns:


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