1 24 25 package org.objectweb.cjdbc.console.text.commands.controller; 26 27 import org.objectweb.cjdbc.common.i18n.ConsoleTranslate; 28 import org.objectweb.cjdbc.console.text.commands.ConsoleCommand; 29 import org.objectweb.cjdbc.console.text.module.AbstractConsoleModule; 30 31 37 public class Admin extends ConsoleCommand 38 { 39 44 public Admin(AbstractConsoleModule module) 45 { 46 super(module); 47 } 48 49 52 public void parse(String commandText) throws Exception 53 { 54 console.getAdminModule().login(new String []{commandText.trim()}); 55 console.getAdminModule().handlePrompt(); 56 } 57 58 61 public String getCommandName() 62 { 63 return "admin"; 64 } 65 66 69 public String getCommandParameters() 70 { 71 return ConsoleTranslate.get("controller.command.admin.params"); 72 } 73 74 77 public String getCommandDescription() 78 { 79 return ConsoleTranslate.get("controller.command.admin.description"); 80 } 81 82 } 83 | Popular Tags |