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 java.lang.String |
ALFRESCO_EXTENSION_NAMESPACE |
protected CMISMapping |
cmisMapping |
protected DictionaryService |
dictionaryService |
protected static org.apache.commons.logging.Log |
logger |
protected PropertyLuceneBuilderMapping |
luceneBuilderMapping |
static java.lang.String |
MANDATORY_ASPECT |
static java.lang.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(java.lang.String propId) |
PropertyDefinitionWrapper |
findPropertyByQueryName(java.lang.String queryName) |
TypeDefinitionWrapper |
findType(java.lang.String typeId)
Find type for type id
|
TypeDefinitionWrapper |
findTypeByQueryName(java.lang.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) |
java.util.List |
getAllTypes()
Get all Types
|
java.util.List |
getBaseTypes()
Get Base Types
|
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 singletonCache) |
protected static final org.apache.commons.logging.Log logger
public static final java.lang.String ALFRESCO_EXTENSION_NAMESPACE
public static final java.lang.String MANDATORY_ASPECTS
public static final java.lang.String MANDATORY_ASPECT
protected DictionaryService dictionaryService
protected CMISMapping cmisMapping
protected PropertyAccessorMapping accessorMapping
protected PropertyLuceneBuilderMapping luceneBuilderMapping
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 singletonCache)
public TypeDefinitionWrapper findType(java.lang.String typeId)
CMISDictionaryServicefindType 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(java.lang.String queryName)
CMISDictionaryServicefindTypeByQueryName in interface CMISDictionaryServicepublic PropertyDefinitionWrapper findProperty(java.lang.String propId)
findProperty in interface CMISDictionaryServicepublic PropertyDefinitionWrapper findPropertyByQueryName(java.lang.String queryName)
findPropertyByQueryName in interface CMISDictionaryServicepublic java.util.List getBaseTypes()
CMISDictionaryServicegetBaseTypes in interface CMISDictionaryServicepublic java.util.List 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 - 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 - 2010 Alfresco Software, Inc. All Rights Reserved.