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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canRemoveNode(javax.jcr.Node node)
     
    void
    deleteDocument(String folderPath, String documentId, boolean favorite, boolean checkToMoveToTrash, long delay, org.exoplatform.services.security.Identity identity, long userIdentityId)
     
     
    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)
  • 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
    • canRemoveNode

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