Class AbstractNonRdfSourceOperation
java.lang.Object
org.fcrepo.kernel.impl.operations.AbstractResourceOperation
org.fcrepo.kernel.impl.operations.AbstractNonRdfSourceOperation
- All Implemented Interfaces:
org.fcrepo.kernel.api.operations.NonRdfSourceOperation,org.fcrepo.kernel.api.operations.ResourceOperation
- Direct Known Subclasses:
CreateNonRdfSourceOperation,UpdateNonRdfSourceOperation
public abstract class AbstractNonRdfSourceOperation
extends AbstractResourceOperation
implements org.fcrepo.kernel.api.operations.NonRdfSourceOperation
An abstract operation for interacting with a non-rdf source
- Author:
- bbpennel
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractNonRdfSourceOperation(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId rescId) Basic constructor.protectedAbstractNonRdfSourceOperation(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId rescId, InputStream content) Constructor for internal binaries.protectedAbstractNonRdfSourceOperation(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId rescId, URI externalContentURI, String externalHandling) Constructor for external content. -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamlongprotected Collection<URI> protected Stringprotected URIprotected voidsetContent(InputStream content) protected voidsetContentSize(long contentSize) protected voidsetDigests(Collection<URI> digests) protected voidsetExternalHandlingType(String externalHandlingType) protected voidsetExternalHandlingURI(URI externalHandlingURI) protected voidsetFilename(String filename) protected voidsetMimeType(String mimeType) Methods inherited from class org.fcrepo.kernel.impl.operations.AbstractResourceOperation
getResourceId, getTransaction, getUserPrincipal, setUserPrincipalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.fcrepo.kernel.api.operations.ResourceOperation
getResourceId, getTransaction, getType, getUserPrincipal
-
Constructor Details
-
AbstractNonRdfSourceOperation
protected AbstractNonRdfSourceOperation(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId rescId, URI externalContentURI, String externalHandling) Constructor for external content.- Parameters:
rescId- the internal identifier.externalContentURI- the URI of the external content.externalHandling- the type of external content handling (REDIRECT, PROXY)
-
AbstractNonRdfSourceOperation
protected AbstractNonRdfSourceOperation(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId rescId, InputStream content) Constructor for internal binaries.- Parameters:
rescId- the internal identifier.content- the stream of the content.
-
AbstractNonRdfSourceOperation
protected AbstractNonRdfSourceOperation(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId rescId) Basic constructor.- Parameters:
rescId- The internal Fedora ID.
-
-
Method Details
-
getContentStream
- Specified by:
getContentStreamin interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperation
-
getExternalHandling
- Specified by:
getExternalHandlingin interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperation
-
getContentUri
- Specified by:
getContentUriin interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperation
-
getMimeType
- Specified by:
getMimeTypein interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperation
-
getFilename
- Specified by:
getFilenamein interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperation
-
getContentDigests
- Specified by:
getContentDigestsin interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperation
-
getContentSize
- Specified by:
getContentSizein interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperation
-
getContent
- Returns:
- the content
-
setContent
- Parameters:
content- the content to set
-
getExternalHandlingURI
- Returns:
- the externalHandlingURI
-
setExternalHandlingURI
- Parameters:
externalHandlingURI- the externalHandlingURI to set
-
getExternalHandlingType
- Returns:
- the externalHandlingType
-
setExternalHandlingType
- Parameters:
externalHandlingType- the externalHandlingType to set
-
getDigests
- Returns:
- the digests
-
setDigests
- Parameters:
digests- the digests to set
-
setMimeType
- Parameters:
mimeType- the mimeType to set
-
setFilename
- Parameters:
filename- the filename to set
-
setContentSize
- Parameters:
contentSize- the contentSize to set
-