|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.issue.search.SearchRequestManagerImpl
Field Summary | |
(package private) CustomFieldManager |
customFieldManager
|
Constructor Summary | |
SearchRequestManagerImpl(OfBizDelegator delegator,
PermissionManager permissionManager,
ProjectManager projectManager,
CustomFieldManager customFieldManager,
IssueSearcherManager issueSearcherManager,
ColumnLayoutManager columnLayoutManager,
SubscriptionManager SubscriptionManager)
|
Method Summary | |
SearchRequest |
create(SearchRequest oldSearchRequest,
User searchUser,
FieldValuesHolder fieldValuesHolder,
SearchContext searchContext)
Takes a user and a FieldValuesHolder of parameters that are used to create a object representation of
the search request. |
void |
createSearchSorts(SearchRequest searchRequest,
Map params)
|
SearchRequest |
getRequest(User searcher,
Long id)
Find a search request given the searcher and the search request ID. |
SearchRequest |
getRequest(User author,
String name,
User searcher)
Find a search request given the author and the request name. |
List |
getRequests()
Retrieves all the SearchRequest GenericValues |
Collection |
getRequests(User author)
Retrieves all the SearchRequest GenericValues from a particular user |
SearchRequest |
getSearchRequest(User searcher,
Long id)
Return the search request as stored in the database |
List |
getVisibleRequests(User user)
Return a list of all search requests visible to a given user. |
boolean |
isRequestPrivate(User searcher,
Long id)
Determine whether the search request is a private filter to the searcher |
SearchRequest |
loadByMap(Map fields,
User searcher)
|
void |
remove(Long id)
Removes the SearchRequest GenericValue from the database based on its id |
void |
removeAllFilters(org.ofbiz.core.entity.GenericValue project)
|
void |
removeAllFilters(User author)
|
org.ofbiz.core.entity.GenericValue |
save(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 |
org.ofbiz.core.entity.GenericValue |
update(SearchRequest request)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
final CustomFieldManager customFieldManager
Constructor Detail |
public SearchRequestManagerImpl(OfBizDelegator delegator, PermissionManager permissionManager, ProjectManager projectManager, CustomFieldManager customFieldManager, IssueSearcherManager issueSearcherManager, ColumnLayoutManager columnLayoutManager, SubscriptionManager SubscriptionManager)
Method Detail |
public SearchRequest create(SearchRequest oldSearchRequest, User searchUser, FieldValuesHolder fieldValuesHolder, SearchContext searchContext)
FieldValuesHolder
of parameters that are used to create a object representation of
the search request.
create
in interface SearchRequestManager
searchUser
- The user that is searchingfieldValuesHolder
- parameters to search for. Must not be nullsearchContext
- the search context. Used to determined available searchers. If it's null, a Global search context will be usedpublic void createSearchSorts(SearchRequest searchRequest, Map params)
createSearchSorts
in interface SearchRequestManager
public List getRequests() throws org.ofbiz.core.entity.GenericEntityException
getRequests
in interface SearchRequestManager
org.ofbiz.core.entity.GenericEntityException
public Collection getRequests(User author)
getRequests
in interface SearchRequestManager
author
- to retrieve all the SearchRequests for
getVisibleRequests(com.opensymphony.user.User)
public SearchRequest getRequest(User author, String name, User searcher) throws org.ofbiz.core.entity.GenericEntityException
getRequest
in interface SearchRequestManager
org.ofbiz.core.entity.GenericEntityException
- If any exceptions occur finding the requestpublic SearchRequest getRequest(User searcher, Long id)
getRequest
in interface SearchRequestManager
DataAccessException
- If any exceptions occur finding the requestpublic SearchRequest getSearchRequest(User searcher, Long id)
getSearchRequest
in interface SearchRequestManager
public boolean isRequestPrivate(User searcher, Long id)
isRequestPrivate
in interface SearchRequestManager
public SearchRequest loadByMap(Map fields, User searcher) throws org.ofbiz.core.entity.GenericEntityException
fields
-
org.ofbiz.core.entity.GenericEntityException
public List getVisibleRequests(User user) throws org.ofbiz.core.entity.GenericEntityException
getVisibleRequests
in interface SearchRequestManager
user
- The user to find search requests for
org.ofbiz.core.entity.GenericEntityException
public org.ofbiz.core.entity.GenericValue save(SearchRequest request) throws org.ofbiz.core.entity.GenericEntityException
save
in interface SearchRequestManager
request
- SearchResult that should be persisted
org.ofbiz.core.entity.GenericEntityException
public org.ofbiz.core.entity.GenericValue update(SearchRequest request) throws org.ofbiz.core.entity.GenericEntityException
update
in interface SearchRequestManager
org.ofbiz.core.entity.GenericEntityException
public void remove(Long id) throws SearchException
remove
in interface SearchRequestManager
id
- of the search request to be removed from storage
SearchException
public void removeAllFilters(User author) throws SearchException
removeAllFilters
in interface SearchRequestManager
SearchException
public void removeAllFilters(org.ofbiz.core.entity.GenericValue project) throws SearchException
removeAllFilters
in interface SearchRequestManager
SearchException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |