Package org.alfresco.opencmis.dictionary
Class FilteredDictionaryComponent
- java.lang.Object
-
- org.alfresco.repo.dictionary.DictionaryComponent
-
- org.alfresco.opencmis.dictionary.FilteredDictionaryComponent
-
- All Implemented Interfaces:
TenantDeployer,DictionaryService,MessageLookup
public class FilteredDictionaryComponent extends DictionaryComponent
A DictionaryComponent that uses a QNameFilter to constrain what is returned.- Author:
- Gethin James
-
-
Constructor Summary
Constructors Constructor Description FilteredDictionaryComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<QName>getAllAspects()Collection<QName>getAllAssociations()Get all the association definitionsCollection<QName>getAllTypes()AspectDefinitiongetAspect(QName name)Collection<QName>getSubAspects(QName superAspect, boolean follow)Collection<QName>getSubTypes(QName superType, boolean follow)Get the sub types of the type.TypeDefinitiongetType(QName name)voidsetFilter(QNameFilter filter)-
Methods inherited from class org.alfresco.repo.dictionary.DictionaryComponent
destroy, getAllAspects, getAllAssociations, getAllDataTypes, getAllModels, getAllModels, getAllProperties, getAllTypes, getAnonymousType, getAnonymousType, getAspects, getAssociation, getAssociations, getClass, getConstraint, getConstraints, getConstraints, getDataType, getDataType, getDataTypes, getMessage, getMessage, getMessage, getMessage, getModel, getModelByNamespaceUri, getProperties, getProperties, getProperty, getProperty, getPropertyDefs, getTypes, init, isSubClass, onDisableTenant, onEnableTenant, setDictionaryDAO, setMessageLookup
-
-
-
-
Method Detail
-
getAllTypes
public Collection<QName> getAllTypes()
- Specified by:
getAllTypesin interfaceDictionaryService- Overrides:
getAllTypesin classDictionaryComponent- Returns:
- the names of all types that have been registered with the Repository
-
getSubTypes
public Collection<QName> getSubTypes(QName superType, boolean follow)
Description copied from interface:DictionaryServiceGet the sub types of the type. The returned list includes the base type which is passed in as a parameter.- Specified by:
getSubTypesin interfaceDictionaryService- Overrides:
getSubTypesin classDictionaryComponent- Parameters:
superType- the qualified name of the typefollow- true => all sub-type descendants, false => immediate sub-type children- Returns:
- the names of the sub types of the specified type, including the value passed in.
-
getAllAspects
public Collection<QName> getAllAspects()
- Specified by:
getAllAspectsin interfaceDictionaryService- Overrides:
getAllAspectsin classDictionaryComponent- Returns:
- the names of all aspects that have been registered with the Repository
-
getAllAssociations
public Collection<QName> getAllAssociations()
Description copied from interface:DictionaryServiceGet all the association definitions- Specified by:
getAllAssociationsin interfaceDictionaryService- Overrides:
getAllAssociationsin classDictionaryComponent- Returns:
- all the association qnames
-
getSubAspects
public Collection<QName> getSubAspects(QName superAspect, boolean follow)
- Specified by:
getSubAspectsin interfaceDictionaryService- Overrides:
getSubAspectsin classDictionaryComponent- Parameters:
superAspect- QNamefollow- true => follow up the super-class hierarchy, false => immediate sub aspects only- Returns:
- the sub aspects of specified aspect
-
getType
public TypeDefinition getType(QName name)
- Specified by:
getTypein interfaceDictionaryService- Overrides:
getTypein classDictionaryComponent- Parameters:
name- the name of the type to retrieve- Returns:
- the type definition (or null, if it doesn't exist)
-
getAspect
public AspectDefinition getAspect(QName name)
- Specified by:
getAspectin interfaceDictionaryService- Overrides:
getAspectin classDictionaryComponent- Parameters:
name- the name of the aspect to retrieve- Returns:
- the aspect definition (or null, if it doesn't exist)
-
setFilter
public void setFilter(QNameFilter filter)
-
-