public abstract class CMISAbstractDictionaryService extends org.springframework.extensions.surf.util.AbstractLifecycleBean implements CMISDictionaryService, DictionaryListener
| Modifier and Type | Class and Description |
|---|---|
class |
CMISAbstractDictionaryService.DictionaryRegistry
CMIS Dictionary registry
Index of CMIS Type Definitions
|
| Modifier and Type | Field and Description |
|---|---|
protected PropertyAccessorMapping |
accessorMapping |
static String |
ALFRESCO_EXTENSION_NAMESPACE |
protected CMISMapping |
cmisMapping |
protected DictionaryService |
dictionaryService |
protected String |
key_opencmis_dictionary_registry |
protected static org.apache.commons.logging.Log |
logger |
protected PropertyLuceneBuilderMapping |
luceneBuilderMapping |
static String |
MANDATORY_ASPECT |
static String |
MANDATORY_ASPECTS |
| Constructor and Description |
|---|
CMISAbstractDictionaryService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterDictionaryDestroy() |
void |
afterDictionaryInit() |
protected abstract void |
createDefinitions(CMISAbstractDictionaryService.DictionaryRegistry registry)
Factory for creating CMIS Definitions
|
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.
|
QName |
getAlfrescoClass(QName name) |
List<TypeDefinitionWrapper> |
getAllTypes()
Get all Types
|
List<TypeDefinitionWrapper> |
getBaseTypes()
Get Base Types
|
String |
getCmisTypeId(QName classQName) |
protected CMISAbstractDictionaryService.DictionaryRegistry |
getRegistry() |
protected CMISAbstractDictionaryService.DictionaryRegistry |
getRegistryImpl() |
protected void |
init()
Dictionary Initialization - creates a new registry
|
boolean |
isExcluded(QName qname) |
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event) |
void |
onDictionaryInit() |
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,CMISAbstractDictionaryService.DictionaryRegistry> singletonCache) |
protected static final org.apache.commons.logging.Log logger
public static final String ALFRESCO_EXTENSION_NAMESPACE
public static final String MANDATORY_ASPECTS
public static final String MANDATORY_ASPECT
protected DictionaryService dictionaryService
protected CMISMapping cmisMapping
protected PropertyAccessorMapping accessorMapping
protected PropertyLuceneBuilderMapping luceneBuilderMapping
protected String key_opencmis_dictionary_registry
public void setCmisMapping(CMISMapping cmisMapping)
cmisMapping - public void setPropertyAccessorMapping(PropertyAccessorMapping accessorMapping)
accessor - mappingpublic void setPropertyLuceneBuilderMapping(PropertyLuceneBuilderMapping luceneBuilderMapping)
lucene - mappingpublic void setDictionaryService(DictionaryService dictionaryService)
dictionaryService - public void setDictionaryDAO(DictionaryDAO dictionaryDAO)
dictionaryDAO - public void setSingletonCache(SimpleCache<String,CMISAbstractDictionaryService.DictionaryRegistry> singletonCache)
protected CMISAbstractDictionaryService.DictionaryRegistry getRegistry()
protected CMISAbstractDictionaryService.DictionaryRegistry getRegistryImpl()
public TypeDefinitionWrapper findType(String typeId)
CMISDictionaryServicefindType in interface CMISDictionaryServicepublic boolean isExcluded(QName qname)
isExcluded in interface CMISDictionaryServicepublic TypeDefinitionWrapper findTypeForClass(QName clazz, org.apache.chemistry.opencmis.commons.enums.BaseTypeId... matchingScopes)
CMISDictionaryServicefindTypeForClass in interface CMISDictionaryServicepublic TypeDefinitionWrapper findNodeType(QName clazz)
findNodeType in interface CMISDictionaryServicepublic TypeDefinitionWrapper findAssocType(QName clazz)
findAssocType in interface CMISDictionaryServicepublic TypeDefinitionWrapper findTypeByQueryName(String queryName)
CMISDictionaryServicefindTypeByQueryName in interface CMISDictionaryServicepublic 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> getAllTypes()
CMISDictionaryServicegetAllTypes in interface CMISDictionaryServicepublic org.apache.chemistry.opencmis.commons.enums.PropertyType findDataType(QName dataType)
CMISDictionaryServicefindDataType in interface CMISDictionaryServicepublic QName findAlfrescoDataType(org.apache.chemistry.opencmis.commons.enums.PropertyType propertyType)
findAlfrescoDataType in interface CMISDictionaryServiceprotected abstract void createDefinitions(CMISAbstractDictionaryService.DictionaryRegistry registry)
registry - protected void init()
public void onDictionaryInit()
onDictionaryInit in interface DictionaryListenerpublic void afterDictionaryInit()
afterDictionaryInit in interface DictionaryListenerpublic void afterDictionaryDestroy()
afterDictionaryDestroy in interface DictionaryListenerprotected 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.AbstractLifecycleBeanCopyright © 2005–2014 Alfresco Software. All rights reserved.