Class ValueFactoryImpl

java.lang.Object
org.apache.jackrabbit.oak.plugins.value.jcr.PartialValueFactory
org.apache.jackrabbit.oak.plugins.value.jcr.ValueFactoryImpl
All Implemented Interfaces:
ValueFactory, org.apache.jackrabbit.api.JackrabbitValueFactory

public class ValueFactoryImpl extends PartialValueFactory implements org.apache.jackrabbit.api.JackrabbitValueFactory
Implementation of ValueFactory interface.
  • Constructor Details

    • ValueFactoryImpl

      public ValueFactoryImpl(@NotNull @NotNull org.apache.jackrabbit.oak.api.Root root, @NotNull @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper, @NotNull @NotNull org.apache.jackrabbit.oak.api.blob.BlobAccessProvider blobAccessProvider)
      Creates a new instance of ValueFactory.
      Parameters:
      root - the root instance for creating binary values
      namePathMapper - The name/path mapping used for converting JCR names/paths to
      blobAccessProvider - The blob access provider the internal representation.
    • ValueFactoryImpl

      public ValueFactoryImpl(@NotNull @NotNull org.apache.jackrabbit.oak.api.Root root, @NotNull @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
      Creates a new instance of ValueFactory. The Values created by this value factory instance will not be backed by a blob access provider and never return a download URI for a binary value.
      Parameters:
      root - the root instance for creating binary values
      namePathMapper - The name/path mapping used for converting JCR names/paths to the internal representation.
  • Method Details

    • createValue

      @NotNull public @NotNull Value createValue(@NotNull @NotNull InputStream value)
      Specified by:
      createValue in interface ValueFactory
    • createValue

      @NotNull public @NotNull Value createValue(@NotNull @NotNull Binary value)
      Specified by:
      createValue in interface ValueFactory
    • createBinary

      @NotNull public @NotNull Binary createBinary(@NotNull @NotNull InputStream stream) throws RepositoryException
      Specified by:
      createBinary in interface ValueFactory
      Throws:
      RepositoryException
    • initiateBinaryUpload

      @Nullable public @Nullable org.apache.jackrabbit.api.binary.BinaryUpload initiateBinaryUpload(long maxSize, int maxParts)
      Specified by:
      initiateBinaryUpload in interface org.apache.jackrabbit.api.JackrabbitValueFactory
    • initiateBinaryUpload

      @Nullable public @Nullable org.apache.jackrabbit.api.binary.BinaryUpload initiateBinaryUpload(long maxSize, int maxParts, @NotNull @NotNull org.apache.jackrabbit.api.binary.BinaryUploadOptions options)
      Specified by:
      initiateBinaryUpload in interface org.apache.jackrabbit.api.JackrabbitValueFactory
    • completeBinaryUpload

      @Nullable public @Nullable Binary completeBinaryUpload(@NotNull @NotNull String uploadToken) throws RepositoryException
      Specified by:
      completeBinaryUpload in interface org.apache.jackrabbit.api.JackrabbitValueFactory
      Throws:
      RepositoryException
    • createBinary

      @Nullable public @Nullable Binary createBinary(org.apache.jackrabbit.oak.api.Blob blob) throws RepositoryException
      Throws:
      RepositoryException
    • getBlob

      @Nullable public @Nullable org.apache.jackrabbit.oak.api.Blob getBlob(Binary binary) throws RepositoryException
      Throws:
      RepositoryException