public class PropertyTrashService extends AbstractTrashService
TrashService implementation relying on ecm:isTrashed.AbstractTrashService.PathComparatorTrashService.Feature| Modifier and Type | Field and Description | 
|---|---|
static String | 
SYSPROP_IS_TRASHED  | 
COLLISION_PATTERN, TRASHED_PATTERN, TRASHED_QUERYDISABLE_TRASH_RENAMING, DOCUMENT_TRASHED, DOCUMENT_UNTRASHED| Constructor and Description | 
|---|
PropertyTrashService()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
doTrashDocument(DocumentModel doc)  | 
protected Set<DocumentRef> | 
doUntrashDocument(DocumentModel doc,
                 boolean processChildren)  | 
boolean | 
hasFeature(TrashService.Feature feature)
Checks if a feature is available. 
 | 
boolean | 
isTrashed(CoreSession session,
         DocumentRef docRef)  | 
protected void | 
trashDescendants(DocumentModel model,
                Boolean value)  | 
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, untrashDocumentpublic static final String SYSPROP_IS_TRASHED
public PropertyTrashService()
public boolean isTrashed(CoreSession session, DocumentRef docRef)
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 trashprotected void doTrashDocument(DocumentModel doc)
public Set<DocumentRef> undeleteDocuments(List<DocumentModel> docs)
TrashServiceAlso fires async events to untrash the children.
docs - the documents to undeleteprotected Set<DocumentRef> doUntrashDocument(DocumentModel doc, boolean processChildren)
protected void trashDescendants(DocumentModel model, Boolean value)
public boolean hasFeature(TrashService.Feature feature)
TrashServiceCopyright © 2019 Nuxeo. All rights reserved.