Package org.fcrepo.kernel.api.operations
Interface NonRdfSourceOperationBuilder
- All Superinterfaces:
ResourceOperationBuilder
- All Known Subinterfaces:
CreateNonRdfSourceOperationBuilder,UpdateNonRdfSourceHeadersOperationBuilder
Builder for an operation for interacting with a non-rdf source
- Author:
- bbpennel
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the ResourceOperation constructed by this buildercontentDigests(Collection<URI> digests) Collection of digests for content in this resourcecontentSize(long size) Set the number of bytes for the contentSet the filenameSet the mimetype for content in this resourceuserPrincipal(String userPrincipal) Set the principal for the user performing the operation
-
Method Details
-
mimeType
Set the mimetype for content in this resource- Parameters:
mimetype- the mime-type.- Returns:
- the builder.
-
filename
Set the filename- Parameters:
filename- name of the file.- Returns:
- the builder.
-
contentDigests
Collection of digests for content in this resource- Parameters:
digests- collection of digests- Returns:
- the builder.
-
contentSize
Set the number of bytes for the content- Parameters:
size- size of the content in bytes- Returns:
- the builder
-
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
Description copied from interface:ResourceOperationBuilderBuild the ResourceOperation constructed by this builder- Specified by:
buildin interfaceResourceOperationBuilder- Returns:
- the constructed operation
-