Class JCRDeleteFileStorageImpl
java.lang.Object
org.exoplatform.documents.storage.jcr.JCRDeleteFileStorageImpl
- All Implemented Interfaces:
org.exoplatform.documents.storage.JCRDeleteFileStorage,org.picocontainer.Startable
public class JCRDeleteFileStorageImpl
extends Object
implements org.exoplatform.documents.storage.JCRDeleteFileStorage, org.picocontainer.Startable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJCRDeleteFileStorageImpl(org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.documents.storage.TrashStorage trashStorage, org.exoplatform.social.metadata.favorite.FavoriteService favoriteService, org.exoplatform.container.PortalContainer container, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService, org.exoplatform.services.listener.ListenerService listenerService, BulkStorageActionService bulkStorageActionService) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanRemoveNode(javax.jcr.Node node) intvoiddeleteDocument(String folderPath, String documentId, boolean favorite, boolean checkToMoveToTrash, long delay, org.exoplatform.services.security.Identity identity, long userIdentityId) voiddeleteDocument(javax.jcr.Session session, String folderPath, String documentId, boolean favorite, boolean checkToMoveToTrash, long delay, org.exoplatform.services.security.Identity identity, long userIdentityId) voiddeleteDocumentPermanently(String trashNodePath) voiddeleteDocumentPermanently(String trashNodePath, String trashNodeId) voiddeleteDocuments(int actionId, List<org.exoplatform.documents.model.AbstractNode> items, org.exoplatform.services.security.Identity identity, long authenticatedUserId) voiddeleteDocumentsPermanently(int actionId, List<org.exoplatform.documents.model.AbstractNode> trashElementNodes, org.exoplatform.services.security.Identity aclUserIdentity) List<org.exoplatform.documents.model.TrashElementNode> getDeletedDocuments(org.exoplatform.documents.model.TrashElementNodeFilter filter) voidrestoreDocuments(int actionId, List<org.exoplatform.documents.model.AbstractNode> trashElementNodes, org.exoplatform.services.security.Identity aclUserIdentity) voidrestoreFromTrash(String trashNodePath) voidstart()voidstop()voidundoDelete(String documentId, long userIdentityId)
-
Field Details
-
documentsToDeleteQueue
-
-
Constructor Details
-
JCRDeleteFileStorageImpl
public JCRDeleteFileStorageImpl(org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.documents.storage.TrashStorage trashStorage, org.exoplatform.social.metadata.favorite.FavoriteService favoriteService, org.exoplatform.container.PortalContainer container, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService, org.exoplatform.services.listener.ListenerService listenerService, BulkStorageActionService bulkStorageActionService)
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.picocontainer.Startable
-
undoDelete
- Specified by:
undoDeletein interfaceorg.exoplatform.documents.storage.JCRDeleteFileStorage
-
getDocumentsToDelete
- Specified by:
getDocumentsToDeletein interfaceorg.exoplatform.documents.storage.JCRDeleteFileStorage
-
deleteDocument
public void deleteDocument(String folderPath, String documentId, boolean favorite, boolean checkToMoveToTrash, long delay, org.exoplatform.services.security.Identity identity, long userIdentityId) - Specified by:
deleteDocumentin interfaceorg.exoplatform.documents.storage.JCRDeleteFileStorage
-
deleteDocument
public 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 - Specified by:
deleteDocumentin interfaceorg.exoplatform.documents.storage.JCRDeleteFileStorage- Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionjavax.jcr.RepositoryException
-
deleteDocuments
public void deleteDocuments(int actionId, List<org.exoplatform.documents.model.AbstractNode> items, org.exoplatform.services.security.Identity identity, long authenticatedUserId) - Specified by:
deleteDocumentsin interfaceorg.exoplatform.documents.storage.JCRDeleteFileStorage
-
getDeletedDocuments
public List<org.exoplatform.documents.model.TrashElementNode> getDeletedDocuments(org.exoplatform.documents.model.TrashElementNodeFilter filter) throws javax.jcr.RepositoryException - Specified by:
getDeletedDocumentsin interfaceorg.exoplatform.documents.storage.JCRDeleteFileStorage- Throws:
javax.jcr.RepositoryException
-
countDeletedDocuments
public int countDeletedDocuments()- Specified by:
countDeletedDocumentsin interfaceorg.exoplatform.documents.storage.JCRDeleteFileStorage
-
restoreFromTrash
- Specified by:
restoreFromTrashin interfaceorg.exoplatform.documents.storage.JCRDeleteFileStorage- Throws:
javax.jcr.RepositoryException
-
deleteDocumentPermanently
public void deleteDocumentPermanently(String trashNodePath) throws org.exoplatform.commons.exception.ObjectNotFoundException, javax.jcr.RepositoryException - Specified by:
deleteDocumentPermanentlyin interfaceorg.exoplatform.documents.storage.JCRDeleteFileStorage- Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionjavax.jcr.RepositoryException
-
deleteDocumentPermanently
public void deleteDocumentPermanently(String trashNodePath, String trashNodeId) throws org.exoplatform.commons.exception.ObjectNotFoundException, javax.jcr.RepositoryException - Specified by:
deleteDocumentPermanentlyin interfaceorg.exoplatform.documents.storage.JCRDeleteFileStorage- Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionjavax.jcr.RepositoryException
-
deleteDocumentsPermanently
public void deleteDocumentsPermanently(int actionId, List<org.exoplatform.documents.model.AbstractNode> trashElementNodes, org.exoplatform.services.security.Identity aclUserIdentity) - Specified by:
deleteDocumentsPermanentlyin interfaceorg.exoplatform.documents.storage.JCRDeleteFileStorage
-
restoreDocuments
public void restoreDocuments(int actionId, List<org.exoplatform.documents.model.AbstractNode> trashElementNodes, org.exoplatform.services.security.Identity aclUserIdentity) - Specified by:
restoreDocumentsin interfaceorg.exoplatform.documents.storage.JCRDeleteFileStorage
-
canRemoveNode
public static boolean canRemoveNode(javax.jcr.Node node) throws javax.jcr.RepositoryException - Throws:
javax.jcr.RepositoryException
-