Package org.fcrepo.kernel.impl.services
Class PurgeResourceServiceImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.services.AbstractService
-
- org.fcrepo.kernel.impl.services.AbstractDeleteResourceService
-
- org.fcrepo.kernel.impl.services.PurgeResourceServiceImpl
-
- All Implemented Interfaces:
PurgeResourceService
@Component public class PurgeResourceServiceImpl extends AbstractDeleteResourceService implements PurgeResourceService
Implementation of purge resource service.- Since:
- 6.0.0
- Author:
- whikloj
-
-
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, userTypesCache
-
-
Constructor Summary
Constructors Constructor Description PurgeResourceServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doAction(Transaction tx, PersistentStorageSession pSession, FedoraId resourceId, 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, lockParent, 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.PurgeResourceService
perform
-
-
-
-
Constructor Detail
-
PurgeResourceServiceImpl
public PurgeResourceServiceImpl()
-
-
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 resourceId, 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.resourceId
- the resource to perform the action on.userPrincipal
- the user performing the action- Throws:
PersistentStorageException
- if problem performing the action.
-
-