Package org.apache.jackrabbit.oak.api

Examples of org.apache.jackrabbit.oak.api.RepositoryService


     */
    @Override
    public Session login(Credentials credentials, String workspaceName) throws RepositoryException {
        // TODO: needs complete refactoring

        RepositoryService service = context.getInstance(RepositoryService.class);
        try {
            Connection connection = service.login(credentials, workspaceName);
            return new SessionImpl(context, connection);
        } catch (LoginException e) {
            throw new javax.jcr.LoginException(e.getMessage());
        }

View Full Code Here


        this(MicroKernelFactory.getInstance(repositoryConfiguration.getMicrokernelUrl()));
        put(RepositoryConfiguration.class, repositoryConfiguration);
    }

    public GlobalContext(MicroKernel mk) {
        RepositoryService repositoryService = new TmpRepositoryService(mk);
        put(RepositoryService.class, repositoryService);
        put(MicroKernel.class, mk);
        put(Repository.class, new RepositoryImpl(this));
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.api.RepositoryService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.