Package org.alfresco.opencmis.dictionary
Class AbstractTypeDefinitionWrapper
- java.lang.Object
-
- org.alfresco.opencmis.dictionary.AbstractTypeDefinitionWrapper
-
- All Implemented Interfaces:
java.io.Serializable
,TypeDefinitionWrapper
- Direct Known Subclasses:
PolicyTypeDefintionWrapper
,RelationshipTypeDefintionWrapper
,SecondaryTypeDefinitionWrapper
,ShadowTypeDefinitionWrapper
public abstract class AbstractTypeDefinitionWrapper extends java.lang.Object implements TypeDefinitionWrapper, java.io.Serializable
Base class for type definition wrappers.- Author:
- florian.mueller
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<org.apache.chemistry.opencmis.commons.enums.Action,CMISActionEvaluator>
actionEvaluators
protected QName
alfrescoClass
protected QName
alfrescoName
protected TypeDefinitionWrapper
parent
protected java.util.Map<java.lang.String,PropertyDefinitionWrapper>
propertiesById
protected java.util.Map<QName,PropertyDefinitionWrapper>
propertiesByQName
protected java.util.Map<java.lang.String,PropertyDefinitionWrapper>
propertiesByQueryName
protected org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition
typeDef
protected org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition
typeDefInclProperties
-
Constructor Summary
Constructors Constructor Description AbstractTypeDefinitionWrapper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
assertComplete()
abstract java.util.List<TypeDefinitionWrapper>
connectParentAndSubTypes(CMISMapping cmisMapping, CMISDictionaryRegistry registry, DictionaryService dictionaryService)
protected void
createActionEvaluators(PropertyAccessorMapping propertyAccessorMapping, org.apache.chemistry.opencmis.commons.enums.BaseTypeId baseTypeId)
protected void
createOwningPropertyDefinitions(CMISMapping cmisMapping, PropertyAccessorMapping propertyAccessorMapping, PropertyLuceneBuilderMapping luceneBuilderMapping, DictionaryService dictionaryService, ClassDefinition cmisClassDef)
Adds all property definitions owned by that type.protected org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>
createPropertyDefinition(CMISMapping cmisMapping, java.lang.String id, QName alfrescoPropName, DictionaryService dictionaryService, PropertyDefinition propDef, boolean inherited)
Creates a property definition object.java.util.Map<org.apache.chemistry.opencmis.commons.enums.Action,CMISActionEvaluator>
getActionEvaluators()
QName
getAlfrescoClass()
QName
getAlfrescoName()
org.apache.chemistry.opencmis.commons.enums.BaseTypeId
getBaseTypeId()
TypeDefinitionWrapper
getParent()
java.util.Collection<PropertyDefinitionWrapper>
getProperties()
PropertyDefinitionWrapper
getPropertyById(java.lang.String propertyId)
PropertyDefinitionWrapper
getPropertyByQName(QName name)
PropertyDefinitionWrapper
getPropertyByQueryName(java.lang.String queryName)
java.lang.String
getTenantId()
org.apache.chemistry.opencmis.commons.definitions.TypeDefinition
getTypeDefinition(boolean includePropertyDefinitions)
java.lang.String
getTypeId()
boolean
isBaseType()
protected void
registerProperty(PropertyDefinitionWrapper propDefWrapper)
Registers a property definition with this typeabstract void
resolveInheritance(CMISMapping cmisMapping, CMISDictionaryRegistry registry, DictionaryService dictionaryService)
void
setTypeDefDescription(java.lang.String desc)
void
setTypeDefDisplayName(java.lang.String name)
protected void
setTypeDefinition(org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition typeDef, org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition typeDefInclProperties)
void
updateDefinition(DictionaryService dictionaryService)
void
updateProperties(DictionaryService dictionaryService)
void
updateProperty(DictionaryService dictionaryService, PropertyDefinitionWrapper propertyDefWrap)
void
updateTypeDefInclProperties()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.opencmis.dictionary.TypeDefinitionWrapper
getProperties
-
-
-
-
Field Detail
-
typeDef
protected org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition typeDef
-
typeDefInclProperties
protected org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition typeDefInclProperties
-
parent
protected TypeDefinitionWrapper parent
-
alfrescoName
protected QName alfrescoName
-
alfrescoClass
protected QName alfrescoClass
-
actionEvaluators
protected java.util.Map<org.apache.chemistry.opencmis.commons.enums.Action,CMISActionEvaluator> actionEvaluators
-
propertiesById
protected java.util.Map<java.lang.String,PropertyDefinitionWrapper> propertiesById
-
propertiesByQueryName
protected java.util.Map<java.lang.String,PropertyDefinitionWrapper> propertiesByQueryName
-
propertiesByQName
protected java.util.Map<QName,PropertyDefinitionWrapper> propertiesByQName
-
-
Method Detail
-
getTenantId
public java.lang.String getTenantId()
- Specified by:
getTenantId
in interfaceTypeDefinitionWrapper
-
getTypeDefinition
public org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getTypeDefinition(boolean includePropertyDefinitions)
- Specified by:
getTypeDefinition
in interfaceTypeDefinitionWrapper
-
setTypeDefinition
protected void setTypeDefinition(org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition typeDef, org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition typeDefInclProperties)
-
getTypeId
public java.lang.String getTypeId()
- Specified by:
getTypeId
in interfaceTypeDefinitionWrapper
-
getBaseTypeId
public org.apache.chemistry.opencmis.commons.enums.BaseTypeId getBaseTypeId()
- Specified by:
getBaseTypeId
in interfaceTypeDefinitionWrapper
-
isBaseType
public boolean isBaseType()
- Specified by:
isBaseType
in interfaceTypeDefinitionWrapper
-
getAlfrescoName
public QName getAlfrescoName()
- Specified by:
getAlfrescoName
in interfaceTypeDefinitionWrapper
-
getAlfrescoClass
public QName getAlfrescoClass()
- Specified by:
getAlfrescoClass
in interfaceTypeDefinitionWrapper
-
getParent
public TypeDefinitionWrapper getParent()
- Specified by:
getParent
in interfaceTypeDefinitionWrapper
-
getActionEvaluators
public java.util.Map<org.apache.chemistry.opencmis.commons.enums.Action,CMISActionEvaluator> getActionEvaluators()
- Specified by:
getActionEvaluators
in interfaceTypeDefinitionWrapper
-
getProperties
public java.util.Collection<PropertyDefinitionWrapper> getProperties()
- Specified by:
getProperties
in interfaceTypeDefinitionWrapper
-
getPropertyById
public PropertyDefinitionWrapper getPropertyById(java.lang.String propertyId)
- Specified by:
getPropertyById
in interfaceTypeDefinitionWrapper
-
getPropertyByQueryName
public PropertyDefinitionWrapper getPropertyByQueryName(java.lang.String queryName)
- Specified by:
getPropertyByQueryName
in interfaceTypeDefinitionWrapper
-
getPropertyByQName
public PropertyDefinitionWrapper getPropertyByQName(QName name)
- Specified by:
getPropertyByQName
in interfaceTypeDefinitionWrapper
-
updateDefinition
public void updateDefinition(DictionaryService dictionaryService)
- Specified by:
updateDefinition
in interfaceTypeDefinitionWrapper
-
updateProperties
public void updateProperties(DictionaryService dictionaryService)
-
updateProperty
public void updateProperty(DictionaryService dictionaryService, PropertyDefinitionWrapper propertyDefWrap)
-
updateTypeDefInclProperties
public void updateTypeDefInclProperties()
-
setTypeDefDisplayName
public void setTypeDefDisplayName(java.lang.String name)
-
setTypeDefDescription
public void setTypeDefDescription(java.lang.String desc)
-
connectParentAndSubTypes
public abstract java.util.List<TypeDefinitionWrapper> connectParentAndSubTypes(CMISMapping cmisMapping, CMISDictionaryRegistry registry, DictionaryService dictionaryService)
-
resolveInheritance
public abstract void resolveInheritance(CMISMapping cmisMapping, CMISDictionaryRegistry registry, DictionaryService dictionaryService)
-
assertComplete
public void assertComplete()
-
createOwningPropertyDefinitions
protected void createOwningPropertyDefinitions(CMISMapping cmisMapping, PropertyAccessorMapping propertyAccessorMapping, PropertyLuceneBuilderMapping luceneBuilderMapping, DictionaryService dictionaryService, ClassDefinition cmisClassDef)
Adds all property definitions owned by that type.
-
registerProperty
protected void registerProperty(PropertyDefinitionWrapper propDefWrapper)
Registers a property definition with this type
-
createPropertyDefinition
protected org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?> createPropertyDefinition(CMISMapping cmisMapping, java.lang.String id, QName alfrescoPropName, DictionaryService dictionaryService, PropertyDefinition propDef, boolean inherited)
Creates a property definition object.
-
createActionEvaluators
protected void createActionEvaluators(PropertyAccessorMapping propertyAccessorMapping, org.apache.chemistry.opencmis.commons.enums.BaseTypeId baseTypeId)
-
-