|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChangeHistoryManager
Manages the change history of issues. TODO: expand this interface to include the functionality from ChangeLogUtils
Method Summary | |
---|---|
Map<String,String> |
findAllPossibleValues(String field)
Find a map of all names ever used in the change history. |
Issue |
findMovedIssue(String originalKey)
Returns an issue that has been moved by searching the change history of the original issue key for an updated issue key. |
Collection<Issue> |
findUserHistory(com.atlassian.crowd.embedded.api.User remoteUser,
Collection<String> usernames,
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. |
Collection<Issue> |
findUserHistory(User remoteUser,
Collection<String> usernames,
Collection<Project> projects,
int maxResults)
Deprecated. Please use findUserHistory(com.atlassian.crowd.embedded.api.User, java.util.Collection, java.util.Collection, int) instead. Since v4.3 |
Collection<Issue> |
findUserHistory(com.atlassian.crowd.embedded.api.User remoteUser,
Collection<String> usernames,
int maxResults)
Find a list of issues that the given users have acted on. |
Collection<Issue> |
findUserHistory(User remoteUser,
Collection<String> usernames,
int maxResults)
Deprecated. Please use findUserHistory(com.atlassian.crowd.embedded.api.User, java.util.Collection, int) instead. Since v4.3 |
List<ChangeHistoryItem> |
getAllChangeItems(Issue issue)
Returns a List of ChangeHistoryItem 's for the given issue |
List<ChangeHistory> |
getChangeHistories(Issue issue)
Returns a List of ChangeHistory entities |
List<ChangeHistory> |
getChangeHistoriesForUser(Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser)
Returns a List of ChangeHistory entities for the given issue. |
List<ChangeHistory> |
getChangeHistoriesForUser(Issue issue,
User remoteUser)
Deprecated. Please use getChangeHistoriesForUser(com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User) instead. Since v4.3 |
List<ChangeItemBean> |
getChangeItemsForField(Issue issue,
String changeItemFieldName)
Returns a List of ChangeItemBean's for the given issue which also are for the provided changeItemFieldName (i.e. |
Collection<String> |
getPreviousIssueKeys(Long issueId)
Returns the same as getPreviousIssueKeys(String) but is slightly more efficient since no lookup of the
issue id needs to be performed. |
Collection<String> |
getPreviousIssueKeys(String issueKey)
Given an issue key, this method returns a list of previous issue keys this issue was moved from. |
void |
removeAllChangeItems(Issue issue)
Remove all change items associated with an issue. |
Method Detail |
---|
List<ChangeHistory> getChangeHistories(Issue issue)
issue
- the issue.
List<ChangeHistory> getChangeHistoriesForUser(Issue issue, com.atlassian.crowd.embedded.api.User remoteUser)
issue
- the issue.remoteUser
- the user who is asking.
List<ChangeHistory> getChangeHistoriesForUser(Issue issue, User remoteUser)
getChangeHistoriesForUser(com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User)
instead. Since v4.3
issue
- the issue.remoteUser
- the user who is asking.
List<ChangeItemBean> getChangeItemsForField(Issue issue, String changeItemFieldName)
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.
List<ChangeHistoryItem> getAllChangeItems(Issue issue)
ChangeHistoryItem
's for the given issue
issue
- the issue
Issue findMovedIssue(String originalKey) throws org.ofbiz.core.entity.GenericEntityException
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 occursCollection<String> getPreviousIssueKeys(String issueKey)
issueKey
- The current issue key.
Collection<String> getPreviousIssueKeys(Long issueId)
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.
issueId
- The id of the issue being looked up.
Collection<Issue> findUserHistory(com.atlassian.crowd.embedded.api.User remoteUser, Collection<String> usernames, int maxResults)
remoteUser
- The user executing this request.usernames
- The users to find the history formaxResults
- The maxmimum number of issues to return
Collection<Issue> findUserHistory(User remoteUser, Collection<String> usernames, int maxResults)
findUserHistory(com.atlassian.crowd.embedded.api.User, java.util.Collection, int)
instead. Since v4.3
remoteUser
- The user executing this request.usernames
- The users to find the history formaxResults
- The maxmimum number of issues to return
Collection<Issue> findUserHistory(com.atlassian.crowd.embedded.api.User remoteUser, Collection<String> usernames, Collection<Project> projects, int maxResults)
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
Collection<Issue> findUserHistory(User remoteUser, Collection<String> usernames, Collection<Project> projects, int maxResults)
findUserHistory(com.atlassian.crowd.embedded.api.User, java.util.Collection, java.util.Collection, int)
instead. Since v4.3
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
Map<String,String> findAllPossibleValues(String field)
field
- The field name.
void removeAllChangeItems(Issue issue)
issue
- affected issue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |