Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.permission.action
Class AdminAction  view AdminAction download AdminAction.java

java.lang.Object
  extended byBaseAction
      extended bycom.RuntimeCollective.webapps.action.BaseForwardAction
          extended bycom.RuntimeCollective.webapps.action.BaseUserAction
              extended bycom.RuntimeCollective.permission.action.PermissibleAction
                  extended bycom.RuntimeCollective.permission.action.AuthenticatedAction
                      extended bycom.RuntimeCollective.permission.action.AdminAction

public class AdminAction
extends AuthenticatedAction

An action which ensures the user is in the Admin group, whose name is specified in web.xml under the attribute name defined by ADMIN_GROUP_NAME_PARAM.

Version:
$Id: AdminAction.java,v 1.3 2003/09/30 15:12:49 joe Exp $

Field Summary
static java.lang.String ADMIN_GROUP_NAME_PARAM
           
private static int groupId
           
 
Fields inherited from class com.RuntimeCollective.permission.action.PermissibleAction
DENIED, NOT_AUTH
 
Fields inherited from class com.RuntimeCollective.webapps.action.BaseUserAction
USER_KEY
 
Fields inherited from class com.RuntimeCollective.webapps.action.BaseForwardAction
CANCEL, FAILURE, FAILURE_KEY, INVALID, ITERATE, SUCCESS, SUCCESS_FORWARD, SUCCESS_KEY, SUCCESS_PARAM_MAP, TRANSACTION_TOKEN_KEY
 
Constructor Summary
AdminAction()
           
 
Method Summary
protected  void checkPermissions(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Saves an appropriate error if the requesting user does not have sufficient status to allow the action to be performed.
private static com.RuntimeCollective.webapps.bean.UserGroup getAdminGroup()
           
 
Methods inherited from class com.RuntimeCollective.permission.action.PermissibleAction
authorisedPreProcess, preProcess, validateRequest
 
Methods inherited from class com.RuntimeCollective.webapps.action.BaseUserAction
execute, getUser
 
Methods inherited from class com.RuntimeCollective.webapps.action.BaseForwardAction
findFailure, findSuccess, forward, getToken, isTokenValid, iterate, resetToken, saveToken, setFailureForward, setSuccessForward, setSuccessForward, setSuccessForward, setToken, validForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADMIN_GROUP_NAME_PARAM

public static java.lang.String ADMIN_GROUP_NAME_PARAM

groupId

private static int groupId
Constructor Detail

AdminAction

public AdminAction()
Method Detail

getAdminGroup

private static com.RuntimeCollective.webapps.bean.UserGroup getAdminGroup()

checkPermissions

protected void checkPermissions(org.apache.struts.action.ActionMapping mapping,
                                org.apache.struts.action.ActionForm form,
                                javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response)
Description copied from class: PermissibleAction
Saves an appropriate error if the requesting user does not have sufficient status to allow the action to be performed.

Overrides:
checkPermissions in class AuthenticatedAction