public class PropertyTrashService extends AbstractTrashService
TrashService
implementation relying on ecm:isTrashed
.AbstractTrashService.PathComparator
TrashService.Feature
Modifier and Type | Field and Description |
---|---|
static String |
SYSPROP_IS_TRASHED |
COLLISION_PATTERN, TRASHED_PATTERN, TRASHED_QUERY
DISABLE_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, untrashDocuments
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canPurgeOrUndelete
canPurgeOrUntrash, trashDocument, untrashDocument
public static final String SYSPROP_IS_TRASHED
public PropertyTrashService()
public boolean isTrashed(CoreSession session, DocumentRef docRef)
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 trashprotected void doTrashDocument(DocumentModel doc)
public Set<DocumentRef> undeleteDocuments(List<DocumentModel> docs)
TrashService
Also 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)
TrashService
Copyright © 2019 Nuxeo. All rights reserved.