public abstract class NuxeoPropertyData<T> extends NuxeoPropertyDataBase<T>
DocumentModel
.NuxeoPropertyDataBase.NuxeoPropertyBooleanDataFixed, NuxeoPropertyDataBase.NuxeoPropertyDataFixed<T>, NuxeoPropertyDataBase.NuxeoPropertyIdDataFixed, NuxeoPropertyDataBase.NuxeoPropertyIdMultiDataFixed, NuxeoPropertyDataBase.NuxeoPropertyIntegerDataFixed, NuxeoPropertyDataBase.NuxeoPropertyMultiDataFixed<T>, NuxeoPropertyDataBase.NuxeoPropertyStringDataFixed
Constructor and Description |
---|
NuxeoPropertyData(org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> propertyDefinition,
DocumentModel doc,
String name,
boolean readOnly,
org.apache.chemistry.opencmis.commons.server.CallContext callContext) |
Modifier and Type | Method and Description |
---|---|
static <U> org.apache.chemistry.opencmis.commons.data.PropertyData<U> |
construct(NuxeoObjectData data,
org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<U> pd,
org.apache.chemistry.opencmis.commons.server.CallContext callContext)
Factory for a new Property.
|
static org.apache.chemistry.opencmis.commons.data.ContentStream |
getContentStream(DocumentModel doc) |
T |
getFirstValue() |
static Blob |
getPersistentBlob(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream,
String filename)
Returns a Blob whose stream can be used several times.
|
<U> U |
getValue()
Conversion from Nuxeo values to CMIS ones.
|
List<T> |
getValues() |
static void |
setContentStream(DocumentModel doc,
org.apache.chemistry.opencmis.commons.data.ContentStream contentStream,
boolean overwrite) |
void |
setValue(Object value) |
static <T> void |
validateCMISValue(Object value,
org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> pd)
Validates a CMIS value according to a property definition.
|
getDisplayName, getExtensions, getId, getLocalName, getPropertyDefinition, getQueryName, setExtensions
public NuxeoPropertyData(org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> propertyDefinition, DocumentModel doc, String name, boolean readOnly, org.apache.chemistry.opencmis.commons.server.CallContext callContext)
public static <U> org.apache.chemistry.opencmis.commons.data.PropertyData<U> construct(NuxeoObjectData data, org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<U> pd, org.apache.chemistry.opencmis.commons.server.CallContext callContext)
public static org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(DocumentModel doc) throws org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException
public static void setContentStream(DocumentModel doc, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean overwrite) throws IOException, org.apache.chemistry.opencmis.commons.exceptions.CmisContentAlreadyExistsException, org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException
IOException
org.apache.chemistry.opencmis.commons.exceptions.CmisContentAlreadyExistsException
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException
public static Blob getPersistentBlob(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String filename) throws IOException
IOException
public <U> U getValue()
getValue
in class NuxeoPropertyDataBase<T>
null
public static <T> void validateCMISValue(Object value, org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> pd)
public T getFirstValue()
getFirstValue
in interface org.apache.chemistry.opencmis.commons.data.PropertyData<T>
getFirstValue
in class NuxeoPropertyDataBase<T>
public List<T> getValues()
getValues
in interface org.apache.chemistry.opencmis.commons.data.PropertyData<T>
getValues
in class NuxeoPropertyDataBase<T>
public void setValue(Object value)
setValue
in class NuxeoPropertyDataBase<T>
Copyright © 2015 Nuxeo SA. All rights reserved.