org.alfresco.cmis.dictionary
Class CMISAbstractDictionaryService

java.lang.Object
  extended by org.springframework.extensions.surf.util.AbstractLifecycleBean
      extended by org.alfresco.cmis.dictionary.CMISAbstractDictionaryService
All Implemented Interfaces:
java.util.EventListener, CMISDictionaryService, org.alfresco.repo.dictionary.DictionaryListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener
Direct Known Subclasses:
CMISStrictDictionaryService

public abstract class CMISAbstractDictionaryService
extends org.springframework.extensions.surf.util.AbstractLifecycleBean
implements CMISDictionaryService, org.alfresco.repo.dictionary.DictionaryListener

Common CMIS Dictionary Support including registry of Types.


Field Summary
protected  CMISMapping cmisMapping
           
protected  org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
           
protected static org.apache.commons.logging.Log logger
           
protected  org.alfresco.repo.tenant.TenantService tenantService
           
 
Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
log
 
Constructor Summary
CMISAbstractDictionaryService()
           
 
Method Summary
 void afterDictionaryDestroy()
           
 void afterDictionaryInit()
           
protected abstract  void createDefinitions(org.alfresco.cmis.dictionary.CMISAbstractDictionaryService.DictionaryRegistry registry)
          Factory for creating CMIS Definitions
 CMISDataTypeEnum findDataType(org.alfresco.service.namespace.QName dataType)
          Find data type
 CMISPropertyDefinition findProperty(org.alfresco.service.namespace.QName property, CMISTypeDefinition matchingType)
          Find property.
 CMISPropertyDefinition findProperty(java.lang.String property, CMISTypeDefinition matchingType)
          Find property.
 CMISPropertyDefinition findPropertyByQueryName(java.lang.String queryName)
          Find a property by its query name
 CMISTypeDefinition findType(CMISTypeId typeId)
          Find type for type id
 CMISTypeDefinition findType(java.lang.String typeId)
          Find type for type id
 CMISTypeDefinition findTypeByQueryName(java.lang.String queryName)
          Find a type by its query name
 CMISTypeDefinition findTypeForClass(org.alfresco.service.namespace.QName clazz, CMISScope[] matchingScopes)
          Find type for Alfresco class name.
 java.util.Collection getAllTypes()
          Get all Types
 java.util.Collection 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(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
          Set the dictionary DAO
 void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
          Set the dictionary Service
 void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
          Set the tenant Service
 
Methods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
getApplicationContext, onApplicationEvent, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.commons.logging.Log logger

cmisMapping

protected CMISMapping cmisMapping

dictionaryService

protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService

tenantService

protected org.alfresco.repo.tenant.TenantService tenantService
Constructor Detail

CMISAbstractDictionaryService

public CMISAbstractDictionaryService()
Method Detail

setCMISMapping

public void setCMISMapping(CMISMapping cmisMapping)
Set the mapping service

Parameters:
cmisMapping -

setDictionaryService

public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Set the dictionary Service

Parameters:
dictionaryService -

setDictionaryDAO

public void setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
Set the dictionary DAO

Parameters:
dictionaryDAO -

setTenantService

public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
Set the tenant Service

Parameters:
tenantService -

findType

public CMISTypeDefinition findType(CMISTypeId typeId)
Description copied from interface: CMISDictionaryService
Find type for type id

Specified by:
findType in interface CMISDictionaryService
Returns:

findType

public CMISTypeDefinition findType(java.lang.String typeId)
Description copied from interface: CMISDictionaryService
Find type for type id

Specified by:
findType in interface CMISDictionaryService
Returns:

findTypeForClass

public CMISTypeDefinition findTypeForClass(org.alfresco.service.namespace.QName clazz,
                                           CMISScope[] matchingScopes)
Description copied from interface: CMISDictionaryService
Find type for Alfresco class name. Optionally, constrain match to one of specified CMIS scopes

Specified by:
findTypeForClass in interface CMISDictionaryService
Returns:

findTypeByQueryName

public CMISTypeDefinition findTypeByQueryName(java.lang.String queryName)
Description copied from interface: CMISDictionaryService
Find a type by its query name

Specified by:
findTypeByQueryName in interface CMISDictionaryService
Returns:

findPropertyByQueryName

public CMISPropertyDefinition findPropertyByQueryName(java.lang.String queryName)
Description copied from interface: CMISDictionaryService
Find a property by its query name

Specified by:
findPropertyByQueryName in interface CMISDictionaryService
Returns:

getBaseTypes

public java.util.Collection getBaseTypes()
Description copied from interface: CMISDictionaryService
Get Base Types

Specified by:
getBaseTypes in interface CMISDictionaryService

getAllTypes

public java.util.Collection getAllTypes()
Description copied from interface: CMISDictionaryService
Get all Types

Specified by:
getAllTypes in interface CMISDictionaryService
Returns:

findProperty

public CMISPropertyDefinition findProperty(org.alfresco.service.namespace.QName property,
                                           CMISTypeDefinition matchingType)
Description copied from interface: CMISDictionaryService
Find property. Optionally constrain match to specified type.

Specified by:
findProperty in interface CMISDictionaryService
Returns:

findProperty

public CMISPropertyDefinition findProperty(java.lang.String property,
                                           CMISTypeDefinition matchingType)
Description copied from interface: CMISDictionaryService
Find property. Optionally constrain match to specified type.

Specified by:
findProperty in interface CMISDictionaryService
Returns:

findDataType

public CMISDataTypeEnum findDataType(org.alfresco.service.namespace.QName dataType)
Description copied from interface: CMISDictionaryService
Find data type

Specified by:
findDataType in interface CMISDictionaryService
Returns:

createDefinitions

protected abstract void createDefinitions(org.alfresco.cmis.dictionary.CMISAbstractDictionaryService.DictionaryRegistry registry)
Factory for creating CMIS Definitions

Parameters:
registry -

onDictionaryInit

public void onDictionaryInit()
Specified by:
onDictionaryInit in interface org.alfresco.repo.dictionary.DictionaryListener

afterDictionaryInit

public void afterDictionaryInit()
Specified by:
afterDictionaryInit in interface org.alfresco.repo.dictionary.DictionaryListener

afterDictionaryDestroy

public void afterDictionaryDestroy()
Specified by:
afterDictionaryDestroy in interface org.alfresco.repo.dictionary.DictionaryListener

onBootstrap

protected void onBootstrap(org.springframework.context.ApplicationEvent event)
Specified by:
onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBean

onShutdown

protected void onShutdown(org.springframework.context.ApplicationEvent event)
Specified by:
onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBean


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.