|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.changehistory.DefaultChangeHistoryManager
public class DefaultChangeHistoryManager
Constructor Summary | |
---|---|
DefaultChangeHistoryManager(IssueManager issueManager,
OfBizDelegator ofBizDelegator,
PermissionManager permissionManager,
SearchProvider searchProvider)
|
Method Summary | |
---|---|
Issue |
findMovedIssue(java.lang.String originalKey)
Returns an issue that has been moved by searching the change history of the original issue key for an updated issue key. |
java.util.Collection<Issue> |
findUserHistory(com.opensymphony.user.User remoteUser,
java.util.Collection<java.lang.String> usernames,
java.util.Collection<Project> projects,
int maxResults)
Find a list of issues that the given users have acted on with the option to limit the projects included in the search. |
java.util.Collection<Issue> |
findUserHistory(com.opensymphony.user.User remoteUser,
java.util.Collection<java.lang.String> usernames,
int maxResults)
Find a list of issues that the given users have acted on. |
java.util.List<ChangeHistory> |
getChangeHistoriesForUser(Issue issue,
com.opensymphony.user.User remoteUser)
Returns a List of GenericValue ChangeGroup entities for the given issue. |
java.util.List<ChangeItemBean> |
getChangeItemsForField(Issue issue,
java.lang.String changeItemFieldName)
Returns a List of ChangeItemBean's for the given issue which also are for the provided changeItemFieldName (i.e. |
java.util.Collection<java.lang.String> |
getPreviousIssueKeys(java.lang.Long issueId)
Returns the same as ChangeHistoryManager.getPreviousIssueKeys(String) but is slightly more efficient since no lookup of the
issue id needs to be performed. |
java.util.Collection<java.lang.String> |
getPreviousIssueKeys(java.lang.String issueKey)
Given an issue key, this method returns a list of previous issue keys this issue was moved from. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultChangeHistoryManager(IssueManager issueManager, OfBizDelegator ofBizDelegator, PermissionManager permissionManager, SearchProvider searchProvider)
Method Detail |
---|
public java.util.List<ChangeHistory> getChangeHistoriesForUser(Issue issue, com.opensymphony.user.User remoteUser)
ChangeHistoryManager
getChangeHistoriesForUser
in interface ChangeHistoryManager
issue
- the issue.remoteUser
- the user who is asking.
public java.util.List<ChangeItemBean> getChangeItemsForField(Issue issue, java.lang.String changeItemFieldName)
ChangeHistoryManager
getChangeItemsForField
in interface ChangeHistoryManager
issue
- the issue the change items are associated with, not null.changeItemFieldName
- the field name the change item is stored under, not null or empty.
public Issue findMovedIssue(java.lang.String originalKey) throws org.ofbiz.core.entity.GenericEntityException
ChangeHistoryManager
findMovedIssue
in interface ChangeHistoryManager
originalKey
- the original key of an issue that has since been moved (moving between projects assigns a new
key to an issue)
Issue
object
org.ofbiz.core.entity.GenericEntityException
- if an unexpected error occurspublic java.util.Collection<java.lang.String> getPreviousIssueKeys(java.lang.Long issueId)
ChangeHistoryManager
ChangeHistoryManager.getPreviousIssueKeys(String)
but is slightly more efficient since no lookup of the
issue id needs to be performed. If you have an issue object available with the issue's id use this method.
getPreviousIssueKeys
in interface ChangeHistoryManager
issueId
- The id of the issue being looked up.
public java.util.Collection<java.lang.String> getPreviousIssueKeys(java.lang.String issueKey)
ChangeHistoryManager
getPreviousIssueKeys
in interface ChangeHistoryManager
issueKey
- The current issue key.
public java.util.Collection<Issue> findUserHistory(com.opensymphony.user.User remoteUser, java.util.Collection<java.lang.String> usernames, int maxResults)
ChangeHistoryManager
findUserHistory
in interface ChangeHistoryManager
remoteUser
- The user executing this request.usernames
- The users to find the history formaxResults
- The maxmimum number of issues to return
public java.util.Collection<Issue> findUserHistory(com.opensymphony.user.User remoteUser, java.util.Collection<java.lang.String> usernames, java.util.Collection<Project> projects, int maxResults)
ChangeHistoryManager
findUserHistory
in interface ChangeHistoryManager
remoteUser
- The user executing this request.usernames
- The users to find the history forprojects
- The projects to include issues frommaxResults
- The maxmimum number of issues to return
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |