Class NuxeoPropertyData<T>
java.lang.Object
org.nuxeo.ecm.core.opencmis.impl.server.NuxeoPropertyDataBase<T>
org.nuxeo.ecm.core.opencmis.impl.server.NuxeoPropertyData<T>
- All Implemented Interfaces:
- org.apache.chemistry.opencmis.commons.data.ExtensionsData,- org.apache.chemistry.opencmis.commons.data.PropertyData<T>
- Direct Known Subclasses:
- NuxeoPropertyData.NuxeoPropertyBooleanData,- NuxeoPropertyData.NuxeoPropertyDateTimeData,- NuxeoPropertyData.NuxeoPropertyDecimalData,- NuxeoPropertyData.NuxeoPropertyHtmlData,- NuxeoPropertyData.NuxeoPropertyIdData,- NuxeoPropertyData.NuxeoPropertyIntegerData,- NuxeoPropertyData.NuxeoPropertyStringData,- NuxeoPropertyData.NuxeoPropertyUriData
Nuxeo implementation of an object's property, backed by a property of a 
DocumentModel.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classProperty for cmis:checkinComment.static classProperty for nuxeo:contentStreamDigest.static classProperty for cmis:contentStreamFileName.static classProperty for cmis:contentStreamHash.static classProperty for cmis:contentStreamLength.static classProperty for cmis:contentMimeTypeLength.static classProperty for cmis:isLatestMajorVersion.static classProperty for cmis:isLatestVersion.static classProperty for cmis:isMajorVersion.static classProperty for cmis:isVersionSeriesCheckedOut.static classProperty for cmis:name.static classProperty for cmis:parentId and nuxeo:parentId.static classProperty for cmis:path.static classProperty for cmis:versionLabel.static classProperty for cmis:versionSeriesCheckedOutBy.static classProperty for cmis:versionSeriesCheckedOutId.static classstatic classstatic classstatic classstatic classstatic classstatic classNested classes/interfaces inherited from class org.nuxeo.ecm.core.opencmis.impl.server.NuxeoPropertyDataBaseNuxeoPropertyDataBase.NuxeoPropertyBooleanDataFixed, NuxeoPropertyDataBase.NuxeoPropertyDataFixed<T>, NuxeoPropertyDataBase.NuxeoPropertyIdDataFixed, NuxeoPropertyDataBase.NuxeoPropertyIdMultiDataFixed, NuxeoPropertyDataBase.NuxeoPropertyIntegerDataFixed, NuxeoPropertyDataBase.NuxeoPropertyMultiDataFixed<T>, NuxeoPropertyDataBase.NuxeoPropertyStringDataFixed
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final org.apache.chemistry.opencmis.commons.server.CallContextprotected final Stringprotected final booleanFields inherited from class org.nuxeo.ecm.core.opencmis.impl.server.NuxeoPropertyDataBasedoc, propertyDefinition
- 
Constructor SummaryConstructorsConstructorDescriptionNuxeoPropertyData(org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> propertyDefinition, DocumentModel doc, String name, boolean readOnly, org.apache.chemistry.opencmis.commons.server.CallContext callContext) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic <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 ObjectconvertComplexPropertyToCMIS(ComplexProperty prop, org.apache.chemistry.opencmis.commons.server.CallContext callContext) protected static ObjectconvertToCMIS(Object value) protected static ObjectconvertToNuxeo(Object value, Type type) protected static StringextractDigestFromRequestHeaders(javax.servlet.http.HttpServletRequest request, String digestAlgorithm) protected static BlobgetBlob(DocumentModel doc) protected static org.apache.chemistry.opencmis.commons.enums.DateTimeFormatgetCMISDateTimeFormat(org.apache.chemistry.opencmis.commons.server.CallContext callContext) static org.apache.chemistry.opencmis.commons.data.ContentStreamgetContentStream(DocumentModel doc, javax.servlet.http.HttpServletRequest request) Deprecated.since 11.1, now unusedgetFacets(DocumentModel doc) Gets the doc's relevant facets.static BlobgetPersistentBlob(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String filename) Returns a Blob whose stream can be used several times.Gets the doc's secondary type ids.<U> UgetValue()Conversion from Nuxeo values to CMIS ones.protected static booleanstatic voidsetContentStream(DocumentModel doc, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean overwrite) voidstatic StringtranscodeBase64ToHex(String base64String) static StringtranscodeHexToBase64(String hexString) static voidvalidateBlobDigest(DocumentModel doc, org.apache.chemistry.opencmis.commons.server.CallContext callContext) static <T> voidvalidateCMISValue(Object value, org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> pd) Validates a CMIS value according to a property definition.Methods inherited from class org.nuxeo.ecm.core.opencmis.impl.server.NuxeoPropertyDataBasegetDisplayName, getExtensions, getId, getLocalName, getPropertyDefinition, getQueryName, setExtensions
- 
Field Details- 
name
- 
readOnlyprotected final boolean readOnly
- 
callContextprotected final org.apache.chemistry.opencmis.commons.server.CallContext callContext
 
