BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.net.servlet.AdministratorServlet Class Reference
Inheritance diagram for eu.baltrad.dex.net.servlet.AdministratorServlet:

Public Member Functions

ModelAndView handleRequest (HttpServletRequest request, HttpServletResponse response)
 
void doPost (HttpServletRequest request, HttpServletResponse response)
 
ISecurityManager getSecurityManager ()
 
void setSecurityManager (ISecurityManager securityManager)
 
JsonCommandParser getJsonAdministratorCommandParser ()
 
void setJsonAdministratorCommandParser (JsonCommandParser commandParser)
 
Administrator getAdministrator ()
 
void setAdministrator (Administrator administrator)
 
JsonGenerator getJsonGenerator ()
 
void setJsonGenerator (JsonGenerator jsonGenerator)
 
IUserManager getUserManager ()
 
void setUserManager (IUserManager userManager)
 
PasswordValidator getValidator ()
 
void setValidator (PasswordValidator validator)
 
boolean isEnabled ()
 
void setEnabled (boolean enabled)
 
void setConfigManager (ConfigurationManager configManager)
 
void setRegistryManager (RegistryManager registryManager)
 

Protected Member Functions

User beastUserFromDexUser (eu.baltrad.dex.user.model.User dUser)
 
String getNodeName (HttpServletRequest request)
 
String getMessageDate (HttpServletRequest request)
 
String getSignature (HttpServletRequest request)
 
String readInputStreamFromRequest (HttpServletRequest request) throws IOException
 
boolean validateRegistryConfiguration (RegistryConfiguration conf, SettingCommandResponse settingResponse)
 
boolean validateMessagesConfiguration (LogConfiguration conf, SettingCommandResponse settingResponse)
 
boolean isAuthorizedIP (HttpServletRequest request)
 

Detailed Description

Author
anders

Member Function Documentation

◆ beastUserFromDexUser()

User eu.baltrad.dex.net.servlet.AdministratorServlet.beastUserFromDexUser ( eu.baltrad.dex.user.model.User dUser)
inlineprotected

Translates a dex user into a beast user

Parameters
dUserthe dex user
Returns
the beast user

◆ doPost()

void eu.baltrad.dex.net.servlet.AdministratorServlet.doPost ( HttpServletRequest request,
HttpServletResponse response )
inline

Handles the actual request and produces the response.

Parameters
requestthe http request
responsethe http response

◆ getAdministrator()

Administrator eu.baltrad.dex.net.servlet.AdministratorServlet.getAdministrator ( )
inline
Returns
the administrator

◆ getJsonAdministratorCommandParser()

JsonCommandParser eu.baltrad.dex.net.servlet.AdministratorServlet.getJsonAdministratorCommandParser ( )
inline
Returns
the json parser used for parsing beast admin commands

◆ getJsonGenerator()

JsonGenerator eu.baltrad.dex.net.servlet.AdministratorServlet.getJsonGenerator ( )
inline
Returns
the jsonCommandResponseGenerator

◆ getMessageDate()

String eu.baltrad.dex.net.servlet.AdministratorServlet.getMessageDate ( HttpServletRequest request)
inlineprotected

Gets the message date (Date) from the servlet request header

Parameters
requestthe request
Returns
the date string

◆ getNodeName()

String eu.baltrad.dex.net.servlet.AdministratorServlet.getNodeName ( HttpServletRequest request)
inlineprotected

Gets the node name (Node-Name) from the servlet request header

Parameters
requestthe request
Returns
the node name

◆ getSecurityManager()

ISecurityManager eu.baltrad.dex.net.servlet.AdministratorServlet.getSecurityManager ( )
inline
Returns
the security manager

◆ getSignature()

String eu.baltrad.dex.net.servlet.AdministratorServlet.getSignature ( HttpServletRequest request)
inlineprotected

Gets the signature (Signature) from the servlet request header

Parameters
requestthe request
Returns
the signature

◆ getUserManager()

IUserManager eu.baltrad.dex.net.servlet.AdministratorServlet.getUserManager ( )
inline
Returns
the userManager

◆ getValidator()

PasswordValidator eu.baltrad.dex.net.servlet.AdministratorServlet.getValidator ( )
inline
Returns
the validator

◆ handleRequest()

ModelAndView eu.baltrad.dex.net.servlet.AdministratorServlet.handleRequest ( HttpServletRequest request,
HttpServletResponse response )
inline

Mapping function for supporting the administrator.htm JSON API.

Parameters
requestthe http request
responsethe http response
Returns
the model and view

◆ isAuthorizedIP()

boolean eu.baltrad.dex.net.servlet.AdministratorServlet.isAuthorizedIP ( HttpServletRequest request)
inlineprotected

Tests if the request comes from a known source

Parameters
requestthe servlet request
Returns
true if request should be allowed

◆ isEnabled()

boolean eu.baltrad.dex.net.servlet.AdministratorServlet.isEnabled ( )
inline
Returns
the enabled

◆ readInputStreamFromRequest()

String eu.baltrad.dex.net.servlet.AdministratorServlet.readInputStreamFromRequest ( HttpServletRequest request) throws IOException
inlineprotected

Reads data from the input stream

Parameters
isthe input stream
Returns
the data

◆ setAdministrator()

void eu.baltrad.dex.net.servlet.AdministratorServlet.setAdministrator ( Administrator administrator)
inline
Parameters
administratorthe administrator to set

◆ setConfigManager()

void eu.baltrad.dex.net.servlet.AdministratorServlet.setConfigManager ( ConfigurationManager configManager)
inline
Parameters
configManagerthe configManager to set

◆ setEnabled()

void eu.baltrad.dex.net.servlet.AdministratorServlet.setEnabled ( boolean enabled)
inline
Parameters
enabledthe enabled to set

◆ setJsonAdministratorCommandParser()

void eu.baltrad.dex.net.servlet.AdministratorServlet.setJsonAdministratorCommandParser ( JsonCommandParser commandParser)
inline
Parameters
commandParserthe json parser

◆ setJsonGenerator()

void eu.baltrad.dex.net.servlet.AdministratorServlet.setJsonGenerator ( JsonGenerator jsonGenerator)
inline
Parameters
jsonGeneratorthe jsonGenerator to set

◆ setRegistryManager()

void eu.baltrad.dex.net.servlet.AdministratorServlet.setRegistryManager ( RegistryManager registryManager)
inline
Parameters
registryManagerthe registryManager to set

◆ setSecurityManager()

void eu.baltrad.dex.net.servlet.AdministratorServlet.setSecurityManager ( ISecurityManager securityManager)
inline
Parameters
securityManagerthe security manager

◆ setUserManager()

void eu.baltrad.dex.net.servlet.AdministratorServlet.setUserManager ( IUserManager userManager)
inline
Parameters
userManagerthe userManager to set

◆ setValidator()

void eu.baltrad.dex.net.servlet.AdministratorServlet.setValidator ( PasswordValidator validator)
inline
Parameters
validatorthe validator to set

◆ validateMessagesConfiguration()

boolean eu.baltrad.dex.net.servlet.AdministratorServlet.validateMessagesConfiguration ( LogConfiguration conf,
SettingCommandResponse settingResponse )
inlineprotected

Validates the messages configuration

Parameters
conf
settingResponse
Returns

◆ validateRegistryConfiguration()

boolean eu.baltrad.dex.net.servlet.AdministratorServlet.validateRegistryConfiguration ( RegistryConfiguration conf,
SettingCommandResponse settingResponse )
inlineprotected

Validates the registry configuration

Parameters
conf
settingResponse
Returns

The documentation for this class was generated from the following file: