Workplace Widget 5.10.23

This commit is contained in:
chris
2026-11-08 17:45:04 +00:00
parent 180127e2ae
commit 60d35e2326
98 changed files with 4221 additions and 268 deletions

View File

@@ -0,0 +1,5 @@
package com.itac.artes.ihas;
public final class ServiceLocator {
private ServiceLocator(){}
public static Object getService(Class<?> ignored){return new Object();}
}

View File

@@ -0,0 +1,2 @@
package com.itac.mes.admin.domain;
public interface PersonService {}

View File

@@ -0,0 +1,14 @@
package com.itac.mes.gui;
import com.itac.util.text.Password;
public final class MesContext {
private static final MesContext INSTANCE=new MesContext();
private Object user;
public static MesContext instance(){return INSTANCE;}
public Object getUser(){return user;}
public boolean doLogin(String username, Password password, String client){
if("tester".equals(username) && password.matches("secret123") && "any".equals(client)){
user=new Object();return true;
}
return false;
}
}

View File

@@ -0,0 +1,10 @@
package com.itac.util.text;
public final class Password {
public enum Encryption { NONE }
private final String value;
public Password(Encryption encryption, String plaintext){
if(encryption!=Encryption.NONE)throw new IllegalArgumentException();
value=plaintext;
}
public boolean matches(String check){return value.equals(check);}
}