|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.search.SearchRequestManagerImpl
Field Summary | |
(package private) CustomFieldManager |
customFieldManager
|
(package private) static SearchProvider |
provider
|
Constructor Summary | |
SearchRequestManagerImpl(OfBizDelegator delegator,
PermissionManager permissionManager,
ProjectManager projectManager,
CustomFieldManager customFieldManager)
|
Method Summary | |
SearchRequest |
create(SearchRequest oldSearchRequest,
com.opensymphony.user.User searcher,
java.util.Map params)
Takes a user and a Map of parameters that are used to create a object representation of the search request. |
void |
createSearchSorts(SearchRequest searchRequest,
java.util.Map params)
|
java.util.Map |
getCustomFieldParams(java.util.Map params)
Return a map of CustomFieldId (Long) -> CustomFieldParams |
SearchRequest |
getRequest(com.opensymphony.user.User searcher,
java.lang.Long id)
Find a search request given the searcher and the search request ID. |
SearchRequest |
getRequest(com.opensymphony.user.User author,
java.lang.String name,
com.opensymphony.user.User searcher)
Find a search request given the author and the request name. |
java.util.List |
getRequests()
Retrieves all the SearchRequest GenericValues |
java.util.Collection |
getRequests(com.opensymphony.user.User author)
Retrieves all the SearchRequest GenericValues from a particular user |
java.util.List |
getVisibleRequests(com.opensymphony.user.User user)
Return a list of all search requests visible to a given user. |
SearchRequest |
loadByMap(java.util.Map fields,
com.opensymphony.user.User searcher)
|
void |
remove(com.opensymphony.user.User author,
java.lang.Long id)
Removes the SearchRequest GenericValue from the database based on its id and User |
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
static SearchProvider provider
Constructor Detail |
public SearchRequestManagerImpl(OfBizDelegator delegator, PermissionManager permissionManager, ProjectManager projectManager, CustomFieldManager customFieldManager)
Method Detail |
public SearchRequest create(SearchRequest oldSearchRequest, com.opensymphony.user.User searcher, java.util.Map params)
create
in interface SearchRequestManager
searcher
- The user that is searchingparams
- The Map of parameters to search for
public java.util.Map getCustomFieldParams(java.util.Map params)
params
- A map of customField string params (eg. 'customfield_123:key1' -> 'value1')
public void createSearchSorts(SearchRequest searchRequest, java.util.Map params)
createSearchSorts
in interface SearchRequestManager
public java.util.List getRequests() throws org.ofbiz.core.entity.GenericEntityException
getRequests
in interface SearchRequestManager
org.ofbiz.core.entity.GenericEntityException
public java.util.Collection getRequests(com.opensymphony.user.User author) throws org.ofbiz.core.entity.GenericEntityException
getRequests
in interface SearchRequestManager
author
- to retrieve all the SearchRequests for
org.ofbiz.core.entity.GenericEntityException
getVisibleRequests(com.opensymphony.user.User)
public SearchRequest getRequest(com.opensymphony.user.User author, java.lang.String name, com.opensymphony.user.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(com.opensymphony.user.User searcher, java.lang.Long id) throws org.ofbiz.core.entity.GenericEntityException
getRequest
in interface SearchRequestManager
org.ofbiz.core.entity.GenericEntityException
- If any exceptions occur finding the requestpublic SearchRequest loadByMap(java.util.Map fields, com.opensymphony.user.User searcher) throws org.ofbiz.core.entity.GenericEntityException
fields
-
org.ofbiz.core.entity.GenericEntityException
public java.util.List getVisibleRequests(com.opensymphony.user.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(com.opensymphony.user.User author, java.lang.Long id) throws SearchException
remove
in interface SearchRequestManager
author
- of the SearchRequestid
- of the search request to be removed from storage
SearchException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |