|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IssueDAO
Issue Data Access Object interface.
| Method Summary | |
|---|---|
Long |
countAllIssues()
Count all Issues in database |
Long |
countByComponent(Integer componentId)
Counts the number of issues attached to a component. |
Long |
countByProject(Integer projectId)
Counts the number of issues of the given project. |
Long |
countByProjectAndHigherStatus(Integer projectId,
int minStatus)
Counts the number of issues of the given project with a status higher than or equal to the given one. |
Long |
countByProjectAndLowerStatus(Integer projectId,
int maxExclusiveStatus)
Counts the number of issues of the given project with a status lower than the given one. |
Long |
countByVersion(Integer versionId)
Counts the number of issues attached to a version. |
List<Issue> |
findAll()
Deprecated. don't use due to expensive memory use. |
List<Issue> |
findByComponent(Integer componentId)
Finds all issues of the component with the given ID. |
List<Issue> |
findByCreator(Integer creatorId,
int maxExclusiveStatus)
Finds all issues created by the given user in all projects and with a status less than the given one. |
List<Issue> |
findByCreatorInAvailableProjects(Integer creatorId,
int maxExclusiveStatus)
Finds all issues created by the given user in all active and viewable projects and with a status less than the given one. |
List<Issue> |
findByNotification(Integer userId,
int maxExclusiveStatus)
Finds all issues with notifications for the given user in all projects and with a status less than the given one. |
List<Issue> |
findByNotificationInAvailableProjects(Integer userId,
int maxExclusiveStatus)
Finds all issues with notifications for the given user in active and viewable projects. |
List<Issue> |
findByOwner(Integer ownerId,
int maxExclusiveStatus)
Finds all issues owned by the given user in all projects and with a status lower than the given one. |
List<Issue> |
findByOwnerInAvailableProjects(Integer ownerId,
int maxExclusiveStatus)
Finds all issues owned by the given user in all active and viewable projects and with a status less than the given one. |
Issue |
findByPrimaryKey(Integer issueId)
Finds the issue with the given ID. |
List<Issue> |
findByProject(Integer projectId)
Finds all issues of the given project. |
List<Issue> |
findByProjectAndHigherStatus(Integer projectId,
int minStatus)
Finds all issues of the given project with a status higher than or equal to the given one. |
List<Issue> |
findByProjectAndLowerStatus(Integer projectId,
int maxExclusiveStatus)
Finds all issues of the given project with a status lower than the given one. |
List<Issue> |
findBySeverity(int severity)
Finds all issues with the given severity in all projects. |
List<Issue> |
findByStatus(int status)
Finds all issues in the given status in all projects. |
List<Issue> |
findByStatusLessThan(int maxExclusiveStatus)
Finds all issues with a status less than the given one in all projects. |
List<Issue> |
findByStatusLessThanEqualTo(int maxStatus)
Finds all issues with a status less than or equal to the given status in all projects. |
List<Issue> |
findByStatusLessThanEqualToInAvailableProjects(int maxStatus)
Finds all issues with a status less than or equal to the given status in active and viewable projects. |
List<Issue> |
findByTargetVersion(Integer versionId)
Delete all issues targeted for the specified version. |
List<Issue> |
findByVersion(Integer versionId)
Finds all issues of the version with the given ID. |
List<Issue> |
findUnassignedIssues(int maxStatus)
Finds all issues without owner with a status less than or equal to the given one in all projects. |
Date |
latestModificationDate(Integer projectId)
Returns the modification date of the latest modified issue in the project with the given id. |
List<Issue> |
query(IssueSearchQuery queryModel,
User user,
Map<Integer,Set<PermissionType>> userPermissions)
Query the list of issues that satisfies the search criteria specified in queryModel. |
| Methods inherited from interface org.itracker.persistence.dao.BaseDAO |
|---|
delete, detach, merge, refresh, save, saveOrUpdate |
| Method Detail |
|---|
Issue findByPrimaryKey(Integer issueId)
PENDING: should this method throw a NoSuchEntityException instead of returning null if the issue doesn't exist ?
issueId - ID of the issue to retrieve
List<Issue> findAll()
PENDING: do we really need to retrieve all issues at once ? It can cause OutOfMemoryError depending on the DB size! Consider scrolling through an issues result set in case we really do.
List<Issue> findByStatus(int status)
status - status of the issues to return
List<Issue> findByStatusLessThan(int maxExclusiveStatus)
maxExclusiveStatus - all issues under this status will be returned
List<Issue> findByStatusLessThanEqualTo(int maxStatus)
maxStatus - all issues less that or equal to this status will be returned
List<Issue> findByStatusLessThanEqualToInAvailableProjects(int maxStatus)
maxStatus - all issues less that or equal to this status will be returned
List<Issue> findBySeverity(int severity)
severity - severity of the issues to return
List<Issue> findByProject(Integer projectId)
projectId - ID of the project of which to retrieve all issues
Long countByProject(Integer projectId)
projectId - ID of the project of which to count issues
List<Issue> findByProjectAndLowerStatus(Integer projectId,
int maxExclusiveStatus)
projectId - ID of the project of which to retrieve the issuesmaxExclusiveStatus - all issues under this status will be returned
Long countByProjectAndLowerStatus(Integer projectId,
int maxExclusiveStatus)
projectId - ID of the project of which to count issuesmaxExclusiveStatus - all issues under this status will be counted
List<Issue> findByProjectAndHigherStatus(Integer projectId,
int minStatus)
projectId - ID of the project of which to retrieve the issuesminStatus - all issues with this status or above will be returned
Long countByProjectAndHigherStatus(Integer projectId,
int minStatus)
projectId - ID of the project of which to count issuesminStatus - all issues with this status or above will be counted
List<Issue> findByOwner(Integer ownerId,
int maxExclusiveStatus)
ownerId - ID of the user who owns the issues to returnmaxExclusiveStatus - status under which to return issues
List<Issue> findByOwnerInAvailableProjects(Integer ownerId,
int maxExclusiveStatus)
ownerId - ID of the user who owns the issues to returnmaxExclusiveStatus - status under which to return issues
List<Issue> findUnassignedIssues(int maxStatus)
maxStatus - maximum status allowed for the issues to return
List<Issue> findByCreator(Integer creatorId,
int maxExclusiveStatus)
userId - ID of the user who created the issues to returnmaxExclusiveStatus - all issues under this status will be returned
List<Issue> findByCreatorInAvailableProjects(Integer creatorId,
int maxExclusiveStatus)
userId - ID of the user who created the issues to returnmaxExclusiveStatus - all issues under this status will be returned
List<Issue> findByNotification(Integer userId,
int maxExclusiveStatus)
Only 1 instance of every issue is returned, even if multiple notifications exist for an issue.
userId - ID of the user with notifications for the issues to returnmaxExclusiveStatus - all issues under this status will be returned
List<Issue> findByNotificationInAvailableProjects(Integer userId,
int maxExclusiveStatus)
Only 1 instance of every issue is returned, even if multiple notifications exist for an issue.
userId - ID of the user with notifications for the issues to returnmaxExclusiveStatus - all issues under this status will be returned
List<Issue> findByComponent(Integer componentId)
componentId - ID of the component of which to retrieve all issues
Long countAllIssues()
Long countByComponent(Integer componentId)
componentId - ID of the component
List<Issue> findByVersion(Integer versionId)
versionId - ID of the version of which to retrieve all issues
Long countByVersion(Integer versionId)
versionId - ID of the version
Date latestModificationDate(Integer projectId)
projectId - ID of the project of which to retrieve the issues
List<Issue> query(IssueSearchQuery queryModel,
User user,
Map<Integer,Set<PermissionType>> userPermissions)
queryModel.
queryModel - The search criteria.user - The currently logged-in user.userPermissions - Permissions currently inforced. TODO: We could look this up instead of passing this as parameter.
List<Issue> findByTargetVersion(Integer versionId)
versionId - the version ID.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||