net.java.dev.moskitodemo.guestbook.presentation.action
Class BaseGuestbookAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by net.java.dev.moskito.web.MoskitoAction
          extended by net.java.dev.moskitodemo.guestbook.presentation.action.BaseGuestbookAction
All Implemented Interfaces:
IStatsProducer
Direct Known Subclasses:
AuthorizeUserAction, CreateCommentAction, NewCommentAction, ShowCommentAction, ShowCommentsAction

public abstract class BaseGuestbookAction
extends MoskitoAction


Field Summary
private static IAuthorizationService authorizationService
           
static String BEAN_AUTHORIZATION
           
private static ICommentService commentService
           
private  String myProducerId
           
static String PARAM_COMMENT_ID
           
 
Fields inherited from class org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Constructor Summary
protected BaseGuestbookAction()
           
 
Method Summary
protected  void authorizeUser(HttpServletRequest req)
           
private  String extractClassName()
           
protected  IAuthorizationService getAuthorizationService()
           
protected  ICommentService getCommentService()
           
 String getProducerId()
           
 String getSubsystem()
           
protected  boolean isAuthorized(HttpServletRequest req)
           
protected  String makeDateString(long timestamp)
           
protected static String obfuscateEmail(String anEmail)
           
private static String x(String src)
           
 
Methods inherited from class net.java.dev.moskito.web.MoskitoAction
execute, getCategory, getMonitoringIntervals, getStats, moskitoExecute, postProcessExecute, preProcessExecute
 
Methods inherited from class org.apache.struts.action.Action
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_AUTHORIZATION

public static final String BEAN_AUTHORIZATION
See Also:
Constant Field Values

PARAM_COMMENT_ID

public static final String PARAM_COMMENT_ID
See Also:
Constant Field Values

authorizationService

private static IAuthorizationService authorizationService

commentService

private static ICommentService commentService

myProducerId

private String myProducerId
Constructor Detail

BaseGuestbookAction

protected BaseGuestbookAction()
Method Detail

extractClassName

private String extractClassName()

isAuthorized

protected boolean isAuthorized(HttpServletRequest req)

authorizeUser

protected void authorizeUser(HttpServletRequest req)

getCommentService

protected ICommentService getCommentService()

getAuthorizationService

protected IAuthorizationService getAuthorizationService()

obfuscateEmail

protected static String obfuscateEmail(String anEmail)

x

private static String x(String src)

makeDateString

protected String makeDateString(long timestamp)

getProducerId

public String getProducerId()
Specified by:
getProducerId in interface IStatsProducer
Overrides:
getProducerId in class MoskitoAction

getSubsystem

public String getSubsystem()
Specified by:
getSubsystem in interface IStatsProducer
Overrides:
getSubsystem in class MoskitoAction


Copyright © 2006 MoSKito Project Team. All Rights Reserved.
MoSKito, the open source java monitoring framework