public abstract class CMISAbstractDictionaryService extends org.springframework.extensions.surf.util.AbstractLifecycleBean implements CMISDictionaryService, ExtendedDictionaryListener
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
CMISAbstractDictionaryService.DictionaryInitializer |
| Modifier and Type | Field and Description |
|---|---|
protected PropertyAccessorMapping |
accessorMapping |
protected CMISMapping |
cmisMapping |
protected DictionaryDAO |
dictionaryDAO |
protected DictionaryService |
dictionaryService |
protected static org.apache.commons.logging.Log |
logger |
protected PropertyLuceneBuilderMapping |
luceneBuilderMapping |
protected TenantService |
tenantService |
| Constructor and Description |
|---|
CMISAbstractDictionaryService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterDictionaryDestroy()
Callback once dictionary destroy is complete (executed in the current tenant context)
|
void |
afterDictionaryInit()
Callback once dictionary initialisation is complete (executed in the current tenant context)
|
protected CMISDictionaryRegistry |
createCoreDictionaryRegistry() |
protected CMISDictionaryRegistry |
createDictionaryRegistry(String tenant) |
protected CMISDictionaryRegistry |
createDictionaryRegistryWithWriteLock() |
protected CMISDictionaryRegistry |
createTenantDictionaryRegistry(String tenant) |
QName |
findAlfrescoDataType(org.apache.chemistry.opencmis.commons.enums.PropertyType propertyType) |
TypeDefinitionWrapper |
findAssocType(QName clazz) |
org.apache.chemistry.opencmis.commons.enums.PropertyType |
findDataType(QName dataType)
Find data type
|
TypeDefinitionWrapper |
findNodeType(QName clazz) |
PropertyDefinitionWrapper |
findProperty(String propId) |
PropertyDefinitionWrapper |
findPropertyByQueryName(String queryName) |
TypeDefinitionWrapper |
findType(String typeId)
Find type for type id
|
TypeDefinitionWrapper |
findTypeByQueryName(String queryName)
Find a type by its query name
|
TypeDefinitionWrapper |
findTypeForClass(QName clazz,
org.apache.chemistry.opencmis.commons.enums.BaseTypeId... matchingScopes)
Find type for Alfresco class name.
|
List<TypeDefinitionWrapper> |
getAllTypes()
Get all Types
|
List<TypeDefinitionWrapper> |
getAllTypes(boolean includeParent) |
List<TypeDefinitionWrapper> |
getBaseTypes()
Get Base Types
|
List<TypeDefinitionWrapper> |
getBaseTypes(boolean includeParent) |
List<TypeDefinitionWrapper> |
getChildren(String typeId) |
protected abstract CMISAbstractDictionaryService.DictionaryInitializer |
getCoreDictionaryInitializer() |
protected CMISDictionaryRegistry |
getRegistry() |
protected abstract CMISAbstractDictionaryService.DictionaryInitializer |
getTenantDictionaryInitializer() |
boolean |
isExcluded(QName qname) |
void |
modelAdded(CompiledModel model,
String tenantDomain) |
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event) |
void |
onDictionaryInit()
Callback for (re-)initialising the Dictionary caches (executed in the current tenant context)
|
protected void |
onShutdown(org.springframework.context.ApplicationEvent event) |
void |
setCmisMapping(CMISMapping cmisMapping)
Set the mapping service
|
void |
setDictionaryDAO(DictionaryDAO dictionaryDAO)
Set the dictionary DAO
|
void |
setDictionaryService(DictionaryService dictionaryService)
Set the dictionary Service
|
void |
setPropertyAccessorMapping(PropertyAccessorMapping accessorMapping)
Set the property accessor mapping service
|
void |
setPropertyLuceneBuilderMapping(PropertyLuceneBuilderMapping luceneBuilderMapping)
Set the property lucene mapping service
|
void |
setSingletonCache(SimpleCache<String,CMISDictionaryRegistry> singletonCache) |
void |
setTenantService(TenantService tenantService) |
protected static final org.apache.commons.logging.Log logger
protected DictionaryDAO dictionaryDAO
protected DictionaryService dictionaryService
protected CMISMapping cmisMapping
protected PropertyAccessorMapping accessorMapping
protected PropertyLuceneBuilderMapping luceneBuilderMapping
protected TenantService tenantService
public void setTenantService(TenantService tenantService)
public void setCmisMapping(CMISMapping cmisMapping)
cmisMapping - CMISMappingpublic void setPropertyAccessorMapping(PropertyAccessorMapping accessorMapping)
accessorMapping - mappingpublic void setPropertyLuceneBuilderMapping(PropertyLuceneBuilderMapping luceneBuilderMapping)
luceneBuilderMapping - mappingpublic void setDictionaryService(DictionaryService dictionaryService)
dictionaryService - DictionaryServicepublic void setDictionaryDAO(DictionaryDAO dictionaryDAO)
dictionaryDAO - DictionaryDAOpublic void setSingletonCache(SimpleCache<String,CMISDictionaryRegistry> singletonCache)
protected abstract CMISAbstractDictionaryService.DictionaryInitializer getCoreDictionaryInitializer()
protected abstract CMISAbstractDictionaryService.DictionaryInitializer getTenantDictionaryInitializer()
protected CMISDictionaryRegistry getRegistry()
protected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBeanprotected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBeanprotected CMISDictionaryRegistry createCoreDictionaryRegistry()
protected CMISDictionaryRegistry createTenantDictionaryRegistry(String tenant)
protected CMISDictionaryRegistry createDictionaryRegistryWithWriteLock()
protected CMISDictionaryRegistry createDictionaryRegistry(String tenant)
public TypeDefinitionWrapper findType(String typeId)
CMISDictionaryServicefindType in interface CMISDictionaryServicetypeId - Stringpublic boolean isExcluded(QName qname)
isExcluded in interface CMISDictionaryServicepublic TypeDefinitionWrapper findTypeForClass(QName clazz, org.apache.chemistry.opencmis.commons.enums.BaseTypeId... matchingScopes)
CMISDictionaryServicefindTypeForClass in interface CMISDictionaryServiceclazz - QNamematchingScopes - BaseTypeId...public TypeDefinitionWrapper findNodeType(QName clazz)
findNodeType in interface CMISDictionaryServicepublic TypeDefinitionWrapper findAssocType(QName clazz)
findAssocType in interface CMISDictionaryServicepublic TypeDefinitionWrapper findTypeByQueryName(String queryName)
CMISDictionaryServicefindTypeByQueryName in interface CMISDictionaryServicequeryName - Stringpublic PropertyDefinitionWrapper findProperty(String propId)
findProperty in interface CMISDictionaryServicepublic PropertyDefinitionWrapper findPropertyByQueryName(String queryName)
findPropertyByQueryName in interface CMISDictionaryServicepublic List<TypeDefinitionWrapper> getBaseTypes()
CMISDictionaryServicegetBaseTypes in interface CMISDictionaryServicepublic List<TypeDefinitionWrapper> getBaseTypes(boolean includeParent)
getBaseTypes in interface CMISDictionaryServicepublic List<TypeDefinitionWrapper> getAllTypes()
CMISDictionaryServicegetAllTypes in interface CMISDictionaryServicepublic List<TypeDefinitionWrapper> getAllTypes(boolean includeParent)
getAllTypes in interface CMISDictionaryServicepublic org.apache.chemistry.opencmis.commons.enums.PropertyType findDataType(QName dataType)
CMISDictionaryServicefindDataType in interface CMISDictionaryServicedataType - QNamepublic QName findAlfrescoDataType(org.apache.chemistry.opencmis.commons.enums.PropertyType propertyType)
findAlfrescoDataType in interface CMISDictionaryServicepublic void onDictionaryInit()
DictionaryListeneronDictionaryInit in interface DictionaryListenerpublic void modelAdded(CompiledModel model, String tenantDomain)
modelAdded in interface ExtendedDictionaryListenerpublic void afterDictionaryInit()
DictionaryListenerafterDictionaryInit in interface DictionaryListenerpublic void afterDictionaryDestroy()
DictionaryListenerafterDictionaryDestroy in interface DictionaryListenerpublic List<TypeDefinitionWrapper> getChildren(String typeId)
getChildren in interface CMISDictionaryServiceCopyright © 2005–2019 Alfresco Software. All rights reserved.