Class InsertUserServiceCachePolicy
java.lang.Object
org.ametys.web.cache.pageelement.AbstractSimplePageElementCachePolicy
org.ametys.plugins.userdirectory.cachepolicy.InsertUserServiceCachePolicy
- All Implemented Interfaces:
PageElementCachePolicy
,Serviceable
public class InsertUserServiceCachePolicy
extends AbstractSimplePageElementCachePolicy
implements Serviceable
PageElementCachePolicy
for the insert user service.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.web.cache.pageelement.PageElementCachePolicy
PageElementCachePolicy.PolicyResult
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_getRemovingCacheEventIds
(String workspace) Returns all event ids for which the cache should be removed.protected boolean
Checks if the event is supported.Returns the types of the associated page elements.void
service
(ServiceManager manager) Methods inherited from class org.ametys.web.cache.pageelement.AbstractSimplePageElementCachePolicy
shouldClearCache, shouldClearCache
-
Field Details
-
SERVICE_INSERT_USER_ID
The insert user service ID.- See Also:
-
-
Constructor Details
-
InsertUserServiceCachePolicy
public InsertUserServiceCachePolicy()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getPageElementTypes
Description copied from interface:PageElementCachePolicy
Returns the types of the associated page elements.- Specified by:
getPageElementTypes
in interfacePageElementCachePolicy
- Returns:
- the types of the associated page elements.
-
_supports
Description copied from class:AbstractSimplePageElementCachePolicy
Checks if the event is supported.- Overrides:
_supports
in classAbstractSimplePageElementCachePolicy
- Parameters:
event
- The eventworkspace
- The JCR workspace.- Returns:
- If true, the cache should be clear
-
_getRemovingCacheEventIds
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.
-