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:
org.fcrepo.kernel.api.services.PurgeResourceService
@Component
public class PurgeResourceServiceImpl
extends AbstractDeleteResourceService
implements org.fcrepo.kernel.api.services.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, resourceFactoryFields inherited from class org.fcrepo.kernel.impl.services.AbstractService
containmentIndex, fedoraPropsConfig, membershipService, referenceService, searchIndex, userTypesCache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoAction(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.persistence.api.PersistentStorageSession pSession, org.fcrepo.kernel.api.identifiers.FedoraId resourceId, String userPrincipal) Perform the actual delete or purge actiongetContained(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
performMethods inherited from class org.fcrepo.kernel.impl.services.AbstractService
checkAclLinkHeader, determineInteractionModel, ensureValidACLAuthorization, ensureValidDirectContainer, lockArchivalGroupResource, lockParent, recordEvent, updateReferencesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.fcrepo.kernel.api.services.PurgeResourceService
perform
-
Constructor Details
-
PurgeResourceServiceImpl
public PurgeResourceServiceImpl()
-
-
Method Details
-
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 resourceId, 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.resourceId- 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.
-