IssueDAOImpl
public interface IssueDAO extends BaseDAO<Issue>
Modifier and Type | Method | Description |
---|---|---|
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> |
findNextIssues(Integer issueId) |
Get the next issues in the project based on ID.
|
List<Issue> |
findPreviousIssues(Integer issueId) |
Get the next issues in the project based on 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 . |
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 retrieveList<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 returnList<Issue> findByStatusLessThan(int maxExclusiveStatus)
maxExclusiveStatus
- all issues under this status will be returnedList<Issue> findByStatusLessThanEqualTo(int maxStatus)
maxStatus
- all issues less that or equal to this status will be returnedList<Issue> findByStatusLessThanEqualToInAvailableProjects(int maxStatus)
maxStatus
- all issues less that or equal to this status will be returnedList<Issue> findBySeverity(int severity)
severity
- severity of the issues to returnList<Issue> findByProject(Integer projectId)
projectId
- ID of the project of which to retrieve all issuesLong countByProject(Integer projectId)
projectId
- ID of the project of which to count issuesList<Issue> findByProjectAndLowerStatus(Integer projectId, int maxExclusiveStatus)
projectId
- ID of the project of which to retrieve the issuesmaxExclusiveStatus
- all issues under this status will be returnedLong countByProjectAndLowerStatus(Integer projectId, int maxExclusiveStatus)
projectId
- ID of the project of which to count issuesmaxExclusiveStatus
- all issues under this status will be countedList<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 returnedLong countByProjectAndHigherStatus(Integer projectId, int minStatus)
projectId
- ID of the project of which to count issuesminStatus
- all issues with this status or above will be countedList<Issue> findByOwner(Integer ownerId, int maxExclusiveStatus)
ownerId
- ID of the user who owns the issues to returnmaxExclusiveStatus
- status under which to return issuesList<Issue> findByOwnerInAvailableProjects(Integer ownerId, int maxExclusiveStatus)
ownerId
- ID of the user who owns the issues to returnmaxExclusiveStatus
- status under which to return issuesList<Issue> findUnassignedIssues(int maxStatus)
maxStatus
- maximum status allowed for the issues to returnList<Issue> findByCreator(Integer creatorId, int maxExclusiveStatus)
userId
- ID of the user who created the issues to returnmaxExclusiveStatus
- all issues under this status will be returnedList<Issue> findByCreatorInAvailableProjects(Integer creatorId, int maxExclusiveStatus)
userId
- ID of the user who created the issues to returnmaxExclusiveStatus
- all issues under this status will be returnedList<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 returnedList<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 returnedList<Issue> findByComponent(Integer componentId)
componentId
- ID of the component of which to retrieve all issuesList<Issue> findNextIssues(Integer issueId)
issueId
- the issue IDList<Issue> findPreviousIssues(Integer issueId)
issueId
- the issue IDLong countAllIssues()
Long countByComponent(Integer componentId)
componentId
- ID of the componentList<Issue> findByVersion(Integer versionId)
versionId
- ID of the version of which to retrieve all issuesLong countByVersion(Integer versionId)
versionId
- ID of the versionDate latestModificationDate(Integer projectId)
projectId
- ID of the project of which to retrieve the issuesList<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.Copyright © 2002–2019 itracker. All rights reserved.