Package org.alfresco.opencmis.mapping
Class AbstractProperty
- java.lang.Object
-
- org.alfresco.opencmis.mapping.AbstractProperty
-
- All Implemented Interfaces:
org.alfresco.opencmis.dictionary.CMISPropertyAccessor
- Direct Known Subclasses:
AllowedChildObjectTypeIdsProperty,BaseTypeIdProperty,CheckinCommentProperty,ContentStreamIdProperty,ContentStreamLengthProperty,ContentStreamMimetypeProperty,CreationDateProperty,DescriptionProperty,DirectProperty,FixedValueProperty,IsImmutableProperty,IsLatestMajorVersionProperty,IsLatestVersionProperty,IsMajorVersionProperty,IsPrivateWorkingCopy,IsVersionSeriesCheckedOutProperty,ModificationDateProperty,NameProperty,NodeRefProperty,ObjectIdProperty,ObjectTypeIdProperty,ParentProperty,PathProperty,SecondaryTypesProperty,SourceIdProperty,TargetIdProperty,VersionLabelProperty,VersionSeriesCheckedOutByProperty,VersionSeriesCheckedOutIdProperty,VersionSeriesIdProperty
public abstract class AbstractProperty extends Object implements org.alfresco.opencmis.dictionary.CMISPropertyAccessor
Base class for all property accessors- Author:
- andyh
-
-
Field Summary
Fields Modifier and Type Field Description protected CMISConnectorconnectorstatic StringCONTENT_PROPERTY
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractProperty(ServiceRegistry serviceRegistry, CMISConnector connector, String propertyName)Construct
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.alfresco.opencmis.dictionary.CMISNodeInfocreateNodeInfo(org.alfresco.service.cmr.repository.AssociationRef assocRef)org.alfresco.opencmis.dictionary.CMISNodeInfocreateNodeInfo(org.alfresco.service.cmr.repository.NodeRef nodeRef)protected org.alfresco.service.cmr.repository.ContentDatagetContentData(org.alfresco.opencmis.dictionary.CMISNodeInfo nodeInfo)protected StringgetGuid(String nodeId)org.alfresco.service.namespace.QNamegetMappedProperty()StringgetName()protected ServiceRegistrygetServiceRegistry()SerializablegetValue(org.alfresco.opencmis.dictionary.CMISNodeInfo nodeInfo)SerializablegetValue(org.alfresco.service.cmr.repository.AssociationRef assocRef)SerializablegetValue(org.alfresco.service.cmr.repository.NodeRef nodeRef)protected abstract SerializablegetValueInternal(org.alfresco.opencmis.dictionary.CMISNodeInfo nodeInfo)voidsetValue(org.alfresco.service.cmr.repository.NodeRef nodeRef, Serializable value)
-
-
-
Field Detail
-
CONTENT_PROPERTY
public static final String CONTENT_PROPERTY
- See Also:
- Constant Field Values
-
connector
protected CMISConnector connector
-
-
Constructor Detail
-
AbstractProperty
protected AbstractProperty(ServiceRegistry serviceRegistry, CMISConnector connector, String propertyName)
Construct- Parameters:
serviceRegistry- ServiceRegistryconnector- CMISConnectorpropertyName- String
-
-
Method Detail
-
getServiceRegistry
protected ServiceRegistry getServiceRegistry()
- Returns:
- service registry
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.alfresco.opencmis.dictionary.CMISPropertyAccessor
-
getMappedProperty
public org.alfresco.service.namespace.QName getMappedProperty()
- Specified by:
getMappedPropertyin interfaceorg.alfresco.opencmis.dictionary.CMISPropertyAccessor
-
setValue
public void setValue(org.alfresco.service.cmr.repository.NodeRef nodeRef, Serializable value)- Specified by:
setValuein interfaceorg.alfresco.opencmis.dictionary.CMISPropertyAccessor
-
getValue
public Serializable getValue(org.alfresco.service.cmr.repository.NodeRef nodeRef)
-
getValue
public Serializable getValue(org.alfresco.service.cmr.repository.AssociationRef assocRef)
-
getValue
public Serializable getValue(org.alfresco.opencmis.dictionary.CMISNodeInfo nodeInfo)
- Specified by:
getValuein interfaceorg.alfresco.opencmis.dictionary.CMISPropertyAccessor
-
getValueInternal
protected abstract Serializable getValueInternal(org.alfresco.opencmis.dictionary.CMISNodeInfo nodeInfo)
-
createNodeInfo
public org.alfresco.opencmis.dictionary.CMISNodeInfo createNodeInfo(org.alfresco.service.cmr.repository.NodeRef nodeRef)
- Specified by:
createNodeInfoin interfaceorg.alfresco.opencmis.dictionary.CMISPropertyAccessor
-
createNodeInfo
public org.alfresco.opencmis.dictionary.CMISNodeInfo createNodeInfo(org.alfresco.service.cmr.repository.AssociationRef assocRef)
- Specified by:
createNodeInfoin interfaceorg.alfresco.opencmis.dictionary.CMISPropertyAccessor
-
getContentData
protected org.alfresco.service.cmr.repository.ContentData getContentData(org.alfresco.opencmis.dictionary.CMISNodeInfo nodeInfo)
-
-