public class ValueFactoryImpl extends PartialValueFactory implements org.apache.jackrabbit.api.JackrabbitValueFactory
ValueFactory interface.DEFAULT_BLOB_ACCESS_PROVIDER| Constructor and Description |
|---|
ValueFactoryImpl(@NotNull org.apache.jackrabbit.oak.api.Root root,
@NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
Creates a new instance of
ValueFactory. |
ValueFactoryImpl(@NotNull org.apache.jackrabbit.oak.api.Root root,
@NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper,
@NotNull org.apache.jackrabbit.oak.api.blob.BlobAccessProvider blobAccessProvider)
Creates a new instance of
ValueFactory. |
| Modifier and Type | Method and Description |
|---|---|
@Nullable Binary |
completeBinaryUpload(@NotNull String uploadToken) |
@Nullable Binary |
createBinary(org.apache.jackrabbit.oak.api.Blob blob) |
@NotNull Binary |
createBinary(@NotNull InputStream stream) |
@NotNull Value |
createValue(@NotNull Binary value) |
@NotNull Value |
createValue(@NotNull InputStream value) |
@Nullable org.apache.jackrabbit.oak.api.Blob |
getBlob(Binary binary) |
@Nullable org.apache.jackrabbit.api.binary.BinaryUpload |
initiateBinaryUpload(long maxSize,
int maxParts) |
@Nullable org.apache.jackrabbit.api.binary.BinaryUpload |
initiateBinaryUpload(long maxSize,
int maxParts,
@NotNull org.apache.jackrabbit.api.binary.BinaryUploadOptions options) |
createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValues, getNamePathMapperclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValuepublic 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)
ValueFactory.root - the root instance for creating binary valuesnamePathMapper - The name/path mapping used for converting JCR names/paths toblobAccessProvider - The blob access provider
the internal representation.public ValueFactoryImpl(@NotNull
@NotNull org.apache.jackrabbit.oak.api.Root root,
@NotNull
@NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
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.root - the root instance for creating binary valuesnamePathMapper - The name/path mapping used for converting JCR names/paths to
the internal representation.@NotNull public @NotNull Value createValue(@NotNull @NotNull InputStream value)
createValue in interface ValueFactory@NotNull public @NotNull Value createValue(@NotNull @NotNull Binary value)
createValue in interface ValueFactory@NotNull public @NotNull Binary createBinary(@NotNull @NotNull InputStream stream) throws RepositoryException
createBinary in interface ValueFactoryRepositoryException@Nullable public @Nullable org.apache.jackrabbit.api.binary.BinaryUpload initiateBinaryUpload(long maxSize, int maxParts)
initiateBinaryUpload in interface org.apache.jackrabbit.api.JackrabbitValueFactory@Nullable public @Nullable org.apache.jackrabbit.api.binary.BinaryUpload initiateBinaryUpload(long maxSize, int maxParts, @NotNull @NotNull org.apache.jackrabbit.api.binary.BinaryUploadOptions options)
initiateBinaryUpload in interface org.apache.jackrabbit.api.JackrabbitValueFactory@Nullable public @Nullable Binary completeBinaryUpload(@NotNull @NotNull String uploadToken) throws RepositoryException
completeBinaryUpload in interface org.apache.jackrabbit.api.JackrabbitValueFactoryRepositoryException@Nullable public @Nullable Binary createBinary(org.apache.jackrabbit.oak.api.Blob blob) throws RepositoryException
RepositoryException@Nullable public @Nullable org.apache.jackrabbit.oak.api.Blob getBlob(Binary binary) throws RepositoryException
RepositoryExceptionCopyright © 2012–2020 The Apache Software Foundation. All rights reserved.