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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bycom.RuntimeCollective.permission.action.AddGroupToPermission

public final class AddGroupToPermission
extends org.apache.struts.action.Action

Implementation of Action that adds (or removes) a user group to a UserGroupPermissionRule

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

Field Summary
static java.lang.String ADD_ACTION
          The form action for adding groups.
static java.lang.String REMOVE_ACTION
          The form action for removing groups.
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
AddGroupToPermission()
           
 
Method Summary
 org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Add (or remove) a group from a UserGroupPermissionRule.
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADD_ACTION

public static final java.lang.String ADD_ACTION
The form action for adding groups.

See Also:
Constant Field Values

REMOVE_ACTION

public static final java.lang.String REMOVE_ACTION
The form action for removing groups.

See Also:
Constant Field Values
Constructor Detail

AddGroupToPermission

public AddGroupToPermission()
Method Detail

perform

public org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws java.io.IOException,
                                                      javax.servlet.ServletException
Add (or remove) a group from a UserGroupPermissionRule. The action, group, and rule depend on the properties of the select2Form passed in
  • id1 The id of the group to add (or remove)
  • id2 The id of the rule to add (or remove) the group to
  • formAction Whether to "add" or "remove" the group
  • The following forwards are returned:
    • failure
    • success