|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.managers.CachingIssueManager
public class CachingIssueManager
Field Summary | |
---|---|
(package private) IssueManager |
decoratedIssueManager
|
Constructor Summary | |
---|---|
CachingIssueManager(IssueManager decoratedIssueManager)
|
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)
Takes a search request object and returns a list of issues that match the search request |
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. |
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 a list of issue generic values by 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 watchers for a particular 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)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
IssueManager decoratedIssueManager
Constructor Detail |
---|
public CachingIssueManager(IssueManager decoratedIssueManager)
Method Detail |
---|
public org.ofbiz.core.entity.GenericValue getIssue(Long id) throws DataAccessException
IssueManager
getIssue
in interface IssueManager
GenericValue
.
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)
getIssues
in interface IssueManager
GenericValue
spublic org.ofbiz.core.entity.GenericValue getIssueByWorkflow(Long wfid)
IssueManager
GenericValue
given a workflow ID. This is used when transitioning
through the various steps of a workflow.
getIssueByWorkflow
in interface IssueManager
GenericValue
.public MutableIssue getIssueObject(Long id) throws DataAccessException
IssueManager
getIssueObject
in interface IssueManager
MutableIssue
DataAccessException
public MutableIssue getIssueObject(String key) throws DataAccessException
IssueManager
Issue
that has the given key.
getIssueObject
in interface IssueManager
key
- the key.
MutableIssue
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(String remoteUserName, Map fields) throws CreateException
IssueManager
createIssue
in interface IssueManager
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
IssueManager
createIssue
in interface IssueManager
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
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
GenericValue
objects
org.ofbiz.core.entity.GenericEntityException
public boolean isEditable(Issue issue)
IssueManager
isEditable
in interface IssueManager
public Collection getIssueIdsForProject(Long projectId) throws org.ofbiz.core.entity.GenericEntityException
IssueManager
getIssueIdsForProject
in interface IssueManager
org.ofbiz.core.entity.GenericEntityException
public List getVotedIssues(User user) throws org.ofbiz.core.entity.GenericEntityException, EntityNotFoundException
IssueManager
getVotedIssues
in interface IssueManager
Issue
objects
org.ofbiz.core.entity.GenericEntityException
EntityNotFoundException
public List getIssueWatchers(org.ofbiz.core.entity.GenericValue issue) throws org.ofbiz.core.entity.GenericEntityException, EntityNotFoundException
IssueManager
getIssueWatchers
in interface IssueManager
User
s.
org.ofbiz.core.entity.GenericEntityException
EntityNotFoundException
public List getIssueWatchers(Issue issue) throws org.ofbiz.core.entity.GenericEntityException, EntityNotFoundException
IssueManager
getIssueWatchers
in interface IssueManager
User
s.
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
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 |