public class BridgeTrashService extends AbstractTrashService
AbstractTrashService.PathComparator
TrashService.Feature
Modifier and Type | Field and Description |
---|---|
protected TrashService |
first |
protected TrashService |
second |
COLLISION_PATTERN, TRASHED_PATTERN, TRASHED_QUERY
DISABLE_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, untrashDocuments
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canPurgeOrUndelete
canPurgeOrUntrash, trashDocument, untrashDocument
protected 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)
TrashService
Do 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)
TrashService
Also fires async events to untrash the children.
docs
- the documents to undeletepublic boolean hasFeature(TrashService.Feature feature)
TrashService
Copyright © 2019 Nuxeo. All rights reserved.