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 public class LifeCycleTrashService extends AbstractTrashService
Deprecated.since 10.1, usePropertyTrashService
instead.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.nuxeo.ecm.core.trash.AbstractTrashService
AbstractTrashService.PathComparator
-
Nested classes/interfaces inherited from interface org.nuxeo.ecm.core.api.trash.TrashService
TrashService.Feature
-
-
Field Summary
Fields Modifier and Type Field Description static String
FROM_LIFE_CYCLE_TRASH_SERVICE
Deprecated.Context data property for backward mechanism inCoreSession.followTransition(DocumentModel, String)
.-
Fields inherited from class org.nuxeo.ecm.core.trash.AbstractTrashService
COLLISION_PATTERN, PATH_SEPARATOR, TRASHED_PATTERN, TRASHED_QUERY
-
Fields inherited from interface org.nuxeo.ecm.core.api.trash.TrashService
DISABLE_TRASH_RENAMING, DOCUMENT_TRASHED, DOCUMENT_UNTRASHED
-
-
Constructor Summary
Constructors Constructor Description LifeCycleTrashService()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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).-
Methods inherited from class org.nuxeo.ecm.core.trash.AbstractTrashService
canDelete, canPurgeOrUntrash, checkDeletePermOnParents, folderAllowsDelete, getAboveDocument, getAboveDocument, getDocumentLocker, getDocuments, getFirstGroup, getInfo, getTrashInfo, isMangledName, mangleName, notifyEvent, notifyEvent, purgeDocuments, purgeDocumentsUnder, underOneOf, unmangleName, unmangleName, untrashDocuments
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.core.api.trash.TrashService
canPurgeOrUntrash, trashDocument, untrashDocument
-
Methods inherited from interface org.nuxeo.ecm.core.trash.TrashService
canPurgeOrUndelete
-
-
-
-
Field Detail
-
FROM_LIFE_CYCLE_TRASH_SERVICE
public static final String FROM_LIFE_CYCLE_TRASH_SERVICE
Deprecated.Context data property for backward mechanism inCoreSession.followTransition(DocumentModel, String)
.- Since:
- 10.3
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LifeCycleTrashService
public LifeCycleTrashService()
Deprecated.
-
-
Method Detail
-
isTrashed
public boolean isTrashed(CoreSession session, DocumentRef docRef)
Deprecated.- Returns:
- whether or not the input
DocumentRef
is trashed.
-
trashDocuments
public void trashDocuments(List<DocumentModel> docs)
Deprecated.Description copied from interface:TrashService
Moves 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
protected void trashDocument(CoreSession session, DocumentModel doc)
Deprecated.
-
undeleteDocuments
public Set<DocumentRef> undeleteDocuments(List<DocumentModel> docs)
Deprecated.Description copied from interface:TrashService
Undeletes 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
protected Set<DocumentRef> undeleteDocumentList(CoreSession session, List<DocumentModel> docs)
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
protected void undeleteDocument(CoreSession session, DocumentModel doc)
Deprecated.
-
hasFeature
public boolean hasFeature(TrashService.Feature feature)
Deprecated.Description copied from interface:TrashService
Checks if a feature is available.
-
-