public interface IDeleteHelper
Modifier and Type | Method and Description |
---|---|
void |
deleteFile(javax.jcr.Session session,
PentahoJcrConstants pentahoJcrConstants,
Serializable fileId)
Deletes a file in a way that it can be recovered.
|
List<RepositoryFile> |
getDeletedFiles(javax.jcr.Session session,
PentahoJcrConstants pentahoJcrConstants)
Lists deleted files for this user.
|
List<RepositoryFile> |
getDeletedFiles(javax.jcr.Session session,
PentahoJcrConstants pentahoJcrConstants,
String origParentFolderPath,
String filter)
Lists deleted files for this folder and user.
|
String |
getOriginalParentFolderPath(javax.jcr.Session session,
PentahoJcrConstants pentahoJcrConstants,
Serializable fileId)
Returns the absolute path of the original parent folder.
|
void |
permanentlyDeleteFile(javax.jcr.Session session,
PentahoJcrConstants pentahoJcrConstants,
Serializable fileId)
Deletes a file in a way that it cannot be recovered.
|
void |
undeleteFile(javax.jcr.Session session,
PentahoJcrConstants pentahoJcrConstants,
Serializable fileId)
Recovers a deleted file to its original location.
|
void deleteFile(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants, Serializable fileId) throws javax.jcr.RepositoryException
fileId
- javax.jcr.RepositoryException
void undeleteFile(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants, Serializable fileId) throws javax.jcr.RepositoryException
fileId
- javax.jcr.RepositoryException
void permanentlyDeleteFile(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants, Serializable fileId) throws javax.jcr.RepositoryException
fileId
- javax.jcr.RepositoryException
List<RepositoryFile> getDeletedFiles(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants, String origParentFolderPath, String filter) throws javax.jcr.RepositoryException
origParentFolderPath
- path to original parent folderfilter
- filter may be a full name or a partial name with one or more wildcard characters ("*")javax.jcr.RepositoryException
List<RepositoryFile> getDeletedFiles(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
String getOriginalParentFolderPath(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants, Serializable fileId) throws javax.jcr.RepositoryException
undeleteFile(Session, PentahoJcrConstants, Serializable)
.fileId
- file id of deleted filejavax.jcr.RepositoryException
Copyright © 2017 Hitachi Vantara. All rights reserved.