PropertyTrashService
instead.public class LifeCycleTrashService extends AbstractTrashService
AbstractTrashService.PathComparator
TrashService.Feature
COLLISION_PATTERN, TRASHED_PATTERN, TRASHED_QUERY
DISABLE_TRASH_RENAMING, DOCUMENT_TRASHED, DOCUMENT_UNTRASHED, IS_ALREADY_CALLED
Constructor and Description |
---|
LifeCycleTrashService()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasFeature(TrashService.Feature feature)
Deprecated.
Checks if a feature is available.
|
boolean |
isTrashed(CoreSession session,
DocumentRef docRef)
Deprecated.
|
protected void |
trashDocument(CoreSession session,
DocumentModel doc)
Deprecated.
|
void |
trashDocuments(List<DocumentModel> docs)
Deprecated.
Moves documents to the trash.
|
protected void |
undeleteAncestors(CoreSession session,
DocumentRef docRef,
Set<DocumentRef> undeleted)
Deprecated.
Undeletes ancestors of a document.
|
protected void |
undeleteDocument(CoreSession session,
DocumentModel doc)
Deprecated.
|
protected Set<DocumentRef> |
undeleteDocumentList(CoreSession session,
List<DocumentModel> docs)
Deprecated.
Undeletes a list of documents.
|
Set<DocumentRef> |
undeleteDocuments(List<DocumentModel> docs)
Deprecated.
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canPurgeOrUndelete, canPurgeOrUntrash, trashDocument, untrashDocument, untrashDocuments
public LifeCycleTrashService()
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.
Placeless documents are deleted immediately.
docs
- the documents to trashprotected void trashDocument(CoreSession session, 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> undeleteDocumentList(CoreSession session, List<DocumentModel> docs)
protected void undeleteAncestors(CoreSession session, DocumentRef docRef, Set<DocumentRef> undeleted)
protected void undeleteDocument(CoreSession session, DocumentModel doc)
public boolean hasFeature(TrashService.Feature feature)
TrashService
Copyright © 2018 Nuxeo. All rights reserved.