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()
AspectDefinition
getAspect(QName name)
Collection<QName>
getSubAspects(QName superAspect, boolean follow)
Collection<QName>
getSubTypes(QName superType, boolean follow)
Get the sub types of the type.TypeDefinition
getType(QName name)
void
setFilter(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:
getAllTypes
in interfaceDictionaryService
- Overrides:
getAllTypes
in 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:DictionaryService
Get the sub types of the type. The returned list includes the base type which is passed in as a parameter.- Specified by:
getSubTypes
in interfaceDictionaryService
- Overrides:
getSubTypes
in 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:
getAllAspects
in interfaceDictionaryService
- Overrides:
getAllAspects
in classDictionaryComponent
- Returns:
- the names of all aspects that have been registered with the Repository
-
getAllAssociations
public Collection<QName> getAllAssociations()
Description copied from interface:DictionaryService
Get all the association definitions- Specified by:
getAllAssociations
in interfaceDictionaryService
- Overrides:
getAllAssociations
in classDictionaryComponent
- Returns:
- all the association qnames
-
getSubAspects
public Collection<QName> getSubAspects(QName superAspect, boolean follow)
- Specified by:
getSubAspects
in interfaceDictionaryService
- Overrides:
getSubAspects
in 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:
getType
in interfaceDictionaryService
- Overrides:
getType
in 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:
getAspect
in interfaceDictionaryService
- Overrides:
getAspect
in 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)
-
-