001/* 002 * The contents of this file are subject to the license and copyright 003 * detailed in the LICENSE and NOTICE files at the root of the source 004 * tree. 005 */ 006package org.fcrepo.kernel.impl.operations; 007 008import org.fcrepo.kernel.api.Transaction; 009import org.fcrepo.kernel.api.identifiers.FedoraId; 010import org.fcrepo.kernel.api.operations.DeleteResourceOperationFactory; 011import org.fcrepo.kernel.api.operations.ResourceOperationBuilder; 012import org.springframework.stereotype.Component; 013 014/** 015 * Implementation of a delete resource operation factory 016 * 017 * @author bbpennel 018 */ 019@Component 020public class DeleteResourceOperationFactoryImpl implements DeleteResourceOperationFactory { 021 022 @Override 023 public DeleteResourceOperationBuilder deleteBuilder(final Transaction transaction, final FedoraId rescId) { 024 return new DeleteResourceOperationBuilder(transaction, rescId); 025 } 026 027 @Override 028 public ResourceOperationBuilder purgeBuilder(final Transaction transaction, final FedoraId rescId) { 029 return new PurgeResourceOperationBuilder(transaction, rescId); 030 } 031 032}