1 /* Copyright 2004 Acegi Technology Pty Limited
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * 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
16 package sample.contact;
17
18 import org.acegisecurity.acl.basic.SimpleAclEntry;
19
20
21 /***
22 * Model object for add permission use case.
23 *
24 * @author Ben Alex
25 * @version $Id: AddPermission.java,v 1.2 2005/11/17 00:56:08 benalex Exp $
26 */
27 public class AddPermission {
28 //~ Instance fields ========================================================
29
30 public Contact contact;
31 public Integer permission = new Integer(SimpleAclEntry.NOTHING);
32 public String recipient;
33
34 //~ Methods ================================================================
35
36 public void setContact(Contact contact) {
37 this.contact = contact;
38 }
39
40 public Contact getContact() {
41 return contact;
42 }
43
44 public void setPermission(Integer permission) {
45 this.permission = permission;
46 }
47
48 public Integer getPermission() {
49 return permission;
50 }
51
52 public void setRecipient(String recipient) {
53 this.recipient = recipient;
54 }
55
56 public String getRecipient() {
57 return recipient;
58 }
59 }