Class StorageProviderImpl

  • All Implemented Interfaces:
    org.picocontainer.Startable, org.xcmis.spi.StorageProvider

    public class StorageProviderImpl
    extends Object
    implements org.xcmis.spi.StorageProvider, org.picocontainer.Startable
    Version:
    $Id$
    Author:
    Andrey Parfonov
    • Field Detail

    • Constructor Detail

      • 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 Map<String,​TypeMapping> getNodeTypeMapping()
        Returns:
        the nodeTypeMapping
      • getStorageID

        public 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
        Throws:
        javax.jcr.RepositoryException
      • setSearchService

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