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.-
Field Summary
Fields inherited from class org.apache.jackrabbit.oak.plugins.value.jcr.PartialValueFactory
DEFAULT_BLOB_ACCESS_PROVIDER -
Constructor Summary
ConstructorsConstructorDescriptionValueFactoryImpl(@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
Modifier and TypeMethodDescription@Nullable BinarycompleteBinaryUpload(@NotNull String uploadToken) @NotNull BinarycreateBinary(@NotNull InputStream stream) @Nullable BinarycreateBinary(org.apache.jackrabbit.oak.api.Blob blob) @NotNull ValuecreateValue(@NotNull InputStream value) @NotNull ValuecreateValue(@NotNull Binary value) @Nullable org.apache.jackrabbit.oak.api.Blob@Nullable org.apache.jackrabbit.api.binary.BinaryUploadinitiateBinaryUpload(long maxSize, int maxParts) @Nullable org.apache.jackrabbit.api.binary.BinaryUploadinitiateBinaryUpload(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, getNamePathMapperMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.jcr.ValueFactory
createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue
-
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 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. TheValues 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 Details
-
createValue
- Specified by:
createValuein interfaceValueFactory
-
createValue
- Specified by:
createValuein interfaceValueFactory
-
createBinary
@NotNull public @NotNull Binary createBinary(@NotNull @NotNull InputStream stream) throws RepositoryException - Specified by:
createBinaryin interfaceValueFactory- Throws:
RepositoryException
-
initiateBinaryUpload
@Nullable public @Nullable org.apache.jackrabbit.api.binary.BinaryUpload initiateBinaryUpload(long maxSize, int maxParts) - Specified by:
initiateBinaryUploadin 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:
initiateBinaryUploadin interfaceorg.apache.jackrabbit.api.JackrabbitValueFactory
-
completeBinaryUpload
@Nullable public @Nullable Binary completeBinaryUpload(@NotNull @NotNull String uploadToken) throws RepositoryException - Specified by:
completeBinaryUploadin interfaceorg.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
-