Package org.alfresco.opencmis.mapping
Class AbstractProperty
- java.lang.Object
-
- org.alfresco.opencmis.mapping.AbstractProperty
-
- All Implemented Interfaces:
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 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 CMISNodeInfocreateNodeInfo(AssociationRef assocRef)CMISNodeInfocreateNodeInfo(NodeRef nodeRef)protected ContentDatagetContentData(CMISNodeInfo nodeInfo)protected StringgetGuid(String nodeId)QNamegetMappedProperty()StringgetName()protected ServiceRegistrygetServiceRegistry()SerializablegetValue(CMISNodeInfo nodeInfo)SerializablegetValue(AssociationRef assocRef)SerializablegetValue(NodeRef nodeRef)protected abstract SerializablegetValueInternal(CMISNodeInfo nodeInfo)voidsetValue(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 interfaceCMISPropertyAccessor
-
getMappedProperty
public QName getMappedProperty()
- Specified by:
getMappedPropertyin interfaceCMISPropertyAccessor
-
setValue
public void setValue(NodeRef nodeRef, Serializable value)
- Specified by:
setValuein interfaceCMISPropertyAccessor
-
getValue
public Serializable getValue(NodeRef nodeRef)
-
getValue
public Serializable getValue(AssociationRef assocRef)
-
getValue
public Serializable getValue(CMISNodeInfo nodeInfo)
- Specified by:
getValuein interfaceCMISPropertyAccessor
-
getValueInternal
protected abstract Serializable getValueInternal(CMISNodeInfo nodeInfo)
-
createNodeInfo
public CMISNodeInfo createNodeInfo(NodeRef nodeRef)
- Specified by:
createNodeInfoin interfaceCMISPropertyAccessor
-
createNodeInfo
public CMISNodeInfo createNodeInfo(AssociationRef assocRef)
- Specified by:
createNodeInfoin interfaceCMISPropertyAccessor
-
getContentData
protected ContentData getContentData(CMISNodeInfo nodeInfo)
-
-