Examples of Login


Examples of org.eclipse.persistence.sessions.Login

                e.printStackTrace();
            }
        }
        // turn-off dynamic class generation
        ClassLoader cl = null;
        Login login = orProject.getDatasourceLogin();
        if (login != null) {
            Platform platform = login.getDatasourcePlatform();
            if (platform != null) {
                ConversionManager conversionManager = platform.getConversionManager();
                if (conversionManager != null) {
                    cl = conversionManager.getLoader();
                }
            }
        }
        if (cl != null && cl instanceof BaseEntityClassLoader) {
            BaseEntityClassLoader becl = (BaseEntityClassLoader)cl;
            becl.dontGenerateSubclasses();
        }
        cl = null;
        login = oxProject.getDatasourceLogin();
        if (login != null) {
            Platform platform = login.getDatasourcePlatform();
            if (platform != null) {
                ConversionManager conversionManager = platform.getConversionManager();
                if (conversionManager != null) {
                    cl = conversionManager.getLoader();
                }
View Full Code Here

Examples of org.eclipse.persistence.sessions.Login

        super(project);
        this.connectionPools = new HashMap(10);
        this.defaultConnectionPolicy = defaultConnectionPolicy;
        this.maxNumberOfNonPooledConnections = 50;
        this.numberOfNonPooledConnectionsUsed = 0;
        Login login = (readLogin != null) ? readLogin : project.getDatasourceLogin();
        setReadConnectionPool(login);
    }
View Full Code Here

Examples of org.eclipse.persistence.sessions.Login

    /**
     * INTERNAL:
     * Create a new connection, accessors are used as connections.
     */
    protected Accessor buildConnection() {
        Login localLogin = (Login)getLogin().clone();
        Accessor connection = localLogin.buildAccessor();
        connection.connect(localLogin, getOwner());

        return connection;
    }
View Full Code Here

Examples of org.eclipse.persistence.sessions.Login

    protected AbstractSession buildDatabaseSessionConfig(DatabaseSessionConfig databaseSessionConfig) {
        // Create a new database session (null means use login from deployment xml if there is one)
        DatabaseSessionImpl databaseSession = createSession(databaseSessionConfig, null);

        // Login - may overwrite the previous login (expected behavior)
        Login login = buildLogin(databaseSessionConfig.getLoginConfig());
        if (login != null) {
            databaseSession.setLogin(login);
        }

        // Common processing since ServerSessions inherit from DatabaseSession
View Full Code Here

Examples of org.eclipse.persistence.sessions.Login

     * Builds a server server from the given ServerSessionConfig.
     */
    protected AbstractSession buildServerSessionConfig(ServerSessionConfig serverSessionConfig) {
        // For server sessions we should build the login first, that way we can
        // initialize the server session with the login (if there is one)
        Login login = buildLogin(serverSessionConfig.getLoginConfig());

        // Create a new server session
        ServerSession serverSession = (ServerSession)createSession(serverSessionConfig, login);

        // Common processing since ServerSessions inherit from DatabaseSession
View Full Code Here

Examples of org.eclipse.persistence.sessions.Login

     * INTERNAL:
     * Process the common elements from a ConnectionPoolConfig
     */
    protected void processConnectionPoolConfig(ConnectionPoolConfig poolConfig, ConnectionPool connectionPool, AbstractSession session) {
        // Login - if null, set it to the same as the session login
        Login login = buildLogin(poolConfig.getLoginConfig());
        if (login != null) {
            connectionPool.setLogin(login);
        } else {
            connectionPool.setLogin(session.getDatasourceLogin());
        }
View Full Code Here

Examples of org.fcrepo.client.actions.Login

                                                        ActionEvent.CTRL_MASK));
        filePurge
                .setToolTipText("Permanently removes a Digitial Object from the repository.");

        //   [L]ogin
        JMenuItem fileLogin = new JMenuItem(new Login());
        fileLogin.setMnemonic(KeyEvent.VK_R);
        fileLogin.setToolTipText("Changes the working repository.");
        fileLogin.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_R,
                                                        ActionEvent.CTRL_MASK));
View Full Code Here

Examples of org.molgenis.framework.security.Login

    // Get application from session
    ApplicationController appController = (ApplicationController) session.getAttribute("application");

    // Login credentials from FrontController
    Login userLogin = request.getDatabase().getLogin();

    // Create GUI if null
    if (appController == null)
    {
      // FIXME: never reached? isLoginRequired is FALSE in both
      // implementations?
      // also, what is request.getRequest().getParameter("logout") ?
      // and when session.isNew() ?
      if ((!userLogin.isAuthenticated() && userLogin.isLoginRequired())
          || (request.getRequest().getParameter("logout") != null && !session.isNew()))
      {
        response.getResponse().setHeader("WWW-Authenticate", "BASIC realm=\"MOLGENIS\"");
        response.getResponse().sendError(HttpServletResponse.SC_UNAUTHORIZED);
        session.invalidate();
View Full Code Here

Examples of org.wso2.carbon.authenticator.stub.Login

        stub = new AuthenticationAdminStub(configCtx, serviceURL);
    }

    public boolean login(HttpServletRequest request, String username, String password) throws java.lang.Exception {
        log.info("Logging into " + backendServerURL);
        Login loginRequest = new Login();
        loginRequest.setUsername(username);
        loginRequest.setPassword(password);
        loginRequest.setRemoteAddress(request.getRemoteAddr());
        Options option = stub._getServiceClient().getOptions();
        option.setManageSession(true);
        boolean isLoggedIn = false;
        try {
            isLoggedIn = stub.login(username, password, request.getRemoteAddr());
View Full Code Here

Examples of org.xrace.desjardins.reponse.Login

    {
      @Override
      public java.lang.Object getValue(java.lang.Object object)
          throws IllegalStateException
      {
        Login target = (Login) object;
        return target.getTrx();
      }

      @Override
      public void setValue(java.lang.Object object, java.lang.Object value)
          throws IllegalStateException, IllegalArgumentException
      {
        try
        {
          Login target = (Login) object;
          target.addTrx((org.xrace.desjardins.reponse.Trx) value);
        }
        catch (java.lang.Exception ex)
        {
          throw new IllegalStateException(ex.toString());
        }
      }

      @Override
      public void resetValue(Object object) throws IllegalStateException,
          IllegalArgumentException
      {
        try
        {
          Login target = (Login) object;
          target.removeAllTrx();
        }
        catch (java.lang.Exception ex)
        {
          throw new IllegalStateException(ex.toString());
        }
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.