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.RdfStream; 009import org.fcrepo.kernel.api.Transaction; 010import org.fcrepo.kernel.api.identifiers.FedoraId; 011import org.fcrepo.kernel.api.operations.RdfSourceOperation; 012 013/** 014 * Abstract operation for interacting with an rdf source 015 * 016 * @author bbpennel 017 */ 018public abstract class AbstractRdfSourceOperation extends AbstractRelaxableResourceOperation 019 implements RdfSourceOperation { 020 021 protected RdfStream triples; 022 023 protected AbstractRdfSourceOperation(final Transaction transaction, final FedoraId rescId, 024 final RdfStream triples) { 025 super(transaction, rescId); 026 this.triples = triples; 027 } 028 029 @Override 030 public RdfStream getTriples() { 031 return triples; 032 } 033}