Class CreateNonRdfSourceOperationBuilderImpl

  • All Implemented Interfaces:
    org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder, org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder, org.fcrepo.kernel.api.operations.ResourceOperationBuilder

    public class CreateNonRdfSourceOperationBuilderImpl
    extends AbstractNonRdfSourceOperationBuilder
    implements org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder
    Builder for operations to create new non-rdf sources
    Author:
    bbpennel
    • Constructor Detail

      • CreateNonRdfSourceOperationBuilderImpl

        protected CreateNonRdfSourceOperationBuilderImpl​(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.
      • CreateNonRdfSourceOperationBuilderImpl

        protected CreateNonRdfSourceOperationBuilderImpl​(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 Detail

      • mimeType

        public org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder mimeType​(String mimeType)
        Specified by:
        mimeType in interface org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder
        Specified by:
        mimeType in interface org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder
        Overrides:
        mimeType in class AbstractNonRdfSourceOperationBuilder
      • filename

        public org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder filename​(String filename)
        Specified by:
        filename in interface org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder
        Specified by:
        filename in interface org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder
        Overrides:
        filename in class AbstractNonRdfSourceOperationBuilder
      • contentDigests

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

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

        public org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder userPrincipal​(String userPrincipal)
        Specified by:
        userPrincipal in interface org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder
        Specified by:
        userPrincipal in interface org.fcrepo.kernel.api.operations.NonRdfSourceOperationBuilder
        Specified by:
        userPrincipal in interface org.fcrepo.kernel.api.operations.ResourceOperationBuilder
        Overrides:
        userPrincipal in class AbstractNonRdfSourceOperationBuilder
      • parentId

        public org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder parentId​(org.fcrepo.kernel.api.identifiers.FedoraId parentId)
        Specified by:
        parentId in interface org.fcrepo.kernel.api.operations.CreateNonRdfSourceOperationBuilder
      • build

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