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) voiddeleteDocument(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) voiddeleteDocuments(int actionId, List<org.exoplatform.documents.model.AbstractNode> items, org.exoplatform.services.security.Identity identity, long authenticatedUserId) 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
-
canRemoveNode
public static boolean canRemoveNode(javax.jcr.Node node) throws javax.jcr.RepositoryException - Throws:
javax.jcr.RepositoryException
-