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
Modifier and Type | Field and Description |
---|---|
protected org.apache.chemistry.opencmis.commons.server.CallContext |
callContext |
protected String |
name |
protected boolean |
readOnly |
doc, propertyDefinition
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.
|
protected static Object |
convertComplexPropertyToCMIS(ComplexProperty prop,
org.apache.chemistry.opencmis.commons.server.CallContext callContext) |
protected static Object |
convertToCMIS(Object value) |
protected static Object |
convertToNuxeo(Object value,
Type type) |
protected static Blob |
getBlob(DocumentModel doc) |
protected static org.apache.chemistry.opencmis.commons.enums.DateTimeFormat |
getCMISDateTimeFormat(org.apache.chemistry.opencmis.commons.server.CallContext callContext) |
static org.apache.chemistry.opencmis.commons.data.ContentStream |
getContentStream(DocumentModel doc,
javax.servlet.http.HttpServletRequest request) |
static List<String> |
getFacets(DocumentModel doc)
Gets the doc's relevant facets.
|
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.
|
static List<String> |
getSecondaryTypeIds(DocumentModel doc)
Gets the doc's secondary type ids.
|
<U> U |
getValue()
Conversion from Nuxeo values to CMIS ones.
|
List<T> |
getValues() |
protected static boolean |
isLiveDocumentMajorVersion(DocumentModel doc) |
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
protected final boolean readOnly
protected final org.apache.chemistry.opencmis.commons.server.CallContext callContext
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 List<String> getFacets(DocumentModel doc)
public static List<String> getSecondaryTypeIds(DocumentModel doc)
public static org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(DocumentModel doc, javax.servlet.http.HttpServletRequest request) 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
protected static Object convertToCMIS(Object value)
protected static Object convertComplexPropertyToCMIS(ComplexProperty prop, org.apache.chemistry.opencmis.commons.server.CallContext callContext)
protected static org.apache.chemistry.opencmis.commons.enums.DateTimeFormat getCMISDateTimeFormat(org.apache.chemistry.opencmis.commons.server.CallContext callContext)
protected static Object convertToNuxeo(Object value, Type type)
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>
protected static Blob getBlob(DocumentModel doc) throws org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException
protected static boolean isLiveDocumentMajorVersion(DocumentModel doc)
Copyright © 2015 Nuxeo SA. All rights reserved.