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 NonRdfSourceOperation
build()
Build the ResourceOperation constructed by this builderNonRdfSourceOperationBuilder
contentDigests(Collection<URI> digests)
Collection of digests for content in this resourceNonRdfSourceOperationBuilder
contentSize(long size)
Set the number of bytes for the contentNonRdfSourceOperationBuilder
filename(String filename)
Set the filenameNonRdfSourceOperationBuilder
mimeType(String mimetype)
Set the mimetype for content in this resourceNonRdfSourceOperationBuilder
userPrincipal(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:ResourceOperationBuilder
Set the principal for the user performing the operation- Specified by:
userPrincipal
in interfaceResourceOperationBuilder
- Parameters:
userPrincipal
- user principal- Returns:
- this builder
-
build
NonRdfSourceOperation build()
Description copied from interface:ResourceOperationBuilder
Build the ResourceOperation constructed by this builder- Specified by:
build
in interfaceResourceOperationBuilder
- Returns:
- the constructed operation
-
-