Package ch.tatool.data

Examples of ch.tatool.data.UserAccount


   
    /**
     * Starts the application once everything has been initialized.
     */
    private void startApplication() {
      UserAccount account = null;
        guiController.setEnabled(true);
        guiController.setUserAccount(account);
    }
View Full Code Here


      // load tatool
        System.out.println("Initializing application...");
        startApplication();
       
        // create the account and the module
        UserAccount account = createAccount();
        Module module = createModule(account);
       
        // execute the module
        System.out.println("START: Executing module...");
        Executor executor = getExecutionService().createExecutor(module);
View Full Code Here

    /**
     * Starts the application once everything has been initialized.
     */
    private void startApplication() {
     
      UserAccount account = null;
       
        // the controller takes care of the rest from here
        guiController.setEnabled(true);
        if (account != null) {
            guiController.setUserAccount(account);
View Full Code Here

      // load tatool
        System.out.println("Initializing application...");
        startApplication();
       
        // create the account and the module
        UserAccount account = createAccount();
        Module module = createModule(account);
       
        // execute the module
        System.out.println("START: Executing module...");
        Executor executor = getExecutionService().createExecutor(module);
View Full Code Here

    createAccountFrame.initialize();
    createAccountFrame.setVisible(true);
  }

  public void loginAccount() {
    UserAccount account = null;

    // fetch the info object
    UserAccount.Info info = (UserAccount.Info) userComboBoxModel
        .getSelectedItem();
    if (info != null) {
View Full Code Here

    String password = null;
    //TODO: why is info.isPasswordProtected() not always set?
    //password = getPassword();
    // load the training
    try {
      UserAccount account = userAccountService
          .loadAccount(info, password);
      return account;
    } catch (RuntimeException e) {
      // TODO: following code is database specific and error prone, as
      // we directly check the error message thrown!
View Full Code Here

        accountProperties.put(Constants.PROPERTY_MACHINE_OS_NAME, System.getProperty("os.name")); //$NON-NLS-1$
        accountProperties.put(Constants.PROPERTY_MACHINE_OS_ARCH, System.getProperty("os.arch")); //$NON-NLS-1$
        accountProperties.put(Constants.PROPERTY_MACHINE_OS_VERSION, System.getProperty("os.version")); //$NON-NLS-1$
        accountProperties.put(Constants.PROPERTY_MACHINE_USER_HOME, System.getProperty("user.home")); //$NON-NLS-1$

        UserAccount account = userAccountService.createAccount(userName,
                accountProperties, null);

        // if we got one, open it now
        if (account != null) {
            loginFrame.openAccount(account);
View Full Code Here

    createAccountFrame.initialize();
    createAccountFrame.setVisible(true);
  }

  public void loginAccount() {
    UserAccount account = null;
    boolean supportedVersion = false;

    // fetch the info object
    UserAccount.Info info = (UserAccount.Info) userComboBoxModel
        .getSelectedItem();
View Full Code Here

  public UserAccount loadAccount(UserAccountService userAccountService,
      UserAccount.Info info, Component parent) {
    String password = null;
    // load the account
    try {
      UserAccount account = userAccountService
          .loadAccount(info, password);
      return account;
    } catch (RuntimeException e) {
      // TODO: following code is database specific and error prone, as
      // we directly check the error message thrown!
View Full Code Here

   
    /**
     * Starts the application once everything has been initialized.
     */
    private void startApplication() {
      UserAccount account = null;
        guiController.setEnabled(true);
        guiController.setUserAccount(account);
    }
View Full Code Here

TOP

Related Classes of ch.tatool.data.UserAccount

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.