Class BridgeTrashService

java.lang.Object
org.nuxeo.ecm.core.trash.AbstractTrashService
org.nuxeo.ecm.core.trash.BridgeTrashService
All Implemented Interfaces:
TrashService, TrashService

public class BridgeTrashService extends AbstractTrashService
Trash service delegating to two different backends, for use during migration.
Since:
10.2
  • Field Details

  • Constructor Details

  • Method Details

    • isTrashed

      public boolean isTrashed(CoreSession session, DocumentRef doc)
      Returns:
      whether or not the input DocumentRef is trashed.
    • trashDocuments

      public void trashDocuments(List<DocumentModel> docs)
      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
    • undeleteDocuments

      public Set<DocumentRef> undeleteDocuments(List<DocumentModel> docs)
      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)
    • hasFeature

      public boolean hasFeature(TrashService.Feature feature)
      Description copied from interface: TrashService
      Checks if a feature is available.