01: /* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
02: *
03: * Licensed under the Apache License, Version 2.0 (the "License");
04: * you may not use this file except in compliance with the License.
05: * You may obtain a copy of the License at
06: *
07: * http://www.apache.org/licenses/LICENSE-2.0
08: *
09: * Unless required by applicable law or agreed to in writing, software
10: * distributed under the License is distributed on an "AS IS" BASIS,
11: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: * See the License for the specific language governing permissions and
13: * limitations under the License.
14: */
15: package sample.contact;
16:
17: import org.acegisecurity.acl.basic.SimpleAclEntry;
18:
19: /**
20: * Model object for add permission use case.
21: *
22: * @author Ben Alex
23: * @version $Id: AddPermission.java 1754 2006-11-17 02:01:21Z benalex $
24: */
25: public class AddPermission {
26: //~ Instance fields ================================================================================================
27:
28: public Contact contact;
29: public Integer permission = new Integer(SimpleAclEntry.READ);
30: public String recipient;
31:
32: //~ Methods ========================================================================================================
33:
34: public Contact getContact() {
35: return contact;
36: }
37:
38: public Integer getPermission() {
39: return permission;
40: }
41:
42: public String getRecipient() {
43: return recipient;
44: }
45:
46: public void setContact(Contact contact) {
47: this .contact = contact;
48: }
49:
50: public void setPermission(Integer permission) {
51: this .permission = permission;
52: }
53:
54: public void setRecipient(String recipient) {
55: this.recipient = recipient;
56: }
57: }
|