public class DictionaryComponent extends java.lang.Object implements DictionaryService, TenantDeployer
| Constructor and Description |
|---|
DictionaryComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
java.util.Collection |
getAllAspects() |
java.util.Collection |
getAllAssociations()
Get all the association definitions
|
java.util.Collection |
getAllDataTypes() |
java.util.Collection |
getAllModels() |
java.util.Collection |
getAllProperties(QName dataType)
Get all properties defined across all models with the given data type.
|
java.util.Collection |
getAllTypes() |
TypeDefinition |
getAnonymousType(QName name)
Creates an anonymous
TypeDefinition with all the mandatory Aspects applied. |
TypeDefinition |
getAnonymousType(QName type,
java.util.Collection aspects)
Construct an anonymous type that combines the definitions of the specified
type and aspects.
|
AspectDefinition |
getAspect(QName name) |
java.util.Collection |
getAspects(QName model) |
AssociationDefinition |
getAssociation(QName associationName)
Gets the definition of the association as defined by its owning Class.
|
java.util.Collection |
getAssociations(QName model) |
ClassDefinition |
getClass(QName name) |
ConstraintDefinition |
getConstraint(QName constraintQName)
Gets the definition of the constraint
|
java.util.Collection |
getConstraints(QName model)
Get constraints for the specified model
|
java.util.Collection |
getConstraints(QName model,
boolean referenceableDefsOnly)
Get constraints for the specified model
Optionally return referenceable (ie.
|
DataTypeDefinition |
getDataType(java.lang.Class javaClass) |
DataTypeDefinition |
getDataType(QName name) |
java.util.Collection |
getDataTypes(QName model) |
ModelDefinition |
getModel(QName model) |
java.util.Collection |
getProperties(QName model)
Get all properties for the specified model
|
java.util.Collection |
getProperties(QName model,
QName dataType)
Get all properties defined for the given model with the given data type.
|
PropertyDefinition |
getProperty(QName propertyName)
Gets the definition of the property as defined by its owning Class.
|
PropertyDefinition |
getProperty(QName className,
QName propertyName)
Gets the definition of the property as defined by the specified Class.
|
java.util.Map |
getPropertyDefs(QName className)
Gets the definitions of the properties defined by the specified Class.
|
java.util.Collection |
getSubAspects(QName superAspect,
boolean follow) |
java.util.Collection |
getSubTypes(QName superType,
boolean follow)
Get the sub types of the type.
|
TypeDefinition |
getType(QName name) |
java.util.Collection |
getTypes(QName model) |
void |
init() |
boolean |
isSubClass(QName className,
QName ofClassName)
Determines whether a class is a sub-class of another class
|
void |
onDisableTenant() |
void |
onEnableTenant() |
void |
setDictionaryDAO(DictionaryDAO dictionaryDAO)
Sets the Meta Model DAO
|
public void setDictionaryDAO(DictionaryDAO dictionaryDAO)
metaModelDAO - meta model DAOpublic java.util.Collection getAllModels()
getAllModels in interface DictionaryServicepublic ModelDefinition getModel(QName model)
getModel in interface DictionaryServicemodel - the model name to retrievepublic java.util.Collection getAllDataTypes()
getAllDataTypes in interface DictionaryServicepublic java.util.Collection getDataTypes(QName model)
getDataTypes in interface DictionaryServicemodel - the model to retrieve data types forpublic java.util.Collection getAllTypes()
getAllTypes in interface DictionaryServicepublic java.util.Collection getSubTypes(QName superType, boolean follow)
DictionaryServicegetSubTypes in interface DictionaryServicefollow - true => all sub-type descendants, false => immediate sub-type childrenpublic java.util.Collection getTypes(QName model)
getTypes in interface DictionaryServicemodel - the model to retrieve types forpublic java.util.Collection getAllAspects()
getAllAspects in interface DictionaryServicepublic java.util.Collection getAllAssociations()
DictionaryServicegetAllAssociations in interface DictionaryServicepublic java.util.Collection getSubAspects(QName superAspect, boolean follow)
getSubAspects in interface DictionaryServicefollow - true => follow up the super-class hierarchy, false => immediate sub aspects onlypublic java.util.Collection getAspects(QName model)
getAspects in interface DictionaryServicemodel - the model to retrieve aspects forpublic java.util.Collection getAssociations(QName model)
getAssociations in interface DictionaryServicemodel - the model to retrieve associations forpublic boolean isSubClass(QName className, QName ofClassName)
DictionaryServiceisSubClass in interface DictionaryServiceclassName - the sub-class to testofClassName - the class to test againstpublic DataTypeDefinition getDataType(QName name)
getDataType in interface DictionaryServicename - the name of the data type to retrievepublic DataTypeDefinition getDataType(java.lang.Class javaClass)
getDataType in interface DictionaryServicejavaClass - java class to find datatype forpublic TypeDefinition getType(QName name)
getType in interface DictionaryServicename - the name of the type to retrievepublic AspectDefinition getAspect(QName name)
getAspect in interface DictionaryServicename - the name of the aspect to retrievepublic ClassDefinition getClass(QName name)
getClass in interface DictionaryServicename - the name of the class (type or aspect) to retrievepublic TypeDefinition getAnonymousType(QName type, java.util.Collection aspects)
DictionaryServicegetAnonymousType in interface DictionaryServicetype - the type to start withaspects - the aspects to combine with the typepublic TypeDefinition getAnonymousType(QName name)
TypeDefinition with all the mandatory Aspects applied.
This collapses all mandatory Aspects into a single TypeDefinition.getAnonymousType in interface DictionaryServicename - the name of the type definition.public PropertyDefinition getProperty(QName className, QName propertyName)
DictionaryServicegetProperty in interface DictionaryServiceclassName - the class namepropertyName - the property namepublic java.util.Map getPropertyDefs(QName className)
DictionaryServicegetPropertyDefs in interface DictionaryServiceclassName - the class namepublic PropertyDefinition getProperty(QName propertyName)
DictionaryServicegetProperty in interface DictionaryServicepropertyName - the property namepublic AssociationDefinition getAssociation(QName associationName)
DictionaryServicegetAssociation in interface DictionaryServiceassociationName - the property namepublic java.util.Collection getAllProperties(QName dataType)
DictionaryServicegetAllProperties in interface DictionaryServicepublic java.util.Collection getProperties(QName model, QName dataType)
DictionaryServicegetProperties in interface DictionaryServicepublic java.util.Collection getProperties(QName model)
DictionaryServicegetProperties in interface DictionaryServicepublic ConstraintDefinition getConstraint(QName constraintQName)
DictionaryServicegetConstraint in interface DictionaryServicepublic java.util.Collection getConstraints(QName model)
DictionaryServicegetConstraints in interface DictionaryServicepublic java.util.Collection getConstraints(QName model, boolean referenceableDefsOnly)
DictionaryServicegetConstraints in interface DictionaryServicepublic void init()
init in interface TenantDeployerpublic void destroy()
destroy in interface TenantDeployerpublic void onEnableTenant()
onEnableTenant in interface TenantDeployerpublic void onDisableTenant()
onDisableTenant in interface TenantDeployerCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.