Package org.nuxeo.ecm.core.trash
Class PropertyTrashService
java.lang.Object
org.nuxeo.ecm.core.trash.AbstractTrashService
org.nuxeo.ecm.core.trash.PropertyTrashService
- All Implemented Interfaces:
TrashService
A
TrashService
implementation relying on ecm:isTrashed
.- Since:
- 10.1
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nuxeo.ecm.core.trash.AbstractTrashService
AbstractTrashService.PathComparator
-
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.core.trash.AbstractTrashService
COLLISION_PATTERN, LEGAL_HOLD_QUERY, PATH_SEPARATOR, RETENTION_QUERY, TRASHED_PATTERN, TRASHED_QUERY
Fields 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 TypeMethodDescriptionprotected void
protected Set
<DocumentRef> doUntrashDocument
(DocumentModel doc, boolean processChildren) boolean
isTrashed
(CoreSession session, DocumentRef docRef) protected void
trashDescendants
(DocumentModel model, Boolean value) void
trashDocuments
(List<DocumentModel> docs) Moves documents to the trash.void
untrashDocuments
(List<DocumentModel> docs) Unmoves documents from the trash.Methods inherited from class org.nuxeo.ecm.core.trash.AbstractTrashService
canPurgeOrUntrash, checkCanTrash, getAboveDocument, getAboveDocument, getDocumentLocker, getDocuments, getFirstGroup, getInfo, getTrashInfo, isMangledName, mangleName, notifyEvent, notifyEvent, notifyEvent, purgeDocuments, purgeDocumentsUnder, underOneOf, unmangleName, unmangleName
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
-
Field Details
-
SYSPROP_IS_TRASHED
- See Also:
-
-
Constructor Details
-
PropertyTrashService
public PropertyTrashService()
-
-
Method Details
-
isTrashed
- Returns:
- whether or not the input
DocumentRef
is trashed.
-
trashDocuments
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
-
doTrashDocument
-
untrashDocuments
Description copied from interface:TrashService
Unmoves documents from the trash.Also fires async events to untrash the children.
- Specified by:
untrashDocuments
in interfaceTrashService
- Specified by:
untrashDocuments
in classAbstractTrashService
- Parameters:
docs
- the documents to untrash
-
doUntrashDocument
-
trashDescendants
-