Class 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 Detail

      • documentsToDeleteQueue

        public static final Map<String,​String> documentsToDeleteQueue
    • Constructor Detail

      • 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 Detail

      • 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