Package org.nuxeo.ecm.core.trash
Class LifeCycleTrashService
java.lang.Object
org.nuxeo.ecm.core.trash.AbstractTrashService
org.nuxeo.ecm.core.trash.LifeCycleTrashService
- All Implemented Interfaces:
TrashService,TrashService
Deprecated.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nuxeo.ecm.core.trash.AbstractTrashService
AbstractTrashService.PathComparatorNested classes/interfaces inherited from interface org.nuxeo.ecm.core.api.trash.TrashService
TrashService.Feature -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Context data property for backward mechanism inCoreSession.followTransition(DocumentModel, String).Fields inherited from class org.nuxeo.ecm.core.trash.AbstractTrashService
COLLISION_PATTERN, LEGAL_HOLD_QUERY, PATH_SEPARATOR, RETENTION_QUERY, TRASHED_PATTERN, TRASHED_QUERYFields inherited from interface org.nuxeo.ecm.core.api.trash.TrashService
ABOUT_TO_TRASH, ABOUT_TO_UNTRASH, DISABLE_TRASH_RENAMING, DOCUMENT_TRASHED, DOCUMENT_UNTRASHED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasFeature(TrashService.Feature feature) Deprecated.Checks if a feature is available.booleanisTrashed(CoreSession session, DocumentRef docRef) Deprecated.protected voidtrashDocument(CoreSession session, DocumentModel doc) Deprecated.voidtrashDocuments(List<DocumentModel> docs) Deprecated.Moves documents to the trash.protected voidundeleteAncestors(CoreSession session, DocumentRef docRef, Set<DocumentRef> undeleted) Deprecated.Undeletes ancestors of a document.protected voidundeleteDocument(CoreSession session, DocumentModel doc) Deprecated.protected Set<DocumentRef>undeleteDocumentList(CoreSession session, List<DocumentModel> docs) Deprecated.Undeletes a list of documents.undeleteDocuments(List<DocumentModel> docs) Deprecated.Undeletes documents (and ancestors if needed to make them visible).Methods inherited from class org.nuxeo.ecm.core.trash.AbstractTrashService
canDelete, canPurgeOrUntrash, checkCanTrash, checkDeletePermOnParents, folderAllowsDelete, getAboveDocument, getAboveDocument, getDocumentLocker, getDocuments, getFirstGroup, getInfo, getTrashInfo, isMangledName, mangleName, notifyEvent, notifyEvent, notifyEvent, purgeDocuments, purgeDocumentsUnder, underOneOf, unmangleName, unmangleName, untrashDocumentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.core.api.trash.TrashService
canPurgeOrUntrash, trashDocument, untrashDocumentMethods inherited from interface org.nuxeo.ecm.core.trash.TrashService
canPurgeOrUndelete
-
Field Details
-
FROM_LIFE_CYCLE_TRASH_SERVICE
Deprecated.Context data property for backward mechanism inCoreSession.followTransition(DocumentModel, String).- Since:
- 10.3
- See Also:
-
-
Constructor Details
-
LifeCycleTrashService
public LifeCycleTrashService()Deprecated.
-
-
Method Details
-
isTrashed
Deprecated.- Returns:
- whether or not the input
DocumentRefis trashed.
-
trashDocuments
Deprecated.Description copied from interface:TrashServiceMoves documents to the trash.Do nothing if the document current state is trashed.
Proxies are removed.
Since 10.3, sublevels are trashed asynchronously using BAF.
- Parameters:
docs- the documents to trash
-
trashDocument
Deprecated. -
undeleteDocuments
Deprecated.Description copied from interface:TrashServiceUndeletes documents (and ancestors if needed to make them visible).Also fires async events to untrash the children.
- Parameters:
docs- the documents to undelete- Returns:
- the set of ancestors whose children have been untrashed (for UI notification)
-
undeleteDocumentList
Deprecated.Undeletes a list of documents. Session is not saved. Log about non-deletable documents. -
undeleteAncestors
protected void undeleteAncestors(CoreSession session, DocumentRef docRef, Set<DocumentRef> undeleted) Deprecated.Undeletes ancestors of a document. Session is not saved. Stops as soon as an ancestor is not undeletable. -
undeleteDocument
Deprecated. -
hasFeature
Deprecated.Description copied from interface:TrashServiceChecks if a feature is available.
-
PropertyTrashServiceinstead.