Class TrashStorageImpl

  • All Implemented Interfaces:
    org.exoplatform.documents.storage.TrashStorage

    public class TrashStorageImpl
    extends Object
    implements org.exoplatform.documents.storage.TrashStorage
    • Field Summary

      • Fields inherited from interface org.exoplatform.documents.storage.TrashStorage

        FILE_REMOVE_ACTIVITY
    • Constructor Summary

      Constructors 
      Constructor Description
      TrashStorageImpl​(org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService, org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.container.xml.InitParams initParams)  
    • Constructor Detail

      • TrashStorageImpl

        public TrashStorageImpl​(org.exoplatform.services.jcr.RepositoryService repositoryService,
                                org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService,
                                org.exoplatform.services.listener.ListenerService listenerService,
                                org.exoplatform.container.xml.InitParams initParams)
                         throws org.gatein.pc.api.PortletInvokerException
        Throws:
        org.gatein.pc.api.PortletInvokerException
    • Method Detail

      • moveToTrash

        public String moveToTrash​(javax.jcr.Node node,
                                  org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
                           throws javax.jcr.RepositoryException
        Specified by:
        moveToTrash in interface org.exoplatform.documents.storage.TrashStorage
        Throws:
        javax.jcr.RepositoryException
      • moveToTrash

        public String moveToTrash​(javax.jcr.Node node,
                                  org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                                  int deep)
                           throws javax.jcr.RepositoryException
        Specified by:
        moveToTrash in interface org.exoplatform.documents.storage.TrashStorage
        Throws:
        javax.jcr.RepositoryException
      • restoreFromTrash

        public void restoreFromTrash​(String trashNodePath,
                                     org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
                              throws javax.jcr.RepositoryException
        Specified by:
        restoreFromTrash in interface org.exoplatform.documents.storage.TrashStorage
        Throws:
        javax.jcr.RepositoryException
      • getAllNodeInTrash

        public List<javax.jcr.Node> getAllNodeInTrash​(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
                                               throws javax.jcr.RepositoryException
        Specified by:
        getAllNodeInTrash in interface org.exoplatform.documents.storage.TrashStorage
        Throws:
        javax.jcr.RepositoryException
      • getAllNodeInTrashByUser

        public List<javax.jcr.Node> getAllNodeInTrashByUser​(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                                                            String userName)
                                                     throws javax.jcr.RepositoryException
        Specified by:
        getAllNodeInTrashByUser in interface org.exoplatform.documents.storage.TrashStorage
        Throws:
        javax.jcr.RepositoryException
      • removeRelations

        public void removeRelations​(javax.jcr.Node node,
                                    org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
                             throws javax.jcr.RepositoryException
        Specified by:
        removeRelations in interface org.exoplatform.documents.storage.TrashStorage
        Throws:
        javax.jcr.RepositoryException
      • isInTrash

        public boolean isInTrash​(javax.jcr.Node node)
                          throws javax.jcr.RepositoryException
        Specified by:
        isInTrash in interface org.exoplatform.documents.storage.TrashStorage
        Throws:
        javax.jcr.RepositoryException
      • getTrashHomeNode

        public javax.jcr.Node getTrashHomeNode()
        Specified by:
        getTrashHomeNode in interface org.exoplatform.documents.storage.TrashStorage
      • getNodeByTrashId

        public javax.jcr.Node getNodeByTrashId​(String trashId)
                                        throws javax.jcr.RepositoryException
        Specified by:
        getNodeByTrashId in interface org.exoplatform.documents.storage.TrashStorage
        Throws:
        javax.jcr.RepositoryException
      • getAllLinks

        public List<javax.jcr.Node> getAllLinks​(javax.jcr.Node targetNode,
                                                String linkType,
                                                org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
      • removeDeadSymlinks

        public void removeDeadSymlinks​(javax.jcr.Node node)
                                throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • getAllLinks

        public List<javax.jcr.Node> getAllLinks​(javax.jcr.Node targetNode,
                                                String linkType)
        Specified by:
        getAllLinks in interface org.exoplatform.documents.storage.TrashStorage