|
||||||||||
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
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. |
long |
getIssueCountForProject(Long projectId)
Returns the number of issues that exist for the provided project 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, or null if no such Issue exists. |
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 true if the issue can be edited. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachingIssueManager(IssueManager decoratedIssueManager)
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)
getIssues
in interface IssueManager
ids
- Issue IDs.
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
wfid
- workflow ID.
GenericValue
.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(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
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 Collection getIssueIdsForProject(Long projectId) throws org.ofbiz.core.entity.GenericEntityException
IssueManager
getIssueIdsForProject
in interface IssueManager
projectId
- Project ID.
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 List getVotedIssues(User user) throws org.ofbiz.core.entity.GenericEntityException, EntityNotFoundException
IssueManager
getVotedIssues
in interface IssueManager
user
- The user.
Issue
objects
org.ofbiz.core.entity.GenericEntityException
- An exception in the ofbiz Entity Engine.
EntityNotFoundException
- Looks like this is not actually thrown
TODO: EntityNotFoundException does not seem to be needed.public List getIssueWatchers(org.ofbiz.core.entity.GenericValue 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 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
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 |