Package org.fcrepo.kernel.api.operations
Interface NonRdfSourceOperationBuilder
-
- All Superinterfaces:
ResourceOperationBuilder
- All Known Subinterfaces:
CreateNonRdfSourceOperationBuilder
- All Known Implementing Classes:
AbstractNonRdfSourceOperationBuilder,CreateNonRdfSourceOperationBuilderImpl,UpdateNonRdfSourceOperationBuilder
public interface NonRdfSourceOperationBuilder extends ResourceOperationBuilder
Builder for an operation for interacting with a non-rdf source- Author:
- bbpennel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NonRdfSourceOperationbuild()Build the ResourceOperation constructed by this builderNonRdfSourceOperationBuildercontentDigests(Collection<URI> digests)Collection of digests for content in this resourceNonRdfSourceOperationBuildercontentSize(long size)Set the number of bytes for the contentNonRdfSourceOperationBuilderfilename(String filename)Set the filenameNonRdfSourceOperationBuildermimeType(String mimetype)Set the mimetype for content in this resourceNonRdfSourceOperationBuilderuserPrincipal(String userPrincipal)Set the principal for the user performing the operation
-
-
-
Method Detail
-
mimeType
NonRdfSourceOperationBuilder mimeType(String mimetype)
Set the mimetype for content in this resource- Parameters:
mimetype- the mime-type.- Returns:
- the builder.
-
filename
NonRdfSourceOperationBuilder filename(String filename)
Set the filename- Parameters:
filename- name of the file.- Returns:
- the builder.
-
contentDigests
NonRdfSourceOperationBuilder contentDigests(Collection<URI> digests)
Collection of digests for content in this resource- Parameters:
digests- collection of digests- Returns:
- the builder.
-
contentSize
NonRdfSourceOperationBuilder contentSize(long size)
Set the number of bytes for the content- Parameters:
size- size of the content in bytes- Returns:
- the builder
-
userPrincipal
NonRdfSourceOperationBuilder userPrincipal(String userPrincipal)
Description copied from interface:ResourceOperationBuilderSet the principal for the user performing the operation- Specified by:
userPrincipalin interfaceResourceOperationBuilder- Parameters:
userPrincipal- user principal- Returns:
- this builder
-
build
NonRdfSourceOperation build()
Description copied from interface:ResourceOperationBuilderBuild the ResourceOperation constructed by this builder- Specified by:
buildin interfaceResourceOperationBuilder- Returns:
- the constructed operation
-
-