Class AbstractNonRdfSourceOperationBuilder

java.lang.Object
org.fcrepo.kernel.impl.operations.AbstractNonRdfSourceOperationBuilder
All Implemented Interfaces:
org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder, org.fcrepo.kernel.api.operations.ResourceOperationBuilder
Direct Known Subclasses:
CreateNonRdfSourceOperationBuilderImpl, UpdateNonRdfSourceOperationBuilder

public abstract class AbstractNonRdfSourceOperationBuilder extends Object implements org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder
An abstract operation for interacting with a non-rdf source
Author:
bbpennel
  • Field Details

  • Constructor Details

    • AbstractNonRdfSourceOperationBuilder

      protected AbstractNonRdfSourceOperationBuilder(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId rescId, String handling, URI externalUri)
      Constructor for external binary.
      Parameters:
      transaction - the transaction
      rescId - the internal identifier
      handling - the external content handling type.
      externalUri - the external content URI.
    • AbstractNonRdfSourceOperationBuilder

      protected AbstractNonRdfSourceOperationBuilder(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId rescId, InputStream stream)
      Constructor for internal binary.
      Parameters:
      transaction - the transaction
      rescId - the internal identifier.
      stream - the content stream.
  • Method Details

    • mimeType

      public org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder mimeType(String mimetype)
      Specified by:
      mimeType in interface org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder
    • filename

      public org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder filename(String filename)
      Specified by:
      filename in interface org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder
    • contentDigests

      public org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder contentDigests(Collection<URI> digests)
      Specified by:
      contentDigests in interface org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder
    • contentSize

      public org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder contentSize(long size)
      Specified by:
      contentSize in interface org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder
    • userPrincipal

      public org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder userPrincipal(String userPrincipal)
      Specified by:
      userPrincipal in interface org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder
      Specified by:
      userPrincipal in interface org.fcrepo.kernel.api.operations.ResourceOperationBuilder