Examples of login()


Examples of org.apache.ace.client.workspace.Workspace.login()

        else {
            // Use the "hardcoded" user to login with...
            user = m_userAdmin.getUser("username", m_serverUser);
        }

        if (user == null || !workspace.login(user)) {
            return null;
        }
        else {
            return workspace;
        }
View Full Code Here

Examples of org.apache.aries.samples.ariestrader.api.persistence.AccountDataBean.login()

        AccountDataBean account = profile.getAccount();

        if (Log.doTrace())
            Log.trace("TradeJpaCm:login", userID, password);

        account.login(password);

        if (Log.doTrace())
            Log.trace("TradeJpaCm:login(" + userID + "," + password + ") success" + account);
        return account;
    }
View Full Code Here

Examples of org.apache.beehive.netui.pageflow.handler.LoginHandler.login()

     */
    public void login( String username, String password )
        throws LoginException
    {
        LoginHandler lh = Handlers.get( getServletContext() ).getLoginHandler();
        lh.login( getHandlerContext(), username, password );
    }
   
    /**
     * Log out the current user.
     *
 
View Full Code Here

Examples of org.apache.blur.console.providers.BaseProvider.login()

    Map<String, Object> responseData = new HashMap<String, Object>();
    HttpSession session = request.getSession();
    User user = (User) session.getAttribute("user");
    BaseProvider provider = Config.getProvider();
    if(user == null) {
      user = provider.login(request);
    }
    if (user == null) {
      responseData.put(LOGIN_STATUS_FIELD, false);
      String form = provider.getLoginForm();
      if (form != null) {
View Full Code Here

Examples of org.apache.camel.component.salesforce.internal.SalesforceSession.login()

                new SalesforceLoginConfig(SalesforceLoginConfig.DEFAULT_LOGIN_URL,
                        clientId, clientSecret, userName, password, false));

        getLog().info("Salesforce login...");
        try {
            session.login(null);
        } catch (SalesforceException e) {
            String msg = "Salesforce login error " + e.getMessage();
            throw new MojoExecutionException(msg, e);
        }
        getLog().info("Salesforce login successful");
View Full Code Here

Examples of org.apache.cassandra.stress.util.CassandraClient.login()

            {
                Map<String, String> credentials = new HashMap<String, String>();
                credentials.put(IAuthenticator.USERNAME_KEY, username);
                credentials.put(IAuthenticator.PASSWORD_KEY, password);
                AuthenticationRequest authenticationRequest = new AuthenticationRequest(credentials);
                client.login(authenticationRequest);
            }
        }
        catch (AuthenticationException e)
        {
            throw new RuntimeException(e.getWhy());
View Full Code Here

Examples of org.apache.cocoon.portal.coplet.adapter.CopletAdapter.login()

        ServiceSelector adapterSelector = null;
        try {
            adapterSelector = (ServiceSelector) this.manager.lookup( CopletAdapter.ROLE + "Selector");
            adapter = (CopletAdapter)adapterSelector.select( adapterName );
            adapter.init( instance );
            adapter.login( instance );
        } catch (ServiceException ce) {
            throw new ProcessingException("Unable to lookup coplet adapter selector or adaptor.", ce);
        } finally {
            if ( adapterSelector != null) {
                adapterSelector.release( adapter );
View Full Code Here

Examples of org.apache.cocoon.portal.profile.ProfileManager.login()

        // login
        ProfileManager profileManager = null;
        try {
            profileManager = (ProfileManager) this.manager.lookup(ProfileManager.ROLE);
            profileManager.login();
        } finally {
            this.manager.release( (Component)profileManager );
        }

        if (this.getLogger().isDebugEnabled() ) {
View Full Code Here

Examples of org.apache.cocoon.webapps.authentication.AuthenticationManager.login()

        // authenticate
        AuthenticationManager authManager = null;
        try {
            authManager = (AuthenticationManager) this.manager.lookup(AuthenticationManager.ROLE);
            UserHandler handler = authManager.login(handlerName,
                                                    par.getParameter("application", null),
                                                    authenticationParameters);
            if (handler != null) {
                // success
                map = handler.getContext().getContextInfo();
View Full Code Here

Examples of org.apache.commons.net.ftp.FTPClient.login()

       
        // let's generate some stats
        FTPClient client1 = new FTPClient();
        client1.connect("localhost", getListenerPort());
       
        assertTrue(client1.login(ADMIN_USERNAME, ADMIN_PASSWORD));
        assertTrue(client1.makeDirectory("foo"));
        assertTrue(client1.makeDirectory("foo2"));
        assertTrue(client1.removeDirectory("foo2"));
        assertTrue(client1.storeFile(TEST_FILENAME, new ByteArrayInputStream(TESTDATA)));
        assertTrue(client1.storeFile(TEST_FILENAME, new ByteArrayInputStream(TESTDATA)));
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.