Example usage for com.liferay.portal.kernel.repository BaseRepository getLocalRepository

List of usage examples for com.liferay.portal.kernel.repository BaseRepository getLocalRepository

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.repository BaseRepository getLocalRepository.

Prototype

public LocalRepository getLocalRepository();

Source Link

Usage

From source file:com.liferay.document.library.repository.cmis.internal.BaseCMISRepositoryFactory.java

License:Open Source License

@Override
public LocalRepository createLocalRepository(long repositoryId) throws PortalException {

    try (ContextClassLoaderSetter contextClassLoaderSetter = new ContextClassLoaderSetter(
            BaseCMISRepositoryFactory.class.getClassLoader())) {

        BaseRepository baseRepository = createBaseRepository(repositoryId);

        return baseRepository.getLocalRepository();
    }/*w ww  .ja  v  a2 s  . c  o  m*/
}