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 static org.fcrepo.kernel.api.operations.ResourceOperationType.UPDATE; 009 010import java.io.InputStream; 011import java.net.URI; 012 013import org.fcrepo.kernel.api.Transaction; 014import org.fcrepo.kernel.api.identifiers.FedoraId; 015import org.fcrepo.kernel.api.operations.ResourceOperationType; 016 017/** 018 * Operation for updating a non-rdf source 019 * 020 * @author bbpennel 021 */ 022public class UpdateNonRdfSourceOperation extends AbstractNonRdfSourceOperation { 023 024 /** 025 * Constructor for internal binaries. 026 * 027 * @param rescId the internal identifier. 028 * @param content the stream of the content. 029 */ 030 protected UpdateNonRdfSourceOperation(final Transaction transaction, final FedoraId rescId, 031 final InputStream content) { 032 super(transaction, rescId, content); 033 } 034 035 /** 036 * Constructor for external content. 037 * 038 * @param transaction the transaction 039 * @param rescId the internal identifier. 040 * @param externalContentURI the URI of the external content. 041 * @param externalHandling the type of external content handling (REDIRECT, PROXY) 042 */ 043 protected UpdateNonRdfSourceOperation(final Transaction transaction, final FedoraId rescId, 044 final URI externalContentURI, final String externalHandling) { 045 super(transaction, rescId, externalContentURI, externalHandling); 046 } 047 048 @Override 049 public ResourceOperationType getType() { 050 return UPDATE; 051 } 052}