IssueServiceImpl
public interface IssueService
Modifier and Type | Method | Description |
---|---|---|
boolean |
addIssueAttachment(IssueAttachment attachment,
byte[] data) |
|
boolean |
addIssueHistory(IssueHistory history) |
|
boolean |
addIssueRelation(Integer issueId,
Integer relatedIssueId,
IssueRelation.Type relationType,
Integer userId) |
|
boolean |
assignIssue(Integer issueId,
Integer userId) |
|
boolean |
assignIssue(Integer issueId,
Integer userId,
Integer assignedByUserId) |
|
boolean |
canViewIssue(Integer issueId,
User user) |
|
boolean |
canViewIssue(Issue issue,
User user) |
|
Issue |
createIssue(Issue issue,
Integer projectId,
Integer userId,
Integer createdById) |
Creates a new issue in a project.
|
Long |
getAllIssueAttachmentCount() |
|
List<IssueAttachment> |
getAllIssueAttachments() |
|
Long |
getAllIssueAttachmentSize() |
|
List<Issue> |
getAllIssues() |
Deprecated.
Don't use due to EXPENSIVE memory use.
|
Issue |
getIssue(Integer issueId) |
|
List<IssueActivity> |
getIssueActivity(Integer issueId) |
|
List<IssueActivity> |
getIssueActivity(Integer issueId,
boolean notificationSent) |
|
IssueAttachment |
getIssueAttachment(Integer attachmentId) |
|
int |
getIssueAttachmentCount(Integer issueId) |
|
byte[] |
getIssueAttachmentData(Integer attachmentId) |
Returns the binary data for an attachment.
|
List<IssueAttachment> |
getIssueAttachments(Integer issueId) |
|
HashSet<Integer> |
getIssueComponentIds(Integer issueId) |
|
List<Component> |
getIssueComponents(Integer issueId) |
|
User |
getIssueCreator(Integer issueId) |
|
List<IssueHistory> |
getIssueHistory(Integer issueId) |
|
User |
getIssueOwner(Integer issueId) |
|
Project |
getIssueProject(Integer issueId) |
|
IssueRelation |
getIssueRelation(Integer relationId) |
|
List<Issue> |
getIssuesByProjectId(Integer projectId) |
|
List<Issue> |
getIssuesByProjectId(Integer projectId,
int status) |
|
List<Issue> |
getIssuesCreatedByUser(Integer userId) |
|
List<Issue> |
getIssuesCreatedByUser(Integer userId,
boolean availableProjectsOnly) |
|
List<Issue> |
getIssuesOwnedByUser(Integer userId) |
|
List<Issue> |
getIssuesOwnedByUser(Integer userId,
boolean availableProjectsOnly) |
|
List<Issue> |
getIssuesWatchedByUser(Integer userId) |
|
List<Issue> |
getIssuesWatchedByUser(Integer userId,
boolean availableProjectsOnly) |
|
List<Issue> |
getIssuesWithSeverity(int severity) |
Returns an array of issues that are currently at the given severity.
|
List<Issue> |
getIssuesWithStatus(int status) |
Returns an array of issues that are currently at the given status.
|
List<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<Version> |
getIssueVersions(Integer issueId) |
|
IssueHistory |
getLastIssueHistory(Integer issueId) |
Returns the latest issue history entry for a particular issue.
|
Date |
getLatestIssueDateByProjectId(Integer projectId) |
|
List<Issue> |
getNextIssues(Integer issueId) |
|
Long |
getNumberIssues() |
|
int |
getOpenIssueCountByProjectId(Integer projectId) |
|
List<Issue> |
getPreviousIssues(Integer issueId) |
|
int |
getResolvedIssueCountByProjectId(Integer projectId) |
|
int |
getTotalIssueCountByProjectId(Integer projectId) |
|
List<Issue> |
getUnassignedIssues() |
|
List<Issue> |
getUnassignedIssues(boolean availableProjectsOnly) |
|
Issue |
moveIssue(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<Issue> |
searchIssues(IssueSearchQuery queryModel,
User user,
Map<Integer,Set<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<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) |
|
Issue |
systemUpdateIssue(Issue issue,
Integer userId) |
|
Issue |
updateIssue(Issue issue,
Integer userId) |
Save a modified issue to the persistence layer
|
Long getNumberIssues()
List<Issue> getIssuesWithStatus(int status)
status
- the status to search forList<Issue> getIssuesWithStatusLessThan(int status)
status
- the status to search forList<Issue> getIssuesWithSeverity(int severity)
severity
- the severity to search forList<Issue> getIssuesCreatedByUser(Integer userId, boolean availableProjectsOnly)
List<Issue> getIssuesOwnedByUser(Integer userId, boolean availableProjectsOnly)
List<Issue> getIssuesWatchedByUser(Integer userId, boolean availableProjectsOnly)
Issue createIssue(Issue issue, Integer projectId, Integer userId, Integer createdById) throws 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.ProjectException
Issue updateIssue(Issue issue, Integer userId) throws ProjectException
issue
- the changed, unsaved issue to update on persistency layeruserId
- the user-id of the changerProjectException
Issue systemUpdateIssue(Issue issue, Integer userId) throws ProjectException
ProjectException
Issue moveIssue(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<IssueField> fields)
boolean setIssueComponents(Integer issueId, HashSet<Integer> componentIds, Integer userId)
boolean setIssueVersions(Integer issueId, HashSet<Integer> versionIds, Integer userId)
boolean addIssueHistory(IssueHistory history)
boolean addIssueRelation(Integer issueId, Integer relatedIssueId, IssueRelation.Type relationType, Integer userId)
boolean addIssueAttachment(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)
IssueRelation getIssueRelation(Integer relationId)
List<IssueActivity> getIssueActivity(Integer issueId)
List<IssueActivity> getIssueActivity(Integer issueId, boolean notificationSent)
List<IssueAttachment> getAllIssueAttachments()
Long getAllIssueAttachmentSize()
Long getAllIssueAttachmentCount()
IssueAttachment getIssueAttachment(Integer attachmentId)
byte[] getIssueAttachmentData(Integer attachmentId)
attachmentId
- the id of the attachment to obtain the data forList<IssueAttachment> getIssueAttachments(Integer issueId)
int getIssueAttachmentCount(Integer issueId)
IssueHistory getLastIssueHistory(Integer issueId)
issueId
- the id of the issue to return the history entry for.List<IssueHistory> getIssueHistory(Integer issueId)
int getOpenIssueCountByProjectId(Integer projectId)
int getResolvedIssueCountByProjectId(Integer projectId)
int getTotalIssueCountByProjectId(Integer projectId)
List<Issue> searchIssues(IssueSearchQuery queryModel, User user, Map<Integer,Set<PermissionType>> userPermissions) throws IssueSearchException
IssueSearchException
Copyright © 2002–2019 itracker. All rights reserved.