Class SynchronousUnicityCheckListener
- java.lang.Object
-
- org.nuxeo.ecm.platform.filemanager.core.listener.AbstractUnicityChecker
-
- org.nuxeo.ecm.platform.filemanager.core.listener.SynchronousUnicityCheckListener
-
- All Implemented Interfaces:
EventListener
public class SynchronousUnicityCheckListener extends AbstractUnicityChecker implements EventListener
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.platform.filemanager.core.listener.AbstractUnicityChecker
DUPLICATED_FILE
-
-
Constructor Summary
Constructors Constructor Description SynchronousUnicityCheckListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleEvent(Event event)
Handle the given event.protected void
onDuplicatedDoc(CoreSession session, NuxeoPrincipal principal, DocumentModel newDoc, List<DocumentLocation> existingDocs, Event event)
-
Methods inherited from class org.nuxeo.ecm.platform.filemanager.core.listener.AbstractUnicityChecker
doUnicityCheck, isUnicityCheckEnabled, raiseDuplicatedFileEvent
-
-
-
-
Constructor Detail
-
SynchronousUnicityCheckListener
public SynchronousUnicityCheckListener()
-
-
Method Detail
-
handleEvent
public void handleEvent(Event event)
Description copied from interface:EventListener
Handle the given event. The listener can cancel the event by callingEvent.cancel()
- Specified by:
handleEvent
in interfaceEventListener
- Parameters:
event
- the event
-
onDuplicatedDoc
protected void onDuplicatedDoc(CoreSession session, NuxeoPrincipal principal, DocumentModel newDoc, List<DocumentLocation> existingDocs, Event event)
- Specified by:
onDuplicatedDoc
in classAbstractUnicityChecker
-
-