Class UpdateNonRdfSourceHeadersOperationBuilderImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.operations.AbstractResourceOperationBuilder
-
- org.fcrepo.kernel.impl.operations.AbstractRelaxableResourceOperationBuilder
-
- org.fcrepo.kernel.impl.operations.UpdateNonRdfSourceHeadersOperationBuilderImpl
-
- All Implemented Interfaces:
NonRdfSourceOperationBuilder
,RelaxableResourceOperationBuilder
,ResourceOperationBuilder
,UpdateNonRdfSourceHeadersOperationBuilder
public class UpdateNonRdfSourceHeadersOperationBuilderImpl extends AbstractRelaxableResourceOperationBuilder implements UpdateNonRdfSourceHeadersOperationBuilder
Builder for an operation for updating headers of non-rdf sources- Author:
- mikejritter, bbpennel
-
-
Field Summary
-
Fields inherited from class org.fcrepo.kernel.impl.operations.AbstractRelaxableResourceOperationBuilder
createdBy, createdDate, lastModifiedBy, lastModifiedDate, serverManagedPropsMode
-
Fields inherited from class org.fcrepo.kernel.impl.operations.AbstractResourceOperationBuilder
rescId, transaction, userPrincipal
-
-
Constructor Summary
Constructors Constructor Description UpdateNonRdfSourceHeadersOperationBuilderImpl(Transaction transaction, FedoraId resourceId, ServerManagedPropsMode serverManagedPropsMode)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateNonRdfSourceHeadersOperation
build()
Build the ResourceOperation constructed by this builderUpdateNonRdfSourceHeadersOperationBuilder
contentDigests(Collection<URI> digests)
Collection of digests for content in this resourceUpdateNonRdfSourceHeadersOperationBuilder
contentSize(long size)
Set the number of bytes for the contentUpdateNonRdfSourceHeadersOperationBuilder
filename(String filename)
Set the filenameUpdateNonRdfSourceHeadersOperationBuilder
mimeType(String mimetype)
Set the mimetype for content in this resourceUpdateNonRdfSourceHeadersOperationBuilder
relaxedProperties(org.apache.jena.rdf.model.Model model)
Set the relaxed managed properties for this resource if the server is in relaxed mode.UpdateNonRdfSourceHeadersOperationBuilder
userPrincipal(String userPrincipal)
Set the principal for the user performing the operation
-
-
-
Constructor Detail
-
UpdateNonRdfSourceHeadersOperationBuilderImpl
public UpdateNonRdfSourceHeadersOperationBuilderImpl(Transaction transaction, FedoraId resourceId, ServerManagedPropsMode serverManagedPropsMode)
Constructor- Parameters:
transaction
- the transactionresourceId
- the fedora identifierserverManagedPropsMode
- server managed properties mode
-
-
Method Detail
-
mimeType
public UpdateNonRdfSourceHeadersOperationBuilder mimeType(String mimetype)
Description copied from interface:NonRdfSourceOperationBuilder
Set the mimetype for content in this resource- Specified by:
mimeType
in interfaceNonRdfSourceOperationBuilder
- Specified by:
mimeType
in interfaceUpdateNonRdfSourceHeadersOperationBuilder
- Parameters:
mimetype
- the mime-type.- Returns:
- the builder.
-
filename
public UpdateNonRdfSourceHeadersOperationBuilder filename(String filename)
Description copied from interface:NonRdfSourceOperationBuilder
Set the filename- Specified by:
filename
in interfaceNonRdfSourceOperationBuilder
- Specified by:
filename
in interfaceUpdateNonRdfSourceHeadersOperationBuilder
- Parameters:
filename
- name of the file.- Returns:
- the builder.
-
contentDigests
public UpdateNonRdfSourceHeadersOperationBuilder contentDigests(Collection<URI> digests)
Description copied from interface:NonRdfSourceOperationBuilder
Collection of digests for content in this resource- Specified by:
contentDigests
in interfaceNonRdfSourceOperationBuilder
- Parameters:
digests
- collection of digests- Returns:
- the builder.
-
contentSize
public UpdateNonRdfSourceHeadersOperationBuilder contentSize(long size)
Description copied from interface:NonRdfSourceOperationBuilder
Set the number of bytes for the content- Specified by:
contentSize
in interfaceNonRdfSourceOperationBuilder
- Parameters:
size
- size of the content in bytes- Returns:
- the builder
-
userPrincipal
public UpdateNonRdfSourceHeadersOperationBuilder userPrincipal(String userPrincipal)
Description copied from interface:ResourceOperationBuilder
Set the principal for the user performing the operation- Specified by:
userPrincipal
in interfaceNonRdfSourceOperationBuilder
- Specified by:
userPrincipal
in interfaceResourceOperationBuilder
- Overrides:
userPrincipal
in classAbstractResourceOperationBuilder
- Parameters:
userPrincipal
- user principal- Returns:
- this builder
-
relaxedProperties
public UpdateNonRdfSourceHeadersOperationBuilder relaxedProperties(org.apache.jena.rdf.model.Model model)
Description copied from interface:RelaxableResourceOperationBuilder
Set the relaxed managed properties for this resource if the server is in relaxed mode.- Specified by:
relaxedProperties
in interfaceRelaxableResourceOperationBuilder
- Specified by:
relaxedProperties
in interfaceUpdateNonRdfSourceHeadersOperationBuilder
- Overrides:
relaxedProperties
in classAbstractRelaxableResourceOperationBuilder
- Parameters:
model
- rdf of the resource- Returns:
- this builder
-
build
public UpdateNonRdfSourceHeadersOperation build()
Description copied from interface:ResourceOperationBuilder
Build the ResourceOperation constructed by this builder- Specified by:
build
in interfaceNonRdfSourceOperationBuilder
- Specified by:
build
in interfaceResourceOperationBuilder
- Specified by:
build
in interfaceUpdateNonRdfSourceHeadersOperationBuilder
- Returns:
- the constructed operation
-
-