public class BridgeTrashService extends AbstractTrashService
AbstractTrashService.PathComparatorTrashService.Feature| Modifier and Type | Field and Description |
|---|---|
protected TrashService |
first |
protected TrashService |
second |
COLLISION_PATTERN, TRASHED_PATTERN, TRASHED_QUERYDISABLE_TRASH_RENAMING, DOCUMENT_TRASHED, DOCUMENT_UNTRASHED| Constructor and Description |
|---|
BridgeTrashService(TrashService first,
TrashService second) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasFeature(TrashService.Feature feature)
Checks if a feature is available.
|
boolean |
isTrashed(CoreSession session,
DocumentRef doc) |
void |
trashDocuments(List<DocumentModel> docs)
Moves documents to the trash.
|
Set<DocumentRef> |
undeleteDocuments(List<DocumentModel> docs)
Undeletes documents (and ancestors if needed to make them visible).
|
canDelete, canPurgeOrUntrash, checkDeletePermOnParents, folderAllowsDelete, getAboveDocument, getAboveDocument, getDocumentLocker, getDocuments, getInfo, getTrashInfo, mangleName, notifyEvent, notifyEvent, purgeDocuments, purgeDocumentsUnder, underOneOf, unmangleName, untrashDocumentsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanPurgeOrUndeletecanPurgeOrUntrash, trashDocument, untrashDocumentprotected final TrashService first
protected final TrashService second
public BridgeTrashService(TrashService first, TrashService second)
public boolean isTrashed(CoreSession session, DocumentRef doc)
DocumentRef is trashed.public void trashDocuments(List<DocumentModel> docs)
TrashServiceDo nothing if the document current state is trashed.
Proxies are removed.
Since 10.3, sublevels are trashed asynchronously using BAF.
docs - the documents to trashpublic Set<DocumentRef> undeleteDocuments(List<DocumentModel> docs)
TrashServiceAlso fires async events to untrash the children.
docs - the documents to undeletepublic boolean hasFeature(TrashService.Feature feature)
TrashServiceCopyright © 2019 Nuxeo. All rights reserved.