IssueServiceImpl
public interface IssueService
Modifier and Type | Method | Description |
---|---|---|
boolean |
addIssueAttachment(org.itracker.model.IssueAttachment attachment,
byte[] data) |
|
boolean |
addIssueHistory(org.itracker.model.IssueHistory history) |
|
boolean |
addIssueRelation(Integer issueId,
Integer relatedIssueId,
org.itracker.model.IssueRelation.Type relationType,
Integer userId) |
|
boolean |
assignIssue(Integer issueId,
Integer userId) |
|
boolean |
assignIssue(Integer issueId,
Integer userId,
Integer assignedByUserId) |
|
boolean |
canViewIssue(Integer issueId,
org.itracker.model.User user) |
|
boolean |
canViewIssue(org.itracker.model.Issue issue,
org.itracker.model.User user) |
|
org.itracker.model.Issue |
createIssue(org.itracker.model.Issue issue,
Integer projectId,
Integer userId,
Integer createdById) |
Creates a new issue in a project.
|
Long |
getAllIssueAttachmentCount() |
|
List<org.itracker.model.IssueAttachment> |
getAllIssueAttachments() |
|
Long |
getAllIssueAttachmentSize() |
|
List<org.itracker.model.Issue> |
getAllIssues() |
Deprecated.
Don't use due to EXPENSIVE memory use.
|
org.itracker.model.Issue |
getIssue(Integer issueId) |
|
List<org.itracker.model.IssueActivity> |
getIssueActivity(Integer issueId) |
|
List<org.itracker.model.IssueActivity> |
getIssueActivity(Integer issueId,
boolean notificationSent) |
|
org.itracker.model.IssueAttachment |
getIssueAttachment(Integer attachmentId) |
|
int |
getIssueAttachmentCount(Integer issueId) |
|
byte[] |
getIssueAttachmentData(Integer attachmentId) |
Returns the binary data for an attachment.
|
List<org.itracker.model.IssueAttachment> |
getIssueAttachments(Integer issueId) |
|
HashSet<Integer> |
getIssueComponentIds(Integer issueId) |
|
List<org.itracker.model.Component> |
getIssueComponents(Integer issueId) |
|
org.itracker.model.User |
getIssueCreator(Integer issueId) |
|
List<org.itracker.model.IssueHistory> |
getIssueHistory(Integer issueId) |
|
org.itracker.model.User |
getIssueOwner(Integer issueId) |
|
org.itracker.model.Project |
getIssueProject(Integer issueId) |
|
org.itracker.model.IssueRelation |
getIssueRelation(Integer relationId) |
|
List<org.itracker.model.Issue> |
getIssuesByProjectId(Integer projectId) |
|
List<org.itracker.model.Issue> |
getIssuesByProjectId(Integer projectId,
int status) |
|
List<org.itracker.model.Issue> |
getIssuesCreatedByUser(Integer userId) |
|
List<org.itracker.model.Issue> |
getIssuesCreatedByUser(Integer userId,
boolean availableProjectsOnly) |
|
List<org.itracker.model.Issue> |
getIssuesOwnedByUser(Integer userId) |
|
List<org.itracker.model.Issue> |
getIssuesOwnedByUser(Integer userId,
boolean availableProjectsOnly) |
|
List<org.itracker.model.Issue> |
getIssuesWatchedByUser(Integer userId) |
|
List<org.itracker.model.Issue> |
getIssuesWatchedByUser(Integer userId,
boolean availableProjectsOnly) |
|
List<org.itracker.model.Issue> |
getIssuesWithSeverity(int severity) |
Returns an array of issues that are currently at the given severity.
|
List<org.itracker.model.Issue> |
getIssuesWithStatus(int status) |
Returns an array of issues that are currently at the given status.
|
List<org.itracker.model.Issue> |
getIssuesWithStatusLessThan(int status) |
Returns an array of issues that are currently at the given status or a status
less than the given status.
|
HashSet<Integer> |
getIssueVersionIds(Integer issueId) |
|
List<org.itracker.model.Version> |
getIssueVersions(Integer issueId) |
|
org.itracker.model.IssueHistory |
getLastIssueHistory(Integer issueId) |
Returns the latest issue history entry for a particular issue.
|
Date |
getLatestIssueDateByProjectId(Integer projectId) |
|
List<org.itracker.model.Issue> |
getNextIssues(Integer issueId) |
|
Long |
getNumberIssues() |
|
int |
getOpenIssueCountByProjectId(Integer projectId) |
|
List<org.itracker.model.Issue> |
getPreviousIssues(Integer issueId) |
|
int |
getResolvedIssueCountByProjectId(Integer projectId) |
|
int |
getTotalIssueCountByProjectId(Integer projectId) |
|
List<org.itracker.model.Issue> |
getUnassignedIssues() |
|
List<org.itracker.model.Issue> |
getUnassignedIssues(boolean availableProjectsOnly) |
|
org.itracker.model.Issue |
moveIssue(org.itracker.model.Issue issue,
Integer projectId,
Integer userId) |
Moves an issues from its current project to a new project.
|
boolean |
removeIssueAttachment(Integer attachmentId) |
|
Integer |
removeIssueHistoryEntry(Integer entryId,
Integer userId) |
|
void |
removeIssueRelation(Integer relationId,
Integer userId) |
|
List<org.itracker.model.Issue> |
searchIssues(org.itracker.model.IssueSearchQuery queryModel,
org.itracker.model.User user,
Map<Integer,Set<org.itracker.model.PermissionType>> userPermissions) |
|
boolean |
setIssueAttachmentData(Integer attachmentId,
byte[] data) |
Updates the binary data of the attachment stored in the database.
|
boolean |
setIssueAttachmentData(String fileName,
byte[] data) |
Updates the binary data of the attachment stored in the database.
|
boolean |
setIssueComponents(Integer issueId,
HashSet<Integer> componentIds,
Integer userId) |
|
boolean |
setIssueFields(Integer issueId,
List<org.itracker.model.IssueField> fields) |
TODO: Add Javadocs here: document this whole class.describe what is the use for this method.
|
boolean |
setIssueVersions(Integer issueId,
HashSet<Integer> versionIds,
Integer userId) |
|
org.itracker.model.Issue |
systemUpdateIssue(org.itracker.model.Issue issue,
Integer userId) |
|
org.itracker.model.Issue |
updateIssue(org.itracker.model.Issue issue,
Integer userId) |
Save a modified issue to the persistence layer
|
org.itracker.model.Issue getIssue(Integer issueId)
List<org.itracker.model.Issue> getAllIssues()
Long getNumberIssues()
List<org.itracker.model.Issue> getIssuesWithStatus(int status)
status
- the status to search forList<org.itracker.model.Issue> getIssuesWithStatusLessThan(int status)
status
- the status to search forList<org.itracker.model.Issue> getIssuesWithSeverity(int severity)
severity
- the severity to search forList<org.itracker.model.Issue> getIssuesByProjectId(Integer projectId, int status)
List<org.itracker.model.Issue> getIssuesCreatedByUser(Integer userId, boolean availableProjectsOnly)
List<org.itracker.model.Issue> getIssuesOwnedByUser(Integer userId, boolean availableProjectsOnly)
List<org.itracker.model.Issue> getIssuesWatchedByUser(Integer userId, boolean availableProjectsOnly)
List<org.itracker.model.Issue> getUnassignedIssues()
List<org.itracker.model.Issue> getUnassignedIssues(boolean availableProjectsOnly)
org.itracker.model.Issue createIssue(org.itracker.model.Issue issue, Integer projectId, Integer userId, Integer createdById) throws org.itracker.ProjectException
issue
- an Issue representing the new issue informationprojectId
- the projectId the issue belongs touserId
- the id of registered creator of the new issuecreatedById
- the id of the actual creator of the issue. This would normally be the same as the userId.org.itracker.ProjectException
org.itracker.model.Issue updateIssue(org.itracker.model.Issue issue, Integer userId) throws org.itracker.ProjectException
issue
- the changed, unsaved issue to update on persistency layeruserId
- the user-id of the changerorg.itracker.ProjectException
org.itracker.model.Issue systemUpdateIssue(org.itracker.model.Issue issue, Integer userId) throws org.itracker.ProjectException
org.itracker.ProjectException
org.itracker.model.Issue moveIssue(org.itracker.model.Issue issue, Integer projectId, Integer userId)
issue
- an Issue of the issue to moveprojectId
- the id of the target projectuserId
- the id of the user that is moving the issueboolean assignIssue(Integer issueId, Integer userId)
issueId
- userId
- boolean assignIssue(Integer issueId, Integer userId, Integer assignedByUserId)
issueId
- userId
- assignedByUserId
- boolean setIssueFields(Integer issueId, List<org.itracker.model.IssueField> fields)
boolean setIssueComponents(Integer issueId, HashSet<Integer> componentIds, Integer userId)
boolean setIssueVersions(Integer issueId, HashSet<Integer> versionIds, Integer userId)
boolean addIssueHistory(org.itracker.model.IssueHistory history)
boolean addIssueRelation(Integer issueId, Integer relatedIssueId, org.itracker.model.IssueRelation.Type relationType, Integer userId)
boolean addIssueAttachment(org.itracker.model.IssueAttachment attachment, byte[] data)
boolean setIssueAttachmentData(Integer attachmentId, byte[] data)
attachmentId
- the id of the attachment to updatedata
- a byte arrray of the binary data for the attachmentboolean setIssueAttachmentData(String fileName, byte[] data)
fileName
- the filename listed in the database for the localtion of the attachment.
This is the name that was previously used to store the data on the
filesystem, not the original filename of the attachment.data
- a byte arrray of the binary data for the attachmentboolean removeIssueAttachment(Integer attachmentId)
org.itracker.model.Project getIssueProject(Integer issueId)
org.itracker.model.User getIssueCreator(Integer issueId)
org.itracker.model.User getIssueOwner(Integer issueId)
org.itracker.model.IssueRelation getIssueRelation(Integer relationId)
List<org.itracker.model.IssueActivity> getIssueActivity(Integer issueId, boolean notificationSent)
List<org.itracker.model.IssueAttachment> getAllIssueAttachments()
Long getAllIssueAttachmentSize()
Long getAllIssueAttachmentCount()
org.itracker.model.IssueAttachment getIssueAttachment(Integer attachmentId)
byte[] getIssueAttachmentData(Integer attachmentId)
attachmentId
- the id of the attachment to obtain the data forint getIssueAttachmentCount(Integer issueId)
org.itracker.model.IssueHistory getLastIssueHistory(Integer issueId)
issueId
- the id of the issue to return the history entry for.int getOpenIssueCountByProjectId(Integer projectId)
int getResolvedIssueCountByProjectId(Integer projectId)
int getTotalIssueCountByProjectId(Integer projectId)
boolean canViewIssue(Integer issueId, org.itracker.model.User user)
boolean canViewIssue(org.itracker.model.Issue issue, org.itracker.model.User user)
Copyright © 2002–2022 itracker. All rights reserved.