- 
- 
Constructor Details- 
NuxeoPropertyDatapublic NuxeoPropertyData(org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> propertyDefinition, DocumentModel doc, String name, boolean readOnly, org.apache.chemistry.opencmis.commons.server.CallContext callContext) 
 
- 
- 
Method Details- 
constructpublic 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.
- 
getFacetsGets the doc's relevant facets.
- 
getSecondaryTypeIdsGets the doc's secondary type ids.
- 
getContentStream@Deprecated 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 Deprecated.since 11.1, now unused- Throws:
- org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException
 
- 
setContentStreampublic 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 - Throws:
- IOException
- org.apache.chemistry.opencmis.commons.exceptions.CmisContentAlreadyExistsException
- org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException
 
- 
getPersistentBlobpublic static Blob getPersistentBlob(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String filename) throws IOException Returns a Blob whose stream can be used several times.- Throws:
- IOException
 
- 
validateBlobDigestpublic static void validateBlobDigest(DocumentModel doc, org.apache.chemistry.opencmis.commons.server.CallContext callContext) 
- 
extractDigestFromRequestHeaders
- 
transcodeBase64ToHex- Throws:
- IllegalArgumentException
 
- 
transcodeHexToBase64
- 
getValuepublic <U> U getValue()Conversion from Nuxeo values to CMIS ones.- Overrides:
- getValuein class- NuxeoPropertyDataBase<T>
- Returns:
- either a primitive type or a List of them, or null
 
- 
convertToCMIS
- 
convertComplexPropertyToCMISprotected static Object convertComplexPropertyToCMIS(ComplexProperty prop, org.apache.chemistry.opencmis.commons.server.CallContext callContext) 
- 
getCMISDateTimeFormatprotected static org.apache.chemistry.opencmis.commons.enums.DateTimeFormat getCMISDateTimeFormat(org.apache.chemistry.opencmis.commons.server.CallContext callContext) 
- 
convertToNuxeo
- 
validateCMISValuepublic static <T> void validateCMISValue(Object value, org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> pd) Validates a CMIS value according to a property definition.
- 
getFirstValue- Specified by:
- getFirstValuein interface- org.apache.chemistry.opencmis.commons.data.PropertyData<T>
- Specified by:
- getFirstValuein class- NuxeoPropertyDataBase<T>
 
- 
getValues- Specified by:
- getValuesin interface- org.apache.chemistry.opencmis.commons.data.PropertyData<T>
- Overrides:
- getValuesin class- NuxeoPropertyDataBase<T>
 
- 
setValue- Overrides:
- setValuein class- NuxeoPropertyDataBase<T>
 
- 
getBlobprotected static Blob getBlob(DocumentModel doc) throws org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException - Throws:
- org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException
 
- 
isVersionOrProxyToVersion
 
-