KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jresearch > gossip > am > StrutsPermissionMapping


1 /*
2  * $Id: StrutsPermissionMapping.java,v 1.3 2005/06/07 12:32:23 bel70 Exp $
3  *
4  * ***** BEGIN LICENSE BLOCK *****
5  * The contents of this file are subject to the Mozilla Public License
6  * Version 1.1 (the "License"); you may not use this file except in
7  * compliance with the License. You may obtain a copy of the License
8  * at http://www.mozilla.org/MPL/
9  *
10  * Software distributed under the License is distributed on an "AS IS"
11  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
12  * the License for the specific language governing rights and
13  * limitations under the License.
14  *
15  * The Original Code is JGossip forum code.
16  *
17  * The Initial Developer of the Original Code is the JResearch, Org.
18  * Portions created by the Initial Developer are Copyright (C) 2004
19  * the Initial Developer. All Rights Reserved.
20  *
21  * Contributor(s):
22  * Dmitriy Belov <bel@jresearch.org>
23  * .
24  * * ***** END LICENSE BLOCK ***** */

25 /*
26  * Created on 16.07.2004
27  *
28  */

29 package org.jresearch.gossip.am;
30
31 import org.apache.struts.action.ActionMapping;
32
33 /**
34  * @author Dmitry Belov
35  *
36  */

37 public class StrutsPermissionMapping extends ActionMapping {
38
39     /**
40      *
41      */

42     private static final long serialVersionUID = -4737343936336931821L;
43
44     private Integer JavaDoc amObjectId = null;
45
46     private Integer JavaDoc amOperationId = null;
47
48     private String JavaDoc amAttr1 = null;
49
50     private String JavaDoc amAttr2 = null;
51
52     private String JavaDoc amAttr3 = null;
53
54     public StrutsPermissionMapping() {
55         super();
56     }
57
58     public String JavaDoc toString() {
59         StringBuffer JavaDoc buffer = new StringBuffer JavaDoc();
60         buffer.append("[StrutsPermissionMapping:");
61         buffer.append(" amObjectId: ");
62         buffer.append(amObjectId);
63         buffer.append(" amOperationId: ");
64         buffer.append(amOperationId);
65         buffer.append(" amAttr1: ");
66         buffer.append(amAttr1);
67         buffer.append(" amAttr2: ");
68         buffer.append(amAttr2);
69         buffer.append(" amAttr3: ");
70         buffer.append(amAttr3);
71         buffer.append("]");
72         return buffer.toString();
73     }
74
75     /**
76      * @return Returns the amAttr1.
77      */

78     public String JavaDoc getAmAttr1() {
79         return amAttr1;
80     }
81
82     /**
83      * @param amAttr1
84      * The amAttr1 to set.
85      */

86     public void setAmAttr1(String JavaDoc attr1) {
87         this.amAttr1 = attr1;
88     }
89
90     /**
91      * @return Returns the amAttr2.
92      */

93     public String JavaDoc getAmAttr2() {
94         return amAttr2;
95     }
96
97     /**
98      * @param amAttr2
99      * The amAttr2 to set.
100      */

101     public void setAmAttr2(String JavaDoc attr2) {
102         this.amAttr2 = attr2;
103     }
104
105     /**
106      * @return Returns the amAttr3.
107      */

108     public String JavaDoc getAmAttr3() {
109         return amAttr3;
110     }
111
112     /**
113      * @param amAttr3
114      * The amAttr3 to set.
115      */

116     public void setAmAttr3(String JavaDoc attr3) {
117         this.amAttr3 = attr3;
118     }
119
120     /**
121      * @return Returns the amObjectId.
122      */

123     public Integer JavaDoc getAmObjectId() {
124         return amObjectId;
125     }
126
127     /**
128      * @param amObjectId
129      * The amObjectId to set.
130      */

131     public void setAmObjectId(Integer JavaDoc objectId) {
132         this.amObjectId = objectId;
133     }
134
135     /**
136      * @return Returns the amOperationId.
137      */

138     public Integer JavaDoc getAmOperationId() {
139         return amOperationId;
140     }
141
142     /**
143      * @param amOperationId
144      * The amOperationId to set.
145      */

146     public void setAmOperationId(Integer JavaDoc operationId) {
147         this.amOperationId = operationId;
148     }
149 }
Popular Tags