|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.cmis.ws.utils.PropertyUtil
public class PropertyUtil
Class for managing access control to CMIS properties
Constructor Summary | |
---|---|
PropertyUtil()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyUtil()
Method Detail |
---|
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 parameter
org.alfresco.cmis.CMISInvalidArgumentException
public 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 parameter
org.alfresco.repo.cmis.ws.CmisException
public java.util.Map getPropertiesMap(org.alfresco.repo.cmis.ws.CmisPropertiesType cmisProperties) throws org.alfresco.repo.cmis.ws.CmisException
cmisProperties
- - CmisPropertiesType properties representation
CmisException
org.alfresco.repo.cmis.ws.CmisException
public 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
flow
org.alfresco.repo.cmis.ws.CmisException
public 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 filter
org.alfresco.repo.cmis.ws.CmisException
public 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 type
public javax.xml.datatype.XMLGregorianCalendar convert(java.util.Date date)
date
- Date object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |