Class OpModeKonfiguration
- java.lang.Object
-
- de.desy.mst.libs.framework.mstapp.mode.OpModeKonfiguration
-
public final class OpModeKonfiguration extends java.lang.Object
Welcher OpMode gewählt, welche implementiert und welche Passwortgeschützt steht hier. package privat, da reine Implementierung- Version:
- 1.0.0
- Author:
- schuette
-
-
Constructor Summary
Constructors Constructor Description OpModeKonfiguration(OpModeListe implementierteModes, ISetOpModeProtection opModeProtection, OpMode opMode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OpModeKonfiguration
createKonfiguration(OPModeACLEntry aclEntry)
static OpModeKonfiguration
getDefaultKonfiguration()
static OpModeKonfiguration
getDefaultTestKonfiguration()
static OpModeKonfiguration
makeTestKonfiguration(OpModeKonfiguration opModeKonfiguration)
void
setOpMode(OpMode opMode, java.lang.String passwort)
java.lang.String
toString()
-
-
-
Constructor Detail
-
OpModeKonfiguration
public OpModeKonfiguration(OpModeListe implementierteModes, ISetOpModeProtection opModeProtection, OpMode opMode)
- Parameters:
implementierteModes
- != OpModeListe.EMPTY_LISTEopModeProtection
- muss ein implementierten Mode uebrig lassenopMode
- null oder muss ein ungeschuetzt implementierter Mode sein- Throws:
java.lang.IllegalArgumentException
- falls opMode nicht gesetzt werden kann, da nicht im oeffentlicher Mode Liste
-
-
Method Detail
-
getDefaultKonfiguration
public static final OpModeKonfiguration getDefaultKonfiguration()
-
getDefaultTestKonfiguration
public static final OpModeKonfiguration getDefaultTestKonfiguration()
-
createKonfiguration
public static final OpModeKonfiguration createKonfiguration(OPModeACLEntry aclEntry)
-
setOpMode
public void setOpMode(OpMode opMode, java.lang.String passwort)
- Parameters:
opMode
-- Throws:
java.security.AccessControlException
- fuer passwortgeschuetzte OpModes bei falscher Legitimationjava.lang.IllegalArgumentException
- opMode muss setzbar (implementiert) sein
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
makeTestKonfiguration
public static OpModeKonfiguration makeTestKonfiguration(OpModeKonfiguration opModeKonfiguration)
-
-