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.AbstractLifecycleBean
protected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
protected CMISDictionaryRegistry createCoreDictionaryRegistry()
protected CMISDictionaryRegistry createTenantDictionaryRegistry(String tenant)
protected CMISDictionaryRegistry createDictionaryRegistryWithWriteLock()
protected CMISDictionaryRegistry createDictionaryRegistry(String tenant)
public TypeDefinitionWrapper findType(String typeId)
CMISDictionaryService
findType
in interface CMISDictionaryService
typeId
- Stringpublic boolean isExcluded(QName qname)
isExcluded
in interface CMISDictionaryService
public TypeDefinitionWrapper findTypeForClass(QName clazz, org.apache.chemistry.opencmis.commons.enums.BaseTypeId... matchingScopes)
CMISDictionaryService
findTypeForClass
in interface CMISDictionaryService
clazz
- QNamematchingScopes
- BaseTypeId...public TypeDefinitionWrapper findNodeType(QName clazz)
findNodeType
in interface CMISDictionaryService
public TypeDefinitionWrapper findAssocType(QName clazz)
findAssocType
in interface CMISDictionaryService
public TypeDefinitionWrapper findTypeByQueryName(String queryName)
CMISDictionaryService
findTypeByQueryName
in interface CMISDictionaryService
queryName
- Stringpublic PropertyDefinitionWrapper findProperty(String propId)
findProperty
in interface CMISDictionaryService
public PropertyDefinitionWrapper findPropertyByQueryName(String queryName)
findPropertyByQueryName
in interface CMISDictionaryService
public List<TypeDefinitionWrapper> getBaseTypes()
CMISDictionaryService
getBaseTypes
in interface CMISDictionaryService
public List<TypeDefinitionWrapper> getBaseTypes(boolean includeParent)
getBaseTypes
in interface CMISDictionaryService
public List<TypeDefinitionWrapper> getAllTypes()
CMISDictionaryService
getAllTypes
in interface CMISDictionaryService
public List<TypeDefinitionWrapper> getAllTypes(boolean includeParent)
getAllTypes
in interface CMISDictionaryService
public org.apache.chemistry.opencmis.commons.enums.PropertyType findDataType(QName dataType)
CMISDictionaryService
findDataType
in interface CMISDictionaryService
dataType
- QNamepublic QName findAlfrescoDataType(org.apache.chemistry.opencmis.commons.enums.PropertyType propertyType)
findAlfrescoDataType
in interface CMISDictionaryService
public void onDictionaryInit()
DictionaryListener
onDictionaryInit
in interface DictionaryListener
public void modelAdded(CompiledModel model, String tenantDomain)
modelAdded
in interface ExtendedDictionaryListener
public void afterDictionaryInit()
DictionaryListener
afterDictionaryInit
in interface DictionaryListener
public void afterDictionaryDestroy()
DictionaryListener
afterDictionaryDestroy
in interface DictionaryListener
public List<TypeDefinitionWrapper> getChildren(String typeId)
getChildren
in interface CMISDictionaryService
Copyright © 2005–2017 Alfresco Software. All rights reserved.