Interface IDeleteHelper

  • All Known Implementing Classes:
    DefaultDeleteHelper

    public interface IDeleteHelper
    Handles delete, undelete, and permanent delete. Handles listing deleted files and purging some or all deleted files.
    Author:
    mlowery
    • Method Detail

      • deleteFile

        void deleteFile​(javax.jcr.Session session,
                        PentahoJcrConstants pentahoJcrConstants,
                        Serializable fileId)
                 throws javax.jcr.RepositoryException
        Deletes a file in a way that it can be recovered.
        Parameters:
        fileId -
        Throws:
        javax.jcr.RepositoryException
      • undeleteFile

        void undeleteFile​(javax.jcr.Session session,
                          PentahoJcrConstants pentahoJcrConstants,
                          Serializable fileId)
                   throws javax.jcr.RepositoryException
        Recovers a deleted file to its original location.
        Parameters:
        fileId -
        Throws:
        javax.jcr.RepositoryException
      • permanentlyDeleteFile

        void permanentlyDeleteFile​(javax.jcr.Session session,
                                   PentahoJcrConstants pentahoJcrConstants,
                                   Serializable fileId)
                            throws javax.jcr.RepositoryException
        Deletes a file in a way that it cannot be recovered. (Note that "cannot be recovered" doesn't mean "shred"--it means that the file cannot be recovered using this API.)
        Parameters:
        fileId -
        Throws:
        javax.jcr.RepositoryException
      • getDeletedFiles

        List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getDeletedFiles​(javax.jcr.Session session,
                                                                                          PentahoJcrConstants pentahoJcrConstants,
                                                                                          String origParentFolderPath,
                                                                                          String filter)
                                                                                   throws javax.jcr.RepositoryException
        Lists deleted files for this folder and user.
        Parameters:
        origParentFolderPath - path to original parent folder
        filter - filter may be a full name or a partial name with one or more wildcard characters ("*")
        Returns:
        list of deleted files IDs for this folder and user
        Throws:
        javax.jcr.RepositoryException
      • getDeletedFiles

        List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getDeletedFiles​(javax.jcr.Session session,
                                                                                          PentahoJcrConstants pentahoJcrConstants)
                                                                                   throws javax.jcr.RepositoryException
        Lists deleted files for this user. In this case, the path field of each file is the original path where it was located prior to deletion. This is the "recycle bin" view.
        Returns:
        list of deleted files for this user
        Throws:
        javax.jcr.RepositoryException
      • getAllDeletedFiles

        List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getAllDeletedFiles​(javax.jcr.Session session,
                                                                                             PentahoJcrConstants pentahoJcrConstants)
                                                                                      throws javax.jcr.RepositoryException
        Lists deleted files for all users. In this case, the path field of each file is the original path where it was located prior to deletion. This is the administrator "recycle bin" view.
        Returns:
        list of deleted files for all users
        Throws:
        javax.jcr.RepositoryException