public class PropertyUtil
extends java.lang.Object
| Constructor and Description |
|---|
PropertyUtil() |
| Modifier and Type | Method and Description |
|---|---|
javax.xml.datatype.XMLGregorianCalendar |
convert(java.util.Date date)
Converts Date object to XMLGregorianCalendar object
|
org.alfresco.repo.cmis.ws.CmisProperty |
createProperty(java.lang.String pdid,
org.alfresco.cmis.CMISDataTypeEnum dataType,
java.io.Serializable value)
Creates and initializes appropriate CmisProperty instance by name and data type
|
java.lang.Object |
getCmisPropertyValue(org.alfresco.repo.cmis.ws.CmisPropertiesType cmisProperties,
java.lang.String property,
java.lang.Object defaultValue)
Extracts from CmisPropertiesType instance property by its name and returns casted to appropriate type value of the extracted property
|
org.alfresco.repo.cmis.ws.CmisPropertiesType |
getProperties(java.lang.Object object,
org.alfresco.cmis.PropertyFilter filter)
Get CMIS properties for object
|
java.util.Map |
getPropertiesMap(org.alfresco.repo.cmis.ws.CmisPropertiesType cmisProperties)
Converts CmisPropertiesType properties representation to rapidly accessible form
|
java.lang.Object |
getProperty(org.alfresco.service.cmr.repository.NodeRef objectNodeRef,
java.lang.String propertyName,
java.lang.Object defaultValue)
Gets property value by its name from Node Reference object
|
java.lang.String |
getPropertyName(org.alfresco.repo.cmis.ws.CmisProperty property) |
void |
setCmisDictionaryService(org.alfresco.cmis.CMISDictionaryService cmisDictionaryService) |
void |
setCmisService(org.alfresco.cmis.CMISServices cmisService) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.repo.cmis.ws.CmisPropertiesType properties,
org.alfresco.cmis.PropertyFilter ignoringPropertiesFilter)
Sets and checks all properties' fields for specified node
|
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void setCmisService(org.alfresco.cmis.CMISServices cmisService)
public void setCmisDictionaryService(org.alfresco.cmis.CMISDictionaryService cmisDictionaryService)
public java.lang.Object getProperty(org.alfresco.service.cmr.repository.NodeRef objectNodeRef,
java.lang.String propertyName,
java.lang.Object defaultValue)
throws org.alfresco.cmis.CMISInvalidArgumentException
objectNodeRef - - NodeRef instance that represents Id of the source objectpropertyName - - String instance that represents property namedefaultValue - - some value of the appropriate for conversion type. Also null may be accepted by this parameterorg.alfresco.cmis.CMISInvalidArgumentExceptionpublic java.lang.Object getCmisPropertyValue(org.alfresco.repo.cmis.ws.CmisPropertiesType cmisProperties,
java.lang.String property,
java.lang.Object defaultValue)
throws org.alfresco.repo.cmis.ws.CmisException
cmisProperties - - CmisPropertiesType properties instanceproperty - - String instance that represents property namedefaultValue - - some value of the appropriate for conversion type. Also null may be accepted by this parameterorg.alfresco.repo.cmis.ws.CmisExceptionpublic java.util.Map getPropertiesMap(org.alfresco.repo.cmis.ws.CmisPropertiesType cmisProperties)
throws org.alfresco.repo.cmis.ws.CmisException
cmisProperties - - CmisPropertiesType properties representationCmisExceptionorg.alfresco.repo.cmis.ws.CmisExceptionpublic void setProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.repo.cmis.ws.CmisPropertiesType properties,
org.alfresco.cmis.PropertyFilter ignoringPropertiesFilter)
throws org.alfresco.repo.cmis.ws.CmisException
nodeRef - - NodeRef for node for those properties must be settedproperties - - CmisPropertiesType instance that contains all the necessary properties' fieldsignoringPropertiesFilter - - PropertyFilter instance. This filter determines which properties should be ignored and not
setted without exception. If this parameter is null all properties will be processed in common
floworg.alfresco.repo.cmis.ws.CmisExceptionpublic java.lang.String getPropertyName(org.alfresco.repo.cmis.ws.CmisProperty property)
public org.alfresco.repo.cmis.ws.CmisPropertiesType getProperties(java.lang.Object object,
org.alfresco.cmis.PropertyFilter filter)
throws org.alfresco.repo.cmis.ws.CmisException
nodeRef - node referencefilter - property filterorg.alfresco.repo.cmis.ws.CmisExceptionpublic org.alfresco.repo.cmis.ws.CmisProperty createProperty(java.lang.String pdid,
org.alfresco.cmis.CMISDataTypeEnum dataType,
java.io.Serializable value)
pdid - - String value that represents CMIS property namedataType - - CMISDataTypeEnum value that specifies real type of the propertyvalue - - some instance of appropriate type or some Collection that contains several values of the typepublic javax.xml.datatype.XMLGregorianCalendar convert(java.util.Date date)
date - Date objectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.