|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.managers.DefaultIssueManager
Constructor Summary | |
DefaultIssueManager(WorkflowManager workflowManager,
com.atlassian.core.ofbiz.association.AssociationManager associationManager,
TextAnalyzer textAnalyzer)
|
Method Summary | |
org.ofbiz.core.entity.GenericValue |
createIssue(String remoteUserName,
Map fields)
This method is here because this is a logical place for the "createIssue" method to be. |
org.ofbiz.core.entity.GenericValue |
createIssue(User remoteUser,
Issue issue)
|
org.ofbiz.core.entity.GenericValue |
createIssue(User remoteUser,
Map fields)
This function creates an issue in Jira. |
List |
execute(SearchRequest searchRequest,
User searcher)
Deprecated. Please use SearchProvider.search(SearchRequest, com.opensymphony.user.User, com.atlassian.jira.web.bean.PagerFilter)
instead, which returns Issue s. |
List |
getEntitiesByIssue(String relationName,
org.ofbiz.core.entity.GenericValue issue)
Get a list of entities (versions, components etc) related to this issue. |
List |
getEntitiesByIssueObject(String relationName,
Issue issue)
Get a list of entities (versions, components etc) related to this issue. |
org.ofbiz.core.entity.GenericValue |
getIssue(Long id)
|
org.ofbiz.core.entity.GenericValue |
getIssue(String key)
Retrieves the issue as a GenericValue with the given key. |
org.ofbiz.core.entity.GenericValue |
getIssueByWorkflow(Long wfid)
|
Collection |
getIssueIdsForProject(Long projectId)
Retrieve a collection of all issue ids that belong to a given project. |
MutableIssue |
getIssueObject(Long id)
|
MutableIssue |
getIssueObject(String key)
Retrieves the Issue that has the given key. |
List |
getIssues(Collection ids)
Get issues with the following ids. |
List |
getIssuesByEntity(String relationName,
org.ofbiz.core.entity.GenericValue entity)
Get a list of issues related to an entity (version, component etc). |
List |
getIssueWatchers(org.ofbiz.core.entity.GenericValue issue)
Return a list of users that are watching an issue. |
List |
getIssueWatchers(Issue issue)
|
List |
getProjectIssues(org.ofbiz.core.entity.GenericValue project)
Get all the issues for a given project. |
List |
getVotedIssues(User user)
Retrieves all the issues a user has voted for. |
List |
getWatchedIssues(User user)
Get a list of issues that the user is watching |
boolean |
isEditable(Issue issue)
Returns whether the issue can be edited. |
void |
notifyTrackbacks(org.ofbiz.core.entity.GenericValue issue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultIssueManager(WorkflowManager workflowManager, com.atlassian.core.ofbiz.association.AssociationManager associationManager, TextAnalyzer textAnalyzer)
Method Detail |
public org.ofbiz.core.entity.GenericValue getIssue(Long id) throws DataAccessException
getIssue
in interface IssueManager
DataAccessException
public org.ofbiz.core.entity.GenericValue getIssue(String key) throws org.ofbiz.core.entity.GenericEntityException
IssueManager
GenericValue
with the given key.
getIssue
in interface IssueManager
key
- the issue key.
GenericValue
.
org.ofbiz.core.entity.GenericEntityException
- if there is a problem getting the datapublic List getIssues(Collection ids)
IssueManager
getIssues
in interface IssueManager
public Collection getIssueIdsForProject(Long projectId) throws org.ofbiz.core.entity.GenericEntityException
getIssueIdsForProject
in interface IssueManager
projectId
- the id of the project for which to retrieve all issue ids
org.ofbiz.core.entity.GenericEntityException
public org.ofbiz.core.entity.GenericValue getIssueByWorkflow(Long wfid) throws org.ofbiz.core.entity.GenericEntityException
getIssueByWorkflow
in interface IssueManager
org.ofbiz.core.entity.GenericEntityException
public MutableIssue getIssueObject(Long id) throws DataAccessException
getIssueObject
in interface IssueManager
DataAccessException
public MutableIssue getIssueObject(String key) throws DataAccessException
IssueManager
Issue
that has the given key.
getIssueObject
in interface IssueManager
key
- the key.
DataAccessException
- if a matching issue cannot be found.public List getEntitiesByIssue(String relationName, org.ofbiz.core.entity.GenericValue issue) throws org.ofbiz.core.entity.GenericEntityException
IssueManager
getEntitiesByIssue
in interface IssueManager
relationName
- A IssueRelationConstants
string indicating some issue relationissue
- Issue to consider
GenericValue
s associated with the issue.
org.ofbiz.core.entity.GenericEntityException
public List getEntitiesByIssueObject(String relationName, Issue issue) throws org.ofbiz.core.entity.GenericEntityException
IssueManager
getEntitiesByIssueObject
in interface IssueManager
relationName
- A IssueRelationConstants
string indicating some issue relationissue
- Issue to consider
GenericValue
s associated with the issue.
org.ofbiz.core.entity.GenericEntityException
public List getIssuesByEntity(String relationName, org.ofbiz.core.entity.GenericValue entity) throws org.ofbiz.core.entity.GenericEntityException
IssueManager
getIssuesByEntity
in interface IssueManager
relationName
- A IssueRelationConstants
string indicating some relation of entityentity
- The entity related to the issues we're after
GenericValue
s associated with an entity.
org.ofbiz.core.entity.GenericEntityException
public org.ofbiz.core.entity.GenericValue createIssue(User remoteUser, Map fields) throws CreateException
createIssue
in interface IssueManager
remoteUser
- User that is creating this issuefields
- see below
System.currentTimeMillis()
System.currentTimeMillis()
CreateException
IssueCreateFunction
public org.ofbiz.core.entity.GenericValue createIssue(User remoteUser, Issue issue) throws CreateException
createIssue
in interface IssueManager
CreateException
public List getProjectIssues(org.ofbiz.core.entity.GenericValue project) throws org.ofbiz.core.entity.GenericEntityException
IssueManager
getProjectIssues
in interface IssueManager
GenericValue
objects
org.ofbiz.core.entity.GenericEntityException
public boolean isEditable(Issue issue)
IssueManager
isEditable
in interface IssueManager
public org.ofbiz.core.entity.GenericValue createIssue(String remoteUserName, Map fields) throws CreateException
WorkflowManager
to create the issue
createIssue
in interface IssueManager
remoteUserName
- the user who is creating the issuefields
- issue's attribute's
CreateException
createIssue(com.opensymphony.user.User, java.util.Map)
public void notifyTrackbacks(org.ofbiz.core.entity.GenericValue issue)
public List getVotedIssues(User user) throws org.ofbiz.core.entity.GenericEntityException, EntityNotFoundException
getVotedIssues
in interface IssueManager
user
- The user that has voted
org.ofbiz.core.entity.GenericEntityException
EntityNotFoundException
public List getIssueWatchers(org.ofbiz.core.entity.GenericValue issue) throws org.ofbiz.core.entity.GenericEntityException, EntityNotFoundException
getIssueWatchers
in interface IssueManager
issue
- The issue
org.ofbiz.core.entity.GenericEntityException
EntityNotFoundException
public List getIssueWatchers(Issue issue) throws org.ofbiz.core.entity.GenericEntityException, EntityNotFoundException
getIssueWatchers
in interface IssueManager
org.ofbiz.core.entity.GenericEntityException
EntityNotFoundException
public List getWatchedIssues(User user) throws org.ofbiz.core.entity.GenericEntityException, EntityNotFoundException
IssueManager
getWatchedIssues
in interface IssueManager
Issue
objects
org.ofbiz.core.entity.GenericEntityException
EntityNotFoundException
public List execute(SearchRequest searchRequest, User searcher) throws SearchException
SearchProvider.search(SearchRequest, com.opensymphony.user.User, com.atlassian.jira.web.bean.PagerFilter)
instead, which returns Issue
s.
execute
in interface IssueManager
searchRequest
- object to be used to search forsearcher
- User who is running the search. Make sure this user has permissions to see the issues you want!
SearchException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |