Package de.bsvrz.dav.daf.userManagement
Class CommandLineAction
- java.lang.Object
-
- de.bsvrz.dav.daf.userManagement.CommandLineAction
-
- Direct Known Subclasses:
ChooseConfiguration,EditUser,MigrationStatus,NewUser,SrpUtilitiesAction,UserList,UserManagement,UserManagementWithDav,UserManagementWithFile
public abstract class CommandLineAction extends java.lang.ObjectBefehl im Benutzerverwaltungs-/Migrationstool
-
-
Constructor Summary
Constructors Constructor Description CommandLineAction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voiddispose(ConsoleInterface console)Wird aufgerufen wenn der Befehl verlassen wirdprotected voidexecute(ConsoleInterface console)Führt den eigentlichen Befehl ausvoidexecute(ConsoleInterface console, CommandLineAction parent)Führt den Befehl ausjava.util.List<? extends CommandLineAction>getChildren()Gibt die Kindbefehle zurückvoidprintStatus(ConsoleInterface console)Gibt einen Text vor der Auswahl der Aktion aus (zum überschreiben)voidskipParent()abstract java.lang.StringtoString()Gibt den Befehlsnamen zurück
-
-
-
Method Detail
-
execute
public final void execute(ConsoleInterface console, CommandLineAction parent)
Führt den Befehl aus- Parameters:
console- Konsoleparent- Übergeordneter Befehl oder null falls es sich um die "Wurzel" handelt.
-
printStatus
public void printStatus(ConsoleInterface console) throws java.lang.Exception
Gibt einen Text vor der Auswahl der Aktion aus (zum überschreiben)- Parameters:
console- Konsole- Throws:
java.lang.Exception- Beliebige Exception
-
execute
protected void execute(ConsoleInterface console) throws java.lang.Exception
Führt den eigentlichen Befehl aus- Parameters:
console- Konsole- Throws:
java.lang.Exception- Beliebige Exception
-
dispose
protected void dispose(ConsoleInterface console) throws java.lang.Exception
Wird aufgerufen wenn der Befehl verlassen wird- Parameters:
console- Konsole- Throws:
java.lang.Exception- Beliebige Exception
-
toString
public abstract java.lang.String toString()
Gibt den Befehlsnamen zurück- Overrides:
toStringin classjava.lang.Object- Returns:
- Name
-
getChildren
public java.util.List<? extends CommandLineAction> getChildren()
Gibt die Kindbefehle zurück- Returns:
- Kindbefehle
-
skipParent
public final void skipParent()
-
-