|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.dictionary.DictionaryComponent
public class DictionaryComponent
Data Dictionary Service Implementation
Constructor Summary | |
---|---|
DictionaryComponent()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DictionaryComponent()
Method Detail |
---|
public void setDictionaryDAO(DictionaryDAO dictionaryDAO)
metaModelDAO
- meta model DAOpublic java.util.Collection getAllModels()
getAllModels
in interface DictionaryService
public ModelDefinition getModel(QName model)
getModel
in interface DictionaryService
model
- the model name to retrieve
public java.util.Collection getAllDataTypes()
getAllDataTypes
in interface DictionaryService
public java.util.Collection getDataTypes(QName model)
getDataTypes
in interface DictionaryService
model
- the model to retrieve data types for
public java.util.Collection getAllTypes()
getAllTypes
in interface DictionaryService
public java.util.Collection getSubTypes(QName superType, boolean follow)
DictionaryService
getSubTypes
in interface DictionaryService
follow
- true => all sub-type descendants, false => immediate sub-type children
public java.util.Collection getTypes(QName model)
getTypes
in interface DictionaryService
model
- the model to retrieve types for
public java.util.Collection getAllAspects()
getAllAspects
in interface DictionaryService
public java.util.Collection getAllAssociations()
DictionaryService
getAllAssociations
in interface DictionaryService
public java.util.Collection getSubAspects(QName superAspect, boolean follow)
getSubAspects
in interface DictionaryService
follow
- true => follow up the super-class hierarchy, false => immediate sub aspects only
public java.util.Collection getAspects(QName model)
getAspects
in interface DictionaryService
model
- the model to retrieve aspects for
public java.util.Collection getAssociations(QName model)
getAssociations
in interface DictionaryService
model
- the model to retrieve associations for
public boolean isSubClass(QName className, QName ofClassName)
DictionaryService
isSubClass
in interface DictionaryService
className
- the sub-class to testofClassName
- the class to test against
public DataTypeDefinition getDataType(QName name)
getDataType
in interface DictionaryService
name
- the name of the data type to retrieve
public DataTypeDefinition getDataType(java.lang.Class javaClass)
getDataType
in interface DictionaryService
javaClass
- java class to find datatype for
public TypeDefinition getType(QName name)
getType
in interface DictionaryService
name
- the name of the type to retrieve
public AspectDefinition getAspect(QName name)
getAspect
in interface DictionaryService
name
- the name of the aspect to retrieve
public ClassDefinition getClass(QName name)
getClass
in interface DictionaryService
name
- the name of the class (type or aspect) to retrieve
public TypeDefinition getAnonymousType(QName type, java.util.Collection aspects)
DictionaryService
getAnonymousType
in interface DictionaryService
type
- the type to start withaspects
- the aspects to combine with the type
public TypeDefinition getAnonymousType(QName name)
TypeDefinition
with all the mandatory Aspects
applied.
This collapses all mandatory Aspects
into a single TypeDefinition
.
getAnonymousType
in interface DictionaryService
name
- the name of the type definition.
public PropertyDefinition getProperty(QName className, QName propertyName)
DictionaryService
getProperty
in interface DictionaryService
className
- the class namepropertyName
- the property name
public java.util.Map getPropertyDefs(QName className)
DictionaryService
getPropertyDefs
in interface DictionaryService
className
- the class name
public PropertyDefinition getProperty(QName propertyName)
DictionaryService
getProperty
in interface DictionaryService
propertyName
- the property name
public AssociationDefinition getAssociation(QName associationName)
DictionaryService
getAssociation
in interface DictionaryService
associationName
- the property name
public java.util.Collection getAllProperties(QName dataType)
DictionaryService
getAllProperties
in interface DictionaryService
public java.util.Collection getProperties(QName model, QName dataType)
DictionaryService
getProperties
in interface DictionaryService
public java.util.Collection getProperties(QName model)
DictionaryService
getProperties
in interface DictionaryService
public ConstraintDefinition getConstraint(QName constraintQName)
DictionaryService
getConstraint
in interface DictionaryService
public java.util.Collection getConstraints(QName model)
DictionaryService
getConstraints
in interface DictionaryService
public java.util.Collection getConstraints(QName model, boolean referenceableDefsOnly)
DictionaryService
getConstraints
in interface DictionaryService
public void init()
init
in interface TenantDeployer
public void destroy()
destroy
in interface TenantDeployer
public void onEnableTenant()
onEnableTenant
in interface TenantDeployer
public void onDisableTenant()
onDisableTenant
in interface TenantDeployer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |