Class ValueFactoryImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.value.jcr.PartialValueFactory
-
- org.apache.jackrabbit.oak.plugins.value.jcr.ValueFactoryImpl
-
- All Implemented Interfaces:
javax.jcr.ValueFactory
,org.apache.jackrabbit.api.JackrabbitValueFactory
public class ValueFactoryImpl extends PartialValueFactory implements org.apache.jackrabbit.api.JackrabbitValueFactory
Implementation ofValueFactory
interface.
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.oak.plugins.value.jcr.PartialValueFactory
DEFAULT_BLOB_ACCESS_PROVIDER
-
-
Constructor Summary
Constructors Constructor Description ValueFactoryImpl(@NotNull org.apache.jackrabbit.oak.api.Root root, @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
Creates a new instance ofValueFactory
.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 ofValueFactory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable javax.jcr.Binary
completeBinaryUpload(@NotNull java.lang.String uploadToken)
@NotNull javax.jcr.Binary
createBinary(@NotNull java.io.InputStream stream)
@Nullable javax.jcr.Binary
createBinary(org.apache.jackrabbit.oak.api.Blob blob)
@NotNull javax.jcr.Value
createValue(@NotNull java.io.InputStream value)
@NotNull javax.jcr.Value
createValue(@NotNull javax.jcr.Binary value)
@Nullable org.apache.jackrabbit.oak.api.Blob
getBlob(javax.jcr.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)
-
Methods inherited from class org.apache.jackrabbit.oak.plugins.value.jcr.PartialValueFactory
createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValues, getNamePathMapper
-
-
-
-
Constructor Detail
-
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 ofValueFactory
.- Parameters:
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.
-
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 ofValueFactory
. TheValue
s 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 valuesnamePathMapper
- The name/path mapping used for converting JCR names/paths to the internal representation.
-
-
Method Detail
-
createValue
@NotNull public @NotNull javax.jcr.Value createValue(@NotNull @NotNull java.io.InputStream value)
- Specified by:
createValue
in interfacejavax.jcr.ValueFactory
-
createValue
@NotNull public @NotNull javax.jcr.Value createValue(@NotNull @NotNull javax.jcr.Binary value)
- Specified by:
createValue
in interfacejavax.jcr.ValueFactory
-
createBinary
@NotNull public @NotNull javax.jcr.Binary createBinary(@NotNull @NotNull java.io.InputStream stream) throws javax.jcr.RepositoryException
- Specified by:
createBinary
in interfacejavax.jcr.ValueFactory
- Throws:
javax.jcr.RepositoryException
-
initiateBinaryUpload
@Nullable public @Nullable org.apache.jackrabbit.api.binary.BinaryUpload initiateBinaryUpload(long maxSize, int maxParts)
- Specified by:
initiateBinaryUpload
in interfaceorg.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 interfaceorg.apache.jackrabbit.api.JackrabbitValueFactory
-
completeBinaryUpload
@Nullable public @Nullable javax.jcr.Binary completeBinaryUpload(@NotNull @NotNull java.lang.String uploadToken) throws javax.jcr.RepositoryException
- Specified by:
completeBinaryUpload
in interfaceorg.apache.jackrabbit.api.JackrabbitValueFactory
- Throws:
javax.jcr.RepositoryException
-
createBinary
@Nullable public @Nullable javax.jcr.Binary createBinary(org.apache.jackrabbit.oak.api.Blob blob) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
getBlob
@Nullable public @Nullable org.apache.jackrabbit.oak.api.Blob getBlob(javax.jcr.Binary binary) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
-