PropertyTrashService instead.@Deprecated public class LifeCycleTrashService extends AbstractTrashService
AbstractTrashService.PathComparatorTrashService.Feature| Modifier and Type | Field and Description |
|---|---|
static String |
FROM_LIFE_CYCLE_TRASH_SERVICE
Deprecated.
Context data property for backward mechanism in
CoreSession.followTransition(DocumentModel, String). |
COLLISION_PATTERN, TRASHED_PATTERN, TRASHED_QUERYDISABLE_TRASH_RENAMING, DOCUMENT_TRASHED, DOCUMENT_UNTRASHED| 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, untrashDocumentsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanPurgeOrUndeletecanPurgeOrUntrash, trashDocument, untrashDocumentpublic static final String FROM_LIFE_CYCLE_TRASH_SERVICE
CoreSession.followTransition(DocumentModel, String).public LifeCycleTrashService()
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 trashDocument(CoreSession session, DocumentModel doc)
public Set<DocumentRef> undeleteDocuments(List<DocumentModel> docs)
TrashServiceAlso 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)
TrashServiceCopyright © 2019 Nuxeo. All rights reserved.