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:
org.fcrepo.kernel.api.services.DeleteResourceService
@Component public class DeleteResourceServiceImpl extends AbstractDeleteResourceService implements org.fcrepo.kernel.api.services.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
-
-
Constructor Summary
Constructors Constructor Description DeleteResourceServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoAction(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.persistence.api.PersistentStorageSession pSession, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId, String userPrincipal)Perform the actual delete or purge actionprotected Stream<String>getContained(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.models.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
-
-
-
-
Constructor Detail
-
DeleteResourceServiceImpl
public DeleteResourceServiceImpl()
-
-
Method Detail
-
getContained
protected Stream<String> getContained(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.models.FedoraResource resource)
Description copied from class:AbstractDeleteResourceServiceGet the contained resources to act upon.- Specified by:
getContainedin 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(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.persistence.api.PersistentStorageSession pSession, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId, String userPrincipal) throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
Description copied from class:AbstractDeleteResourceServicePerform the actual delete or purge action- Specified by:
doActionin 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:
org.fcrepo.persistence.api.exceptions.PersistentStorageException- if problem performing the action.
-
-