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 javax.jcr.Binary |
completeBinaryUpload(@NotNull String uploadToken) |
@Nullable javax.jcr.Binary |
createBinary(org.apache.jackrabbit.oak.api.Blob blob) |
@NotNull javax.jcr.Binary |
createBinary(@NotNull InputStream stream) |
@NotNull javax.jcr.Value |
createValue(@NotNull javax.jcr.Binary value) |
@NotNull javax.jcr.Value |
createValue(@NotNull InputStream value) |
static @NotNull javax.jcr.Value |
createValue(@NotNull org.apache.jackrabbit.oak.api.PropertyState property,
@NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
Deprecated.
use
PartialValueFactory.createValue(PropertyState) instead. |
static @NotNull javax.jcr.Value |
createValue(@NotNull org.apache.jackrabbit.oak.api.PropertyValue property,
@NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
Deprecated.
use
PartialValueFactory.createValue(PropertyState) instead. |
static @NotNull List<javax.jcr.Value> |
createValues(@NotNull org.apache.jackrabbit.oak.api.PropertyState property,
@NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
Deprecated.
use
PartialValueFactory.createValues(PropertyState) instead. |
@Nullable org.apache.jackrabbit.oak.api.Blob |
getBlob(javax.jcr.Binary binary) |
@Nullable org.apache.jackrabbit.api.binary.BinaryUpload |
initiateBinaryUpload(long maxSize,
int maxParts) |
createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValues, getNamePathMapperpublic 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.@Deprecated @NotNull public static @NotNull javax.jcr.Value createValue(@NotNull @NotNull org.apache.jackrabbit.oak.api.PropertyState property, @NotNull @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
PartialValueFactory.createValue(PropertyState) instead.Value based on a
PropertyState. The Value instance created by this factory
method will not be backed with a BlobAccessProvider and the
Binary retrieved from the Value does not provide a
download URI, even if the underlying blob store supports it.property - The property statenamePathMapper - The name/path mapping used for converting JCR
names/paths to the internal representation.Value instanceIllegalArgumentException - if property.isArray() is true.@Deprecated @NotNull public static @NotNull javax.jcr.Value createValue(@NotNull @NotNull org.apache.jackrabbit.oak.api.PropertyValue property, @NotNull @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
PartialValueFactory.createValue(PropertyState) instead.Value based on a
PropertyValue. The Value instance created by this factory
method will not be backed with a BlobAccessProvider and the
Binary retrieved from the Value does not provide a
download URI, even if the underlying blob store supports it.
Utility method for creating a Value based on a PropertyValue.property - The property valuenamePathMapper - The name/path mapping used for converting JCR names/paths to
the internal representation.Value instanceIllegalArgumentException - if property.isArray() is true.@Deprecated @NotNull public static @NotNull List<javax.jcr.Value> createValues(@NotNull @NotNull org.apache.jackrabbit.oak.api.PropertyState property, @NotNull @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
PartialValueFactory.createValues(PropertyState) instead.Values based on a
PropertyState. The Value instances created by this factory
method will not be backed with a BlobAccessProvider and the
Binary retrieved from the Value does not provide a
download URI, even if the underlying blob store supports it.property - The property statenamePathMapper - The name/path mapping used for converting JCR names/paths to
the internal representation.Value instances@NotNull
public @NotNull javax.jcr.Value createValue(@NotNull
@NotNull InputStream value)
createValue in interface javax.jcr.ValueFactory@NotNull
public @NotNull javax.jcr.Value createValue(@NotNull
@NotNull javax.jcr.Binary value)
createValue in interface javax.jcr.ValueFactory@NotNull
public @NotNull javax.jcr.Binary createBinary(@NotNull
@NotNull InputStream stream)
throws javax.jcr.RepositoryException
createBinary in interface javax.jcr.ValueFactoryjavax.jcr.RepositoryException@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 javax.jcr.Binary completeBinaryUpload(@NotNull
@NotNull String uploadToken)
throws javax.jcr.RepositoryException
completeBinaryUpload in interface org.apache.jackrabbit.api.JackrabbitValueFactoryjavax.jcr.RepositoryException@Nullable
public @Nullable javax.jcr.Binary createBinary(org.apache.jackrabbit.oak.api.Blob blob)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException@Nullable
public @Nullable org.apache.jackrabbit.oak.api.Blob getBlob(javax.jcr.Binary binary)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.