|
||||||||||
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
public class 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)
Persists a new 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)
Retrieves an issue by its 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)
Retrieves an issue GenericValue given a workflow ID. |
long |
getIssueCountForProject(Long projectId)
Returns the number of issues that exist for the provided project id. |
Collection |
getIssueIdsForProject(Long projectId)
Retrieve a collection of all issue ids that belong to a given project. |
MutableIssue |
getIssueObject(Long id)
Retrieves an issue by id. |
MutableIssue |
getIssueObject(String key)
Retrieves the Issue that has the given key, or null if no such Issue exists. |
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)
Return a list of watchers for a particular 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 true if 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
IssueManager
getIssue
in interface IssueManager
id
- Issue ID.
GenericValue
.
DataAccessException
- if there is an error in the Data Access Layer.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
ids
- Issue IDs.
GenericValue
spublic 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
- An exception in the ofbiz Entity Engine.public long getIssueCountForProject(Long projectId)
IssueManager
getIssueCountForProject
in interface IssueManager
projectId
- identifies the project which the issues are associated with
public org.ofbiz.core.entity.GenericValue getIssueByWorkflow(Long wfid) throws org.ofbiz.core.entity.GenericEntityException
IssueManager
GenericValue
given a workflow ID. This is used when transitioning
through the various steps of a workflow.
getIssueByWorkflow
in interface IssueManager
wfid
- workflow ID.
GenericValue
.
org.ofbiz.core.entity.GenericEntityException
- An exception in the ofbiz Entity Engine.public MutableIssue getIssueObject(Long id) throws DataAccessException
IssueManager
getIssueObject
in interface IssueManager
id
- the id
MutableIssue
DataAccessException
- if there is an error in the Data Access Layer.public MutableIssue getIssueObject(String key) throws DataAccessException
IssueManager
Issue
that has the given key, or null if no such Issue exists.
This method will always return a new instance of an issue object if the issue exists.
getIssueObject
in interface IssueManager
key
- The Issue key.
MutableIssue
with the given key, or null if no such Issue exists.
DataAccessException
- if there is an error in the Data Access Layer.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
- An exception in the ofbiz Entity Engine.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
- An exception in the ofbiz Entity Engine.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
- An exception in the ofbiz Entity Engine.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
IssueManager
createIssue
in interface IssueManager
remoteUser
- Issue creatorissue
- The new issue.
CreateException
public List getProjectIssues(org.ofbiz.core.entity.GenericValue project) throws org.ofbiz.core.entity.GenericEntityException
IssueManager
getProjectIssues
in interface IssueManager
project
- the Project
GenericValue
objects
org.ofbiz.core.entity.GenericEntityException
public boolean isEditable(Issue issue)
IssueManager
true
if the issue can be edited. This is determined by looking at the workflow step the issue is in.
isEditable
in interface IssueManager
issue
- the Issue.
true
if the issue can be edited. This is determined by looking at the workflow step the issue is in.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
IssueManager
getIssueWatchers
in interface IssueManager
issue
- the Issue
User
s.
org.ofbiz.core.entity.GenericEntityException
- An exception in the ofbiz Entity Engine.
EntityNotFoundException
- Thrown when User/Group is looked up by name that does not exist.public List getWatchedIssues(User user) throws org.ofbiz.core.entity.GenericEntityException, EntityNotFoundException
IssueManager
getWatchedIssues
in interface IssueManager
user
- the User.
Issue
objects
org.ofbiz.core.entity.GenericEntityException
- An exception in the ofbiz Entity Engine.
EntityNotFoundException
- Thrown when User/Group is looked up by name that does not exist.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 |