org.exoplatform.ecms.xcmis.sp
Class StorageProviderImpl

java.lang.Object
  extended by org.exoplatform.ecms.xcmis.sp.StorageProviderImpl
All Implemented Interfaces:
org.picocontainer.Startable, org.xcmis.spi.StorageProvider

public class StorageProviderImpl
extends java.lang.Object
implements org.xcmis.spi.StorageProvider, org.picocontainer.Startable

Version:
$Id: StorageProviderImpl.java 50694 2010-08-12 15:16:33Z ksm $
Author:
Andrey Parfonov

Nested Class Summary
static class StorageProviderImpl.StorageProviderConfig
           
 
Constructor Summary
StorageProviderImpl(org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.document.DocumentReaderService documentReaderService, org.xcmis.spi.PermissionService permissionService, org.xcmis.spi.CmisRegistry registry, org.exoplatform.container.xml.InitParams initParams)
          This constructor is used by eXo container.
StorageProviderImpl(org.exoplatform.services.jcr.RepositoryService repositoryService, org.xcmis.spi.PermissionService permissionService, org.xcmis.spi.CmisRegistry registry, org.exoplatform.container.xml.InitParams initParams)
          This constructor is used by eXo container.
 
Method Summary
 org.xcmis.spi.Connection getConnection()
          
 java.util.Map<java.lang.String,TypeMapping> getNodeTypeMapping()
           
 StorageConfiguration getStorageConfiguration()
           
 java.lang.String getStorageID()
          
protected  void init()
           
 void setSearchService(org.xcmis.search.SearchService searchService)
           
 void start()
          
 void stop()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageProviderImpl

public StorageProviderImpl(org.exoplatform.services.jcr.RepositoryService repositoryService,
                           org.exoplatform.services.document.DocumentReaderService documentReaderService,
                           org.xcmis.spi.PermissionService permissionService,
                           org.xcmis.spi.CmisRegistry registry,
                           org.exoplatform.container.xml.InitParams initParams)
This constructor is used by eXo container.

Parameters:
repositoryService - JCR repository service
documentReaderService - DocumentReaderService required for indexing mechanism
permissionService - PermissionService
registry - CmisRegistry will be used for registered current StorageProvider after its initialization
initParams - configuration parameters

StorageProviderImpl

public StorageProviderImpl(org.exoplatform.services.jcr.RepositoryService repositoryService,
                           org.xcmis.spi.PermissionService permissionService,
                           org.xcmis.spi.CmisRegistry registry,
                           org.exoplatform.container.xml.InitParams initParams)
This constructor is used by eXo container.

Parameters:
repositoryService - JCR repository service
permissionService - PermissionService
registry - CmisRegistry will be used for registered current StorageProvider after its initialization
initParams - configuration parameters
Method Detail

getConnection

public org.xcmis.spi.Connection getConnection()

Specified by:
getConnection in interface org.xcmis.spi.StorageProvider

getNodeTypeMapping

public java.util.Map<java.lang.String,TypeMapping> getNodeTypeMapping()
Returns:
the nodeTypeMapping

getStorageConfiguration

public StorageConfiguration getStorageConfiguration()

getStorageID

public java.lang.String getStorageID()

Specified by:
getStorageID in interface org.xcmis.spi.StorageProvider

start

public void start()

Specified by:
start in interface org.picocontainer.Startable

stop

public void stop()

Specified by:
stop in interface org.picocontainer.Startable

init

protected void init()
             throws javax.jcr.RepositoryException,
                    org.exoplatform.services.jcr.config.RepositoryConfigurationException,
                    org.xcmis.search.SearchServiceException
Throws:
javax.jcr.RepositoryException
org.exoplatform.services.jcr.config.RepositoryConfigurationException
org.xcmis.search.SearchServiceException

setSearchService

public void setSearchService(org.xcmis.search.SearchService searchService)
Parameters:
searchService - the searchService to set


Copyright © 2010 eXo Platform SAS. All Rights Reserved.