net.java.dev.moskitodemo.guestbook.presentation.action
Class BaseGuestbookAction
java.lang.Object
org.apache.struts.action.Action
net.java.dev.moskito.web.MoskitoAction
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
| 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 |
| 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 |
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
BaseGuestbookAction
protected BaseGuestbookAction()
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