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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
SynchronousUnicityCheckListener
public SynchronousUnicityCheckListener()
-
-
Method Details
-
handleEvent
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
-