1 /***
2 * The contents of this file are subject to the Mozilla Public
3 * License Version 1.1 (the "License"); you may not use this file
4 * except in compliance with the License. You may obtain a copy of
5 * the License at http://www.mozilla.org/MPL/
6 *
7 * Software distributed under the License is distributed on an "AS
8 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9 * implied. See the License for the specific language governing
10 * rights and limitations under the License.
11 *
12 * The Original Code is pow2ACL library.
13 *
14 * The Initial Owner of the Original Code is Power Of Two S.R.L.
15 * Portions created by Power Of Two S.R.L. are Copyright (C) Power Of Two S.R.L.
16 * All Rights Reserved.
17 *
18 * Contributor(s):
19 */
20 package com.pow2.acl.struts.action;
21
22 import java.io.IOException;
23
24 import java.net.*;
25 import java.net.MalformedURLException;
26 import javax.servlet.ServletContext;
27 import javax.servlet.ServletException;
28 import javax.servlet.http.HttpServletRequest;
29 import javax.servlet.http.HttpServletResponse;
30 import javax.servlet.http.HttpSession;
31
32 import org.apache.log4j.Category;
33 import org.apache.struts.action.*;
34
35 import com.pow2.acl.dao.ACLDAO;
36
37 import com.pow2.user.User;
38
39 /***
40 * This class extends the <code>com.pow2.struts.action.ToolkitActionMapping</code>
41 * class, adding the <code>role</code> property and the relative
42 * public "getter" and "setter" methods.
43 *
44 * @author Luca Fossato
45 * @created 8 aprile 2002
46 */
47 public class ACLActionMapping extends com.pow2.struts.action.ToolkitActionMapping
48 {
49 /*** Log4j category; */
50 private Category cat;
51
52 /*** the ACL group */
53 private String group;
54
55 /*** the ACL role */
56 private String role;
57
58 /*** turns on / off the ACLDispatcherAction's validatePermissions() execution */
59 private boolean validatePermissions;
60
61
62 /***
63 * Gets the group attribute of the ACLActionMapping object
64 *
65 * @return The group value
66 */
67 public String getGroup()
68 {
69 return group;
70 }
71
72
73 /***
74 * Gets the role attribute of the ACLActionMapping object
75 *
76 * @return The role value
77 */
78 public String getRole()
79 {
80 return role;
81 }
82
83
84 /***
85 * Gets the validatePermissions attribute of the ACLActionMapping object
86 *
87 * @return The validatePermissions value
88 */
89 public boolean isValidatePermissions()
90 {
91 return validatePermissions;
92 }
93
94
95 /***
96 * Sets the group attribute of the ACLActionMapping object
97 *
98 * @param group The new group value
99 */
100 public void setGroup(String group)
101 {
102 this.group = group;
103 }
104
105
106 /***
107 * Sets the role attribute of the ACLActionMapping object
108 *
109 * @param role The new role value
110 */
111 public void setRole(String role)
112 {
113 this.role = role;
114 }
115
116
117 /***
118 * Sets the validatePermissions attribute of the ACLActionMapping object
119 *
120 * @param validatePermissions The new validatePermissions value
121 */
122 public void setValidatePermissions(boolean validatePermissions)
123 {
124 this.validatePermissions = validatePermissions;
125 }
126 }
This page was automatically generated by Maven