Package com.art.anette.common.network

Examples of com.art.anette.common.network.LoginRequest


        if ("".equals(config.getProperty("user.email")) || "".equals(config.getProperty("user.password"))) {
            showWelcomeDialog(config, basicControl, "", "");
        } else {
            try {
                final ProgressUtils.Monitor monitor = ProgressUtils.createProgress(lang.getString("ProgressLoggingIn"));
                basicControl.login(new LoginRequest(config.getProperty("user.email"), config.getProperty("user.password")));
                monitor.finish();
            } catch (NetworkException ex) {
                logger.warning("Connection Failure", ex);
                ProgressUtils.errorMessage(lang.getString("ConnectionFailed"), ex.getMessage());
                showWelcomeDialog(config, basicControl, config.getProperty("user.email"), config.getProperty("user.password"));
View Full Code Here


        // nicht registriert oder eingeloggt
        assert !("".equals(config.getProperty("user.email")) || "".equals(config.getProperty("user.password")));

        try {
            final ProgressUtils.Monitor monitor = ProgressUtils.createProgress(lang.getString("ProgressLoggingIn"));
            basicControl.login(new LoginRequest(config.getProperty("user.email"), config.getProperty("user.password")));
            monitor.finish();
        } catch (NetworkException ex) {
            logger.severe("Connection Failure", ex);
            return;
        } catch (LoginFailedException ex) {
View Full Code Here

     */
    private void btnLoginActionPerformed(ActionEvent evt) {//GEN-FIRST:event_btnLoginActionPerformed
        try {
            btnLogin.setEnabled(false);
            final ProgressUtils.Monitor monitor = ProgressUtils.createProgress(lang.getString("ProgressLoggingIn"));
            bc.login(new LoginRequest(edtEmail.getText(), new String(pfPassword.getPassword())));
            monitor.finish();
            config.setProperty("user.email", edtEmail.getText());
            config.setProperty("user.password", new String(pfPassword.getPassword()));
            config.writeConfiguration();
            dispose();
View Full Code Here

                Object o = oin.readObject();
                if (o instanceof List) {
                    List<LoginData> list = (List) o;
                    for (LoginData data : list) {
                        logins.put(new LoginRequest(data.email, data.password), data.id);
                    }
                } else {
                    throw new IllegalArgumentException("The file " + Global.ID_FILE + " doesn't contain a map.");
                }
                fin.close();
View Full Code Here

TOP

Related Classes of com.art.anette.common.network.LoginRequest

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.