|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hardtokenmgmt.core.ui.BaseController
public abstract class BaseController
A Base class implementing the common methods of a Controller It also contains a lot of help methods of how to access the different interfaces and logging.
| Field Summary | |
|---|---|
protected BaseView |
view
|
| Constructor Summary | |
|---|---|
BaseController(BaseView view)
|
|
| Method Summary | |
|---|---|
protected void |
debug(java.lang.String msg)
Help method to print a debug message to the local log |
protected void |
debug(java.lang.String msg,
java.lang.Throwable throwable)
Help method to print a debug message along with an excepttion to the local log |
protected void |
error(java.lang.String msg)
Help method to print a error message to the local log |
protected void |
error(java.lang.String msg,
java.lang.Throwable throwable)
Help method to print a error message along with an excepttion to the local log |
protected AdministratorSettings |
getAdministratorSettings()
Help method retrieving the Administrator Settings Interface |
protected ControllerMemory |
getControllerMemory()
Help method returning the instace of the controller memory. |
protected java.lang.String |
getControllerSetting(java.lang.String key)
Returns the value of the given controller setting. |
protected java.lang.String |
getControllerSetting(java.lang.String key,
java.lang.String defaultValue)
Returns the value of the given controller setting. |
protected GlobalSettings |
getGlobalSettings()
Help method retrieving the Global Settings Interface |
protected org.hardtokenmgmt.ws.gen.HTMFAdminWS |
getHTMFAdminInterface()
Help method retrieving the EJBCA Interface |
protected IToken |
getProcessableToken()
Help method returning the first processable token Should only be used by controllers only supporting on processable token |
protected TokenManager |
getTokenManager()
Help method retrieving the Token Manager Interface |
BaseView |
getView()
Method called by the main applet when it add the view to the main panel. |
protected org.signserver.module.wsra.ws.gen.WSRA |
getWSRAInterface()
Help method retrieving the WSRA Interface |
protected void |
info(java.lang.String msg)
Help method to print a info message to the local log |
protected void |
info(java.lang.String msg,
java.lang.Throwable throwable)
Help method to print a info message along with an excepttion to the local log |
protected boolean |
isAdmin()
Help method checking if the administrator have the administrator flag set in the administrative privileges. |
protected boolean |
isNonAdmin()
Help method checking if the pages should be displayed in non-admin mode |
protected void |
switchControlTo(java.lang.String controllerClassPath)
Method that should be used when the controller is complete with its operations and want to give the control to another controller |
protected void |
switchToFreshController(java.lang.String controllerClassPath)
Same as swithcControlTo but always creates a fresh controller. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.hardtokenmgmt.core.ui.IController |
|---|
getControl, isAuthorizedToController |
| Field Detail |
|---|
protected BaseView view
| Constructor Detail |
|---|
public BaseController(BaseView view)
| Method Detail |
|---|
public BaseView getView()
IController
getView in interface IControllerIController.getView()protected void switchControlTo(java.lang.String controllerClassPath)
protected void switchToFreshController(java.lang.String controllerClassPath)
protected org.hardtokenmgmt.ws.gen.HTMFAdminWS getHTMFAdminInterface()
protected org.signserver.module.wsra.ws.gen.WSRA getWSRAInterface()
protected TokenManager getTokenManager()
protected GlobalSettings getGlobalSettings()
protected AdministratorSettings getAdministratorSettings()
protected ControllerMemory getControllerMemory()
protected java.lang.String getControllerSetting(java.lang.String key)
protected java.lang.String getControllerSetting(java.lang.String key,
java.lang.String defaultValue)
protected IToken getProcessableToken()
protected void debug(java.lang.String msg)
msg - the message to log.
protected void debug(java.lang.String msg,
java.lang.Throwable throwable)
msg - the message to log.throwable - exception to logprotected void info(java.lang.String msg)
msg - the message to log.
protected void info(java.lang.String msg,
java.lang.Throwable throwable)
msg - the message to log.throwable - exception to logprotected void error(java.lang.String msg)
msg - the message to log.
protected void error(java.lang.String msg,
java.lang.Throwable throwable)
msg - the message to log.throwable - exception to logprotected boolean isAdmin()
protected boolean isNonAdmin()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||