Examples of MaklerAuthenticator


Examples of de.dis2011.authentication.MaklerAuthenticator

    mainMenu.addEntry("Vertragsmenü", MENU_VERTRAG);
    mainMenu.addEntry("Beenden", QUIT);
   
    //Authentifizierungsmöglichkeiten
    PropertiesFileAuthenticator pfa = new PropertiesFileAuthenticator("admin.properties");
    MaklerAuthenticator ma = new MaklerAuthenticator(service);
   
    //Testdaten
    //service.addTestData();
   
    //Verarbeite Eingabe
    while(true) {
      int response = mainMenu.show();
     
      switch(response) {
        case MENU_MAKLER:
          if(pfa.authenticate()) {
            MaklerEditor me = new MaklerEditor(service);
            me.showMaklerMenu();
          }
          break;
        case MENU_PERSON:
          if(ma.authenticate()) {
            PersonEditor pe = new PersonEditor(service);
            pe.showPersonMenu();
          }
          break;
        case MENU_IMMO:
          if(ma.authenticate()) {
            ImmobilienEditor ie = new ImmobilienEditor(service, ma.getLastAuthenticatedMakler());
            ie.showImmoMenu();
          }
          break;
        case MENU_VERTRAG:
          if(ma.authenticate()) {
            VertragsEditor ve = new VertragsEditor(service, ma.getLastAuthenticatedMakler());
            ve.showVertragsMenu();
          }
          break;
        case QUIT:
          return;
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.