Package org.nuxeo.ecm.quota
Class QuotaStatsListener
- java.lang.Object
-
- org.nuxeo.ecm.quota.QuotaStatsListener
-
- All Implemented Interfaces:
EventListener
public class QuotaStatsListener extends Object implements EventListener
Listener handling default events to update statistics through theQuotaStatsService.- Since:
- 5.5
- Author:
- Thomas Roger
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>EVENTS_TO_HANDLE
-
Constructor Summary
Constructors Constructor Description QuotaStatsListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleEvent(Event event)Handle the given event.protected booleanisTrashOpEvent(DocumentEventContext eventContext)
-
-
-
Field Detail
-
EVENTS_TO_HANDLE
public static final Set<String> EVENTS_TO_HANDLE
-
-
Constructor Detail
-
QuotaStatsListener
public QuotaStatsListener()
-
-
Method Detail
-
handleEvent
public void handleEvent(Event event)
Description copied from interface:EventListenerHandle the given event. The listener can cancel the event by callingEvent.cancel()- Specified by:
handleEventin interfaceEventListener- Parameters:
event- the event
-
isTrashOpEvent
protected boolean isTrashOpEvent(DocumentEventContext eventContext)
-
-