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
A DictionaryComponent that uses a QNameFilter to constrain what is returned.
- Author:
- Gethin James
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet all the association definitionsgetSubAspects
(QName superAspect, boolean follow) getSubTypes
(QName superType, boolean follow) Get the sub types of the type.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
-
Constructor Details
-
FilteredDictionaryComponent
public FilteredDictionaryComponent()
-
-
Method Details
-
getAllTypes
- Specified by:
getAllTypes
in interfaceDictionaryService
- Overrides:
getAllTypes
in classDictionaryComponent
- Returns:
- the names of all types that have been registered with the Repository
-
getSubTypes
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
- Specified by:
getAllAspects
in interfaceDictionaryService
- Overrides:
getAllAspects
in classDictionaryComponent
- Returns:
- the names of all aspects that have been registered with the Repository
-
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
- 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
- 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
- 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
-