Package fr.becpg.repo.search.impl
Class PaginatedSearchCacheImpl
java.lang.Object
fr.becpg.repo.search.impl.PaginatedSearchCacheImpl
- All Implemented Interfaces:
PaginatedSearchCache
@Service("paginatedSearchCache")
public class PaginatedSearchCacheImpl
extends Object
implements PaginatedSearchCache
PaginatedSearchCacheImpl class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) BeCPGCacheServiceprivate static final StringConstantCACHE_KEY="PaginatedSearchCache.class.getName()"private static final StringConstantCACHE_KEY_MULTI_LEVEL="PaginatedSearchCache.class.getName()+.m"{trunked} -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringScopes a query identifier to the user it was issued for.private List<org.alfresco.service.cmr.repository.NodeRef> extract(MultiLevelListData data) extract.getSearchMultiLevelResults(String queryId) getSearchMultiLevelResults.List<org.alfresco.service.cmr.repository.NodeRef> getSearchResults(String queryId) getSearchResults.storeMultiLevelSearchResults.storeSearchResults(List<org.alfresco.service.cmr.repository.NodeRef> results) storeSearchResults.
-
Field Details
-
CACHE_KEY
ConstantCACHE_KEY="PaginatedSearchCache.class.getName()" -
CACHE_KEY_MULTI_LEVEL
ConstantCACHE_KEY_MULTI_LEVEL="PaginatedSearchCache.class.getName()+.m"{trunked} -
beCPGCacheService
-
-
Constructor Details
-
PaginatedSearchCacheImpl
public PaginatedSearchCacheImpl()
-
-
Method Details
-
cacheKey
Scopes a query identifier to the user it was issued for.
The identifier travels to the client and comes back on the next page, so it must not be enough on its own to read the results back: a cached list is the outcome of a search run with one user's permissions, and it is not filtered again on the way out.- Parameters:
queryId- aStringobject- Returns:
- the cache key for the current user
-
getSearchResults
Description copied from interface:PaginatedSearchCachegetSearchResults.
- Specified by:
getSearchResultsin interfacePaginatedSearchCache- Parameters:
queryId- aStringobject.- Returns:
- a
Listobject.
-
extract
extract.
- Parameters:
data- aMultiLevelListDataobject- Returns:
- a
Listobject
-
storeSearchResults
storeSearchResults.
- Specified by:
storeSearchResultsin interfacePaginatedSearchCache- Parameters:
results- aListobject.- Returns:
- a
Stringobject.
-
getSearchMultiLevelResults
getSearchMultiLevelResults.
- Specified by:
getSearchMultiLevelResultsin interfacePaginatedSearchCache- Parameters:
queryId- aStringobject.- Returns:
- a
MultiLevelListDataobject.
-
storeMultiLevelSearchResults
storeMultiLevelSearchResults.
- Specified by:
storeMultiLevelSearchResultsin interfacePaginatedSearchCache- Parameters:
listData- aMultiLevelListDataobject.- Returns:
- a
Stringobject.
-