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 java.lang.String |
key_opencmis_dictionary_registry |
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
|
java.lang.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 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
protected java.lang.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 singletonCache)
protected CMISAbstractDictionaryService.DictionaryRegistry getRegistry()
protected CMISAbstractDictionaryService.DictionaryRegistry getRegistryImpl()
public TypeDefinitionWrapper findType(java.lang.String typeId)
CMISDictionaryService
findType
in interface CMISDictionaryService
public 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
public TypeDefinitionWrapper findNodeType(QName clazz)
findNodeType
in interface CMISDictionaryService
public TypeDefinitionWrapper findAssocType(QName clazz)
findAssocType
in interface CMISDictionaryService
public TypeDefinitionWrapper findTypeByQueryName(java.lang.String queryName)
CMISDictionaryService
findTypeByQueryName
in interface CMISDictionaryService
public PropertyDefinitionWrapper findProperty(java.lang.String propId)
findProperty
in interface CMISDictionaryService
public PropertyDefinitionWrapper findPropertyByQueryName(java.lang.String queryName)
findPropertyByQueryName
in interface CMISDictionaryService
public java.util.List getBaseTypes()
CMISDictionaryService
getBaseTypes
in interface CMISDictionaryService
public java.util.List getAllTypes()
CMISDictionaryService
getAllTypes
in interface CMISDictionaryService
public org.apache.chemistry.opencmis.commons.enums.PropertyType findDataType(QName dataType)
CMISDictionaryService
findDataType
in interface CMISDictionaryService
public QName findAlfrescoDataType(org.apache.chemistry.opencmis.commons.enums.PropertyType propertyType)
findAlfrescoDataType
in interface CMISDictionaryService
protected abstract void createDefinitions(CMISAbstractDictionaryService.DictionaryRegistry registry)
registry
- protected void init()
public void onDictionaryInit()
onDictionaryInit
in interface DictionaryListener
public void afterDictionaryInit()
afterDictionaryInit
in interface DictionaryListener
public void afterDictionaryDestroy()
afterDictionaryDestroy
in interface DictionaryListener
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
public java.lang.String getCmisTypeId(QName classQName)
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.