Package org.ametys.web.frontoffice
Class SearchPagesServiceCachePolicy
- java.lang.Object
-
- org.ametys.web.cache.pageelement.AbstractSimplePageElementCachePolicy
-
- org.ametys.web.frontoffice.SearchPagesServiceCachePolicy
-
- All Implemented Interfaces:
PageElementCachePolicy
public class SearchPagesServiceCachePolicy extends AbstractSimplePageElementCachePolicy
PageElementCachePolicy
for the front search service.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.web.cache.pageelement.PageElementCachePolicy
PageElementCachePolicy.PolicyResult
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_FRONT_SEARCH_ID
The front search service ID.
-
Constructor Summary
Constructors Constructor Description SearchPagesServiceCachePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>
_getRemovingCacheEventIds(String workspace)
Returns all event ids for which the cache should be removed.Set<String>
getPageElementTypes()
Returns the types of the associated page elements.-
Methods inherited from class org.ametys.web.cache.pageelement.AbstractSimplePageElementCachePolicy
_supports, shouldClearCache, shouldClearCache
-
-
-
-
Field Detail
-
SERVICE_FRONT_SEARCH_ID
public static final String SERVICE_FRONT_SEARCH_ID
The front search service ID.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SearchPagesServiceCachePolicy
public SearchPagesServiceCachePolicy()
-
-
Method Detail
-
getPageElementTypes
public Set<String> getPageElementTypes()
Description copied from interface:PageElementCachePolicy
Returns the types of the associated page elements.- Returns:
- the types of the associated page elements.
-
_getRemovingCacheEventIds
protected List<String> _getRemovingCacheEventIds(String workspace)
Description copied from class:AbstractSimplePageElementCachePolicy
Returns all event ids for which the cache should be removed.- Specified by:
_getRemovingCacheEventIds
in classAbstractSimplePageElementCachePolicy
- Parameters:
workspace
- the current JCR workspace.- Returns:
- all event ids for which the cache should be removed.
-
-