public class ValueFactoryImpl extends PartialValueFactory implements javax.jcr.ValueFactory
ValueFactory interface.DEFAULT_BLOB_ACCESS_PROVIDER, namePathMapper| 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 |
|---|---|
@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. |
createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValues, getBlobAccessProviderpublic 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.RepositoryExceptionCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.