Interface JCRDeleteFileStorage
public interface JCRDeleteFileStorage
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteDocument(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)voiddeleteDocuments(int actionId, List<AbstractNode> items, org.exoplatform.services.security.Identity identity, long authenticatedUserId) Delete a list of document (Move to trash)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
-