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) -
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) 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)
-
-
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
-
canRemoveNode
public static boolean canRemoveNode(javax.jcr.Node node) throws javax.jcr.RepositoryException - Throws:
javax.jcr.RepositoryException
-