Package org.fcrepo.kernel.impl.services
Class DeleteResourceServiceImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.services.AbstractService
-
- org.fcrepo.kernel.impl.services.AbstractDeleteResourceService
-
- org.fcrepo.kernel.impl.services.DeleteResourceServiceImpl
-
- All Implemented Interfaces:
DeleteResourceService
@Component public class DeleteResourceServiceImpl extends AbstractDeleteResourceService implements DeleteResourceService
This class mediates delete operations between the kernel and persistent storage layers- Author:
- dbernstein
-
-
Field Summary
-
Fields inherited from class org.fcrepo.kernel.impl.services.AbstractDeleteResourceService
psManager, resourceFactory
-
Fields inherited from class org.fcrepo.kernel.impl.services.AbstractService
containmentIndex, fedoraPropsConfig, membershipService, referenceService, searchIndex
-
-
Constructor Summary
Constructors Constructor Description DeleteResourceServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doAction(Transaction tx, PersistentStorageSession pSession, FedoraId fedoraId, String userPrincipal)
Perform the actual delete or purge actionprotected Stream<String>
getContained(Transaction tx, FedoraResource resource)
Get the contained resources to act upon.-
Methods inherited from class org.fcrepo.kernel.impl.services.AbstractDeleteResourceService
perform
-
Methods inherited from class org.fcrepo.kernel.impl.services.AbstractService
checkAclLinkHeader, determineInteractionModel, ensureValidACLAuthorization, ensureValidDirectContainer, lockArchivalGroupResource, lockArchivalGroupResourceFromParent, recordEvent, updateReferences
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fcrepo.kernel.api.services.DeleteResourceService
perform
-
-
-
-
Constructor Detail
-
DeleteResourceServiceImpl
public DeleteResourceServiceImpl()
-
-
Method Detail
-
getContained
protected Stream<String> getContained(Transaction tx, FedoraResource resource)
Description copied from class:AbstractDeleteResourceService
Get the contained resources to act upon.- Specified by:
getContained
in classAbstractDeleteResourceService
- Parameters:
tx
- the transaction this occurs in.resource
- the parent resource to find contained resources for.- Returns:
- stream of child ids.
-
doAction
protected void doAction(Transaction tx, PersistentStorageSession pSession, FedoraId fedoraId, String userPrincipal) throws PersistentStorageException
Description copied from class:AbstractDeleteResourceService
Perform the actual delete or purge action- Specified by:
doAction
in classAbstractDeleteResourceService
- Parameters:
tx
- the transaction this occurs in.pSession
- the persistent storage session.fedoraId
- the resource to perform the action on.userPrincipal
- the user performing the action- Throws:
PersistentStorageException
- if problem performing the action.
-
-