Interface JCRDeleteFileStorage
public interface JCRDeleteFileStorage
-
Method Summary
Modifier and TypeMethodDescriptionintCounts the total number of deleted documents in the trash.voiddeleteDocument(String documentPath, String documentId, boolean favorite, boolean checkToMoveToTrash, long delay, org.exoplatform.services.security.Identity acIdentity, long userIdentityId) Delete document (Move to trash)voiddeleteDocument(javax.jcr.Session session, String folderPath, String documentId, boolean favorite, boolean checkToMoveToTrash, long delay, org.exoplatform.services.security.Identity identity, long userIdentityId) Delete document (Move to trash)voiddeleteDocumentPermanently(String trashNodePath) Delete a document from the trash based on the specified trash node path.voiddeleteDocuments(int actionId, List<AbstractNode> items, org.exoplatform.services.security.Identity identity, long authenticatedUserId) Delete a list of document (Move to trash)getDeletedDocuments(TrashElementNodeFilter trashElementNodeFilter) Retrieves a list of trash elements that match the specified filter.voidrestoreFromTrash(String trashNodePath) Restores a document from the trash based on the specified trash node path.voidundoDelete(String documentId, long userIdentityId) Undo delete document
-
Method Details
-
getDocumentsToDelete
-
deleteDocument
void deleteDocument(String documentPath, String documentId, boolean favorite, boolean checkToMoveToTrash, long delay, org.exoplatform.services.security.Identity acIdentity, long userIdentityId) Delete document (Move to trash)- Parameters:
documentPath-documentId-favorite-checkToMoveToTrash-delay-acIdentity-userIdentityId-
-
undoDelete
Undo delete document- Parameters:
documentId-userIdentityId-
-
deleteDocument
void deleteDocument(javax.jcr.Session session, String folderPath, String documentId, boolean favorite, boolean checkToMoveToTrash, long delay, org.exoplatform.services.security.Identity identity, long userIdentityId) throws org.exoplatform.commons.exception.ObjectNotFoundException, javax.jcr.RepositoryException Delete document (Move to trash)- Parameters:
session- current sessionfolderPath- folder pathdocumentId- document idfavorite- favorite or notcheckToMoveToTrash- check whether to move to trashdelay- waiting delayidentity- user identityuserIdentityId- user identity id- Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionjavax.jcr.RepositoryException
-
deleteDocuments
void deleteDocuments(int actionId, List<AbstractNode> items, org.exoplatform.services.security.Identity identity, long authenticatedUserId) Delete a list of document (Move to trash)- Parameters:
actionId- action iditems- list of items to deleteidentity- user identityauthenticatedUserId- current authenticated user id
-
getDeletedDocuments
List<TrashElementNode> getDeletedDocuments(TrashElementNodeFilter trashElementNodeFilter) throws javax.jcr.RepositoryException Retrieves a list of trash elements that match the specified filter.- Parameters:
trashElementNodeFilter- the filter used to find trash elements- Returns:
- a list of nodes representing the trash elements
- Throws:
javax.jcr.RepositoryException- if an error occurs while accessing the repository
-
countDeletedDocuments
int countDeletedDocuments()Counts the total number of deleted documents in the trash.- Returns:
- the total count of deleted documents
-
restoreFromTrash
Restores a document from the trash based on the specified trash node path.- Parameters:
trashNodePath- the path of the trash node to restore- Throws:
javax.jcr.RepositoryException- if an error occurs during the restoration process
-
deleteDocumentPermanently
void deleteDocumentPermanently(String trashNodePath) throws org.exoplatform.commons.exception.ObjectNotFoundException, javax.jcr.RepositoryException Delete a document from the trash based on the specified trash node path.- Parameters:
trashNodePath- the path of the trash node to delete- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException- if a document not exist in the trashjavax.jcr.RepositoryException- if an error occurs during the delete process
-