|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.search.OfBizSearchRequestStore
public class OfBizSearchRequestStore
OfBiz implementation of SearchRequestStore
Constructor Summary | |
---|---|
OfBizSearchRequestStore(OfBizDelegator delegator)
|
Method Summary | |
---|---|
SearchRequest |
adjustFavouriteCount(Long searchRequestId,
int incrementValue)
Updates the favourite count of the SearchRequest in the database. |
SearchRequest |
create(SearchRequest request)
Takes a SearchRequest , user, name of search request and description and persists the XML representation
of the SearchRequest object to the database along with the rest of the details |
void |
delete(Long id)
Removes the SearchRequest GenericValue from the database based on its id |
CloseableIterable |
get(SharedEntityAccessor.RetrievalDescriptor descriptor)
Get a CloseableIterable of SearchRequests for the specified List of ids. |
CloseableIterable |
getAll()
Get a CloseableIterable of all SearchRequests in the database. |
Collection |
getAllOwnedSearchRequests(User author)
Retrieves a collection of SearchRequest objects that a user created. |
Collection |
getAllRequests()
Deprecated. loads them all into memory use getAll() instead |
SearchRequest |
getRequestByAuthorAndName(User author,
String name)
Find a search request given the author and the request name. |
SearchRequest |
getSearchRequest(Long id)
Return the search request as stored in the database |
CloseableIterable |
getSearchRequests(Group group)
Get all search requests associated with a given Group . |
CloseableIterable |
getSearchRequests(Project project)
Get all search requests associate with a given Project . |
SearchRequest |
update(SearchRequest request)
Updates an existing search request in the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OfBizSearchRequestStore(OfBizDelegator delegator)
Method Detail |
---|
public Collection getAllRequests()
getAll()
instead
SearchRequestStore
getAllRequests
in interface SearchRequestStore
public CloseableIterable get(SharedEntityAccessor.RetrievalDescriptor descriptor)
SearchRequestStore
CloseableIterable
of SearchRequests for the specified List of ids.
Make sure any CloseableIterator
constructed has its close method called after iterating.
get
in interface SearchRequestStore
descriptor
- retrieval descriptor
public CloseableIterable getAll()
SearchRequestStore
CloseableIterable
of all SearchRequests in the database.
Make sure any CloseableIterator
constructed has its close method called after iterating.
getAll
in interface SearchRequestStore
public Collection getAllOwnedSearchRequests(User author)
SearchRequestStore
getAllOwnedSearchRequests
in interface SearchRequestStore
author
- The user who created the SearchRequests
SearchRequest
that user created.public SearchRequest getRequestByAuthorAndName(User author, String name)
SearchRequestStore
getRequestByAuthorAndName
in interface SearchRequestStore
author
- Author of the SearchRequestname
- Name of the SearchRequest
public SearchRequest getSearchRequest(Long id)
SearchRequestStore
getSearchRequest
in interface SearchRequestStore
id
- Id of the SearchRequest
public SearchRequest create(SearchRequest request)
SearchRequestStore
SearchRequest
, user, name of search request and description and persists the XML representation
of the SearchRequest object to the database along with the rest of the details
create
in interface SearchRequestStore
request
- SearchResult that should be persisted
public SearchRequest update(SearchRequest request)
SearchRequestStore
update
in interface SearchRequestStore
request
- the request to persist.
SearchRequest
that was persisted to the databasepublic SearchRequest adjustFavouriteCount(Long searchRequestId, int incrementValue)
SearchRequestStore
adjustFavouriteCount
in interface SearchRequestStore
searchRequestId
- the identifier of the search request to decrease.incrementValue
- the value to increase the favourite count by. Can be a number < 0 to decrease the favourite count.
SearchRequest
.public void delete(Long id)
SearchRequestStore
delete
in interface SearchRequestStore
id
- of the search request to be removed from storagepublic CloseableIterable getSearchRequests(Project project)
SearchRequestStore
search requests
associate with a given Project
.
getSearchRequests
in interface SearchRequestStore
project
- Project that is associated with the filters
SearchRequest
that have their project set to the given projectpublic CloseableIterable getSearchRequests(Group group)
SearchRequestStore
search requests
associated with a given Group
.
getSearchRequests
in interface SearchRequestStore
group
- the group that is associated with the filters
SearchRequest
that have their project set to the given project
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |