Class CreateNonRdfSourceOperationBuilderImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.operations.AbstractNonRdfSourceOperationBuilder
-
- org.fcrepo.kernel.impl.operations.CreateNonRdfSourceOperationBuilderImpl
-
- All Implemented Interfaces:
org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder,org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder,org.fcrepo.kernel.api.operations.ResourceOperationBuilder
public class CreateNonRdfSourceOperationBuilderImpl extends AbstractNonRdfSourceOperationBuilder implements org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder
Builder for operations to create new non-rdf sources- Author:
- bbpennel
-
-
Field Summary
-
Fields inherited from class org.fcrepo.kernel.impl.operations.AbstractNonRdfSourceOperationBuilder
content, contentSize, digests, externalType, externalURI, filename, mimeType, resourceId, userPrincipal
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCreateNonRdfSourceOperationBuilderImpl(org.fcrepo.kernel.api.identifiers.FedoraId rescId, InputStream stream)Constructor for internal binary.protectedCreateNonRdfSourceOperationBuilderImpl(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 CreateNonRdfSourceOperationbuild()org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuildercontentDigests(Collection<URI> digests)org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuildercontentSize(long size)org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilderfilename(String filename)org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuildermimeType(String mimeType)org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilderparentId(org.fcrepo.kernel.api.identifiers.FedoraId parentId)org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilderuserPrincipal(String userPrincipal)
-
-
-
Constructor Detail
-
CreateNonRdfSourceOperationBuilderImpl
protected CreateNonRdfSourceOperationBuilderImpl(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.
-
CreateNonRdfSourceOperationBuilderImpl
protected CreateNonRdfSourceOperationBuilderImpl(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.CreateNonRdfSourceOperationBuilder mimeType(String mimeType)
- Specified by:
mimeTypein interfaceorg.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder- Specified by:
mimeTypein interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder- Overrides:
mimeTypein classAbstractNonRdfSourceOperationBuilder
-
filename
public org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder filename(String filename)
- Specified by:
filenamein interfaceorg.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder- Specified by:
filenamein interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder- Overrides:
filenamein classAbstractNonRdfSourceOperationBuilder
-
contentDigests
public org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder contentDigests(Collection<URI> digests)
- Specified by:
contentDigestsin interfaceorg.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder- Specified by:
contentDigestsin interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder- Overrides:
contentDigestsin classAbstractNonRdfSourceOperationBuilder
-
contentSize
public org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder contentSize(long size)
- Specified by:
contentSizein interfaceorg.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder- Specified by:
contentSizein interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder- Overrides:
contentSizein classAbstractNonRdfSourceOperationBuilder
-
userPrincipal
public org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder userPrincipal(String userPrincipal)
- Specified by:
userPrincipalin interfaceorg.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder- Specified by:
userPrincipalin interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder- Specified by:
userPrincipalin interfaceorg.fcrepo.kernel.api.operations.ResourceOperationBuilder- Overrides:
userPrincipalin classAbstractNonRdfSourceOperationBuilder
-
parentId
public org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder parentId(org.fcrepo.kernel.api.identifiers.FedoraId parentId)
- Specified by:
parentIdin interfaceorg.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder
-
build
public CreateNonRdfSourceOperation build()
- Specified by:
buildin interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder- Specified by:
buildin interfaceorg.fcrepo.kernel.api.operations.ResourceOperationBuilder
-
-