Class JCRDeleteFileStorageImpl

java.lang.Object
org.exoplatform.documents.storage.jcr.JCRDeleteFileStorageImpl
All Implemented Interfaces:
org.exoplatform.documents.storage.JCRDeleteFileStorage, org.picocontainer.Startable

public class JCRDeleteFileStorageImpl extends Object implements org.exoplatform.documents.storage.JCRDeleteFileStorage, org.picocontainer.Startable
  • Field Details

    • documentsToDeleteQueue

      public static final Map<String,String> documentsToDeleteQueue
  • Constructor Details

    • JCRDeleteFileStorageImpl

      public JCRDeleteFileStorageImpl(org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.documents.storage.TrashStorage trashStorage, org.exoplatform.social.metadata.favorite.FavoriteService favoriteService, org.exoplatform.container.PortalContainer container, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService, org.exoplatform.services.listener.ListenerService listenerService, BulkStorageActionService bulkStorageActionService, JCRDocumentFileStorage jCRDocumentFileStorage)
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface org.picocontainer.Startable
    • stop

      public void stop()
      Specified by:
      stop in interface org.picocontainer.Startable
    • undoDelete

      public void undoDelete(String documentId, long userIdentityId)
      Specified by:
      undoDelete in interface org.exoplatform.documents.storage.JCRDeleteFileStorage
    • getDocumentsToDelete

      public Map<String,String> getDocumentsToDelete()
      Specified by:
      getDocumentsToDelete in interface org.exoplatform.documents.storage.JCRDeleteFileStorage
    • deleteDocument

      public void deleteDocument(String folderPath, String documentId, boolean favorite, boolean checkToMoveToTrash, long delay, org.exoplatform.services.security.Identity identity, long userIdentityId)
      Specified by:
      deleteDocument in interface org.exoplatform.documents.storage.JCRDeleteFileStorage
    • deleteDocument

      public void deleteDocument(javax.jcr.Session session, String folderPath, String documentId, boolean favorite, boolean checkToMoveToTrash, long delay, org.exoplatform.services.security.Identity identity, long userIdentityId) throws org.exoplatform.commons.exception.ObjectNotFoundException, javax.jcr.RepositoryException
      Specified by:
      deleteDocument in interface org.exoplatform.documents.storage.JCRDeleteFileStorage
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      javax.jcr.RepositoryException
    • deleteDocuments

      public void deleteDocuments(int actionId, List<org.exoplatform.documents.model.AbstractNode> items, org.exoplatform.services.security.Identity identity, long authenticatedUserId)
      Specified by:
      deleteDocuments in interface org.exoplatform.documents.storage.JCRDeleteFileStorage
    • getDeletedDocuments

      public List<org.exoplatform.documents.model.TrashElementNode> getDeletedDocuments(org.exoplatform.documents.model.TrashElementNodeFilter filter) throws javax.jcr.RepositoryException
      Specified by:
      getDeletedDocuments in interface org.exoplatform.documents.storage.JCRDeleteFileStorage
      Throws:
      javax.jcr.RepositoryException
    • countDeletedDocuments

      public int countDeletedDocuments()
      Specified by:
      countDeletedDocuments in interface org.exoplatform.documents.storage.JCRDeleteFileStorage
    • restoreFromTrash

      public void restoreFromTrash(String trashNodePath) throws javax.jcr.RepositoryException
      Specified by:
      restoreFromTrash in interface org.exoplatform.documents.storage.JCRDeleteFileStorage
      Throws:
      javax.jcr.RepositoryException
    • deleteDocumentPermanently

      public void deleteDocumentPermanently(String trashNodePath) throws org.exoplatform.commons.exception.ObjectNotFoundException, javax.jcr.RepositoryException
      Specified by:
      deleteDocumentPermanently in interface org.exoplatform.documents.storage.JCRDeleteFileStorage
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      javax.jcr.RepositoryException
    • deleteDocumentPermanently

      public void deleteDocumentPermanently(String trashNodePath, String trashNodeId) throws org.exoplatform.commons.exception.ObjectNotFoundException, javax.jcr.RepositoryException
      Specified by:
      deleteDocumentPermanently in interface org.exoplatform.documents.storage.JCRDeleteFileStorage
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      javax.jcr.RepositoryException
    • deleteDocumentsPermanently

      public void deleteDocumentsPermanently(int actionId, List<org.exoplatform.documents.model.AbstractNode> trashElementNodes, org.exoplatform.services.security.Identity aclUserIdentity)
      Specified by:
      deleteDocumentsPermanently in interface org.exoplatform.documents.storage.JCRDeleteFileStorage
    • restoreDocuments

      public void restoreDocuments(int actionId, List<org.exoplatform.documents.model.AbstractNode> trashElementNodes, org.exoplatform.services.security.Identity aclUserIdentity)
      Specified by:
      restoreDocuments in interface org.exoplatform.documents.storage.JCRDeleteFileStorage
    • canRemoveNode

      public static boolean canRemoveNode(javax.jcr.Node node) throws javax.jcr.RepositoryException
      Throws:
      javax.jcr.RepositoryException