Class AbstractNonRdfSourceOperationBuilder
- java.lang.Object
-
- org.fcrepo.kernel.impl.operations.AbstractNonRdfSourceOperationBuilder
-
- All Implemented Interfaces:
org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder,org.fcrepo.kernel.api.operations.ResourceOperationBuilder
- Direct Known Subclasses:
CreateNonRdfSourceOperationBuilderImpl,UpdateNonRdfSourceOperationBuilder
public abstract class AbstractNonRdfSourceOperationBuilder extends Object implements org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder
An abstract operation for interacting with a non-rdf source- Author:
- bbpennel
-
-
Field Summary
Fields Modifier and Type Field Description protected InputStreamcontentprotected longcontentSizeprotected Collection<URI>digestsprotected StringexternalTypeprotected URIexternalURIprotected Stringfilenameprotected StringmimeTypeprotected org.fcrepo.kernel.api.identifiers.FedoraIdresourceIdprotected StringuserPrincipal
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractNonRdfSourceOperationBuilder(org.fcrepo.kernel.api.identifiers.FedoraId rescId, InputStream stream)Constructor for internal binary.protectedAbstractNonRdfSourceOperationBuilder(org.fcrepo.kernel.api.identifiers.FedoraId rescId, String handling, URI externalUri)Constructor for external binary.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuildercontentDigests(Collection<URI> digests)org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuildercontentSize(long size)org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilderfilename(String filename)org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuildermimeType(String mimetype)org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilderuserPrincipal(String userPrincipal)
-
-
-
Field Detail
-
resourceId
protected org.fcrepo.kernel.api.identifiers.FedoraId resourceId
-
content
protected InputStream content
-
externalURI
protected URI externalURI
-
externalType
protected String externalType
-
digests
protected Collection<URI> digests
-
contentSize
protected long contentSize
-
userPrincipal
protected String userPrincipal
-
-
Constructor Detail
-
AbstractNonRdfSourceOperationBuilder
protected AbstractNonRdfSourceOperationBuilder(org.fcrepo.kernel.api.identifiers.FedoraId rescId, String handling, URI externalUri)
Constructor for external binary.- Parameters:
rescId- the internal identifierhandling- the external content handling type.externalUri- the external content URI.
-
AbstractNonRdfSourceOperationBuilder
protected AbstractNonRdfSourceOperationBuilder(org.fcrepo.kernel.api.identifiers.FedoraId rescId, InputStream stream)
Constructor for internal binary.- Parameters:
rescId- the internal identifier.stream- the content stream.
-
-
Method Detail
-
mimeType
public org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder mimeType(String mimetype)
- Specified by:
mimeTypein interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder
-
filename
public org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder filename(String filename)
- Specified by:
filenamein interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder
-
contentDigests
public org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder contentDigests(Collection<URI> digests)
- Specified by:
contentDigestsin interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder
-
contentSize
public org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder contentSize(long size)
- Specified by:
contentSizein interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder
-
userPrincipal
public org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder userPrincipal(String userPrincipal)
- Specified by:
userPrincipalin interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder- Specified by:
userPrincipalin interfaceorg.fcrepo.kernel.api.operations.ResourceOperationBuilder
-
-