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 Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Map<String,String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    JCRDeleteFileStorageImpl(org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.social.core.manager.IdentityManager identityManager, 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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canRemoveNode(javax.jcr.Node node)
     
    int
     
    void
    deleteDocument(String folderPath, String documentId, boolean favorite, boolean checkToMoveToTrash, long delay, org.exoplatform.services.security.Identity identity, long userIdentityId)
     
    void
    deleteDocument(javax.jcr.Session session, String folderPath, String documentId, boolean favorite, boolean checkToMoveToTrash, long delay, org.exoplatform.services.security.Identity identity, long userIdentityId)
     
    void
     
    void
    deleteDocuments(int actionId, List<org.exoplatform.documents.model.AbstractNode> items, org.exoplatform.services.security.Identity identity, long authenticatedUserId)
     
    List<org.exoplatform.documents.model.TrashElementNode>
    getDeletedDocuments(org.exoplatform.documents.model.TrashElementNodeFilter filter)
     
     
    void
    restoreFromTrash(String trashNodePath)
     
    void
     
    void
     
    void
    undoDelete(String documentId, long userIdentityId)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • documentsToDeleteQueue

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

    • JCRDeleteFileStorageImpl

      public JCRDeleteFileStorageImpl(org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.social.core.manager.IdentityManager identityManager, 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)
  • 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
    • canRemoveNode

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