Examples of login()


Examples of org.apache.jackrabbit.oak.core.ContentRepositoryImpl.login()

public class NamespaceMappingsTest {

    @Test
    public void testMappings() throws Exception {
        ContentRepository repository = new ContentRepositoryImpl();
        ContentSession session = repository.login(null, "default");
        NamespaceMappings r = new NamespaceMappings(session);

        r.registerNamespace("p", "n");
        assertEquals(r.getURI("p"), "n");
        assertEquals(r.getPrefix("n"), "p");
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.repository.RepositoryImpl.login()

                    attrs.put(RepositoryImpl.REFRESH_INTERVAL, 0);
                    // TODO OAK-803: Backwards compatibility of long-lived
                    // sessions
                    // Remove dependency on implementation specific API
                    RepositoryImpl repo = (RepositoryImpl) OakSlingRepository.this.getRepository();
                    return repo.login(null, null, attrs);
                }
            }, null);
        } catch (PrivilegedActionException e) {
            throw new RepositoryException("failed to retrieve admin session.", e);
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authentication.LoginContext.login()

            throw new NoSuchWorkspaceException(workspaceName);
        }

        LoginContextProvider lcProvider = securityProvider.getConfiguration(AuthenticationConfiguration.class).getLoginContextProvider(this);
        LoginContext loginContext = lcProvider.getLoginContext(credentials, workspaceName);
        loginContext.login();

        return new ContentSessionImpl(loginContext, securityProvider, workspaceName, nodeStore,
                commitHook, indexProvider);
    }
View Full Code Here

Examples of org.apache.jackrabbit.rmi.repository.RMIRemoteRepository.login()

            String username = connectionInfo.getUsername();
            String password = connectionInfo.getPassword();

            if (workspaceName == null || workspaceName.equals("") || workspaceName.equals("default")) {

                session = repository.login(new SimpleCredentials(username, password.toCharArray()));
            } else {
                session = repository.login(new SimpleCredentials(username, password.toCharArray()),
                    workspaceName);
            }
View Full Code Here

Examples of org.apache.jackrabbit.rmi.repository.URLRemoteRepository.login()

            String username = connectionInfo.getUsername();
            String password = connectionInfo.getPassword();

            if (workspaceName == null || workspaceName.equals("") || workspaceName.equals("default")) {

                session = repository.login(new SimpleCredentials(username, password.toCharArray()));
            } else {
                session = repository.login(new SimpleCredentials(username, password.toCharArray()),
                    workspaceName);
            }
View Full Code Here

Examples of org.apache.james.mailbox.MailboxManager.login()

                authFailure = true;
            }
            if (authFailure == false) {
                final MailboxManager mailboxManager = getMailboxManager();
                try {
                    final MailboxSession mailboxSession = mailboxManager.login(userid, passwd, session.getLog());
                    session.authenticated();
                    session.setAttribute(ImapSessionUtils.MAILBOX_SESSION_ATTRIBUTE_SESSION_KEY, mailboxSession);
                    final MailboxPath inboxPath = buildFullPath(session, MailboxConstants.INBOX);
                    if (mailboxManager.mailboxExists(inboxPath, mailboxSession)) {
                        if (session.getLog().isDebugEnabled()) {
View Full Code Here

Examples of org.apache.james.remotemanager.UserManagerAdmin.login()

        login = in.readLine();
        print("Password: ");
        password = in.readLine();

        UserManagerAdmin uma = (UserManagerAdmin)Naming.lookup(rmiURL);
        while ((userManager = uma.login(login, password)) == null) {
            println("login failed!\n");
            print("Login   : ");
            login = in.readLine();
            print("Password: ");
            password = in.readLine();
View Full Code Here

Examples of org.apache.maven.scm.provider.accurev.AccuRev.login()

            {
                providerMessage = "Skipping login - already logged in as " + repository.getUser();
            }
            else
            {
                result = accurev.login( repository.getUser(), repository.getPassword() );
                providerMessage = ( result ? "Success" : "Failure" ) + " logging in as " + repository.getUser();
            }
        }
        else
        {
View Full Code Here

Examples of org.apache.maven.scm.provider.accurev.command.login.AccuRevLoginCommand.login()

        {
            getLogger().debug( repository.toString() );
        }

        AccuRevLoginCommand command = new AccuRevLoginCommand( getLogger() );
        return command.login( repository, fileSet, parameters );
    }

    @Override
    protected CheckOutScmResult checkout( ScmProviderRepository repository, ScmFileSet fileSet,
                                          CommandParameters parameters )
View Full Code Here

Examples of org.apache.olio.webapp.model.ModelFacade.login()

                userBean = new UserBean();
                userBean.setModelFacade(mf);
                request.getSession().setAttribute("userBean", userBean);
            }
            if (user_name != null && password != null) {
                Person p = mf.login(user_name, password);
                if (p != null) {
                    userBean.setDisplayMessage("Successfully logged in");
                    userBean.setLoggedInPerson(p);
                }
            } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.