|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class to manage interactions with issues
Method Summary | |
org.ofbiz.core.entity.GenericValue |
createIssue(String remoteUserName,
Map fields)
Creates an issue. |
org.ofbiz.core.entity.GenericValue |
createIssue(User remoteUser,
Issue issue)
Persists a new issue. |
org.ofbiz.core.entity.GenericValue |
createIssue(User remoteUser,
Map fields)
Creates an issue. |
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)
Deprecated. Use getEntitiesByIssueObject(String, Issue) instead. |
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)
Deprecated. Use getIssueObject(Long) instead. |
org.ofbiz.core.entity.GenericValue |
getIssue(String key)
Deprecated. Use getIssueObject(String) instead. |
org.ofbiz.core.entity.GenericValue |
getIssueByWorkflow(Long wfid)
Retrieves an issue GenericValue given a workflow ID. |
Collection |
getIssueIdsForProject(Long projectId)
Returns all issue ids for a particular project. |
MutableIssue |
getIssueObject(Long id)
Retrieves an issue by 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)
Deprecated. Use getIssueWatchers(Issue) instead |
List |
getIssueWatchers(Issue issue)
Return a list of watchers for a particular issue. |
List |
getProjectIssues(org.ofbiz.core.entity.GenericValue project)
Deprecated. only used in test cases, should use a search provider instead. |
List |
getVotedIssues(User user)
Get a list of issues that the user has voted on |
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. |
Method Detail |
public org.ofbiz.core.entity.GenericValue getIssue(Long id) throws DataAccessException
getIssueObject(Long)
instead.
id
-
GenericValue
.
DataAccessException
public org.ofbiz.core.entity.GenericValue getIssue(String key) throws org.ofbiz.core.entity.GenericEntityException
getIssueObject(String)
instead.
GenericValue
with the given key.
key
- the issue key.
GenericValue
.
org.ofbiz.core.entity.GenericEntityException
- if there is a problem getting the datapublic org.ofbiz.core.entity.GenericValue getIssueByWorkflow(Long wfid) throws org.ofbiz.core.entity.GenericEntityException
GenericValue
given a workflow ID. This is used when transitioning
through the various steps of a workflow.
wfid
-
GenericValue
.
org.ofbiz.core.entity.GenericEntityException
public MutableIssue getIssueObject(Long id) throws DataAccessException
id
-
MutableIssue
DataAccessException
public MutableIssue getIssueObject(String key) throws DataAccessException
Issue
that has the given key.
key
- the key.
MutableIssue
DataAccessException
- if a matching issue cannot be found.public List getIssues(Collection ids)
ids
-
GenericValue
spublic List getVotedIssues(User user) throws org.ofbiz.core.entity.GenericEntityException, EntityNotFoundException
Issue
objects
org.ofbiz.core.entity.GenericEntityException
EntityNotFoundException
public List getIssueWatchers(org.ofbiz.core.entity.GenericValue issue) throws org.ofbiz.core.entity.GenericEntityException, EntityNotFoundException
getIssueWatchers(Issue)
instead
issue
-
User
s.
org.ofbiz.core.entity.GenericEntityException
EntityNotFoundException
public List getIssueWatchers(Issue issue) throws org.ofbiz.core.entity.GenericEntityException, EntityNotFoundException
issue
-
User
s.
org.ofbiz.core.entity.GenericEntityException
EntityNotFoundException
public List getWatchedIssues(User user) throws org.ofbiz.core.entity.GenericEntityException, EntityNotFoundException
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.
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
public List getEntitiesByIssue(String relationName, org.ofbiz.core.entity.GenericValue issue) throws org.ofbiz.core.entity.GenericEntityException
getEntitiesByIssueObject(String, Issue)
instead.
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
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
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(String remoteUserName, Map fields) throws CreateException
remoteUserName
- Issue creatorfields
- A map of the issue's immediate field values. See the Issue definition in entitymodel.xml for values.
CreateException
public org.ofbiz.core.entity.GenericValue createIssue(User remoteUser, Map fields) throws CreateException
remoteUser
- Issue creatorfields
- A map of the issue's immediate field values. See the Issue definition in entitymodel.xml for values.
CreateException
public org.ofbiz.core.entity.GenericValue createIssue(User remoteUser, Issue issue) throws CreateException
remoteUser
- Issue creatorissue
- The new issue.
CreateException
public List getProjectIssues(org.ofbiz.core.entity.GenericValue project) throws org.ofbiz.core.entity.GenericEntityException
GenericValue
objects
org.ofbiz.core.entity.GenericEntityException
public boolean isEditable(Issue issue)
public Collection getIssueIdsForProject(Long projectId) throws org.ofbiz.core.entity.GenericEntityException
projectId
-
org.ofbiz.core.entity.GenericEntityException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |