1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.om.security;
18
19 /***
20 * A Jetspeed basic Group.
21 *
22 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
23 * @version $Id: BaseJetspeedPermission.java,v 1.3 2004/02/23 03:14:12 jford Exp $
24 */
25 public class BaseJetspeedPermission implements Permission
26 {
27 protected String name;
28 protected String id = null;
29 protected boolean isNew = true;
30
31 public BaseJetspeedPermission(String id)
32 {
33 this.id = id;
34 isNew = true;
35 }
36
37 public BaseJetspeedPermission()
38 {
39 isNew = true;
40 }
41
42 /***
43 * Get the name of the Permission
44 *
45 * @return the name of the permission.
46 */
47 public String getName()
48 {
49 return name;
50 }
51
52 /***
53 * Set the name of the Permission
54 *
55 * @param permissionName the name of the Permission.
56 */
57 public void setName(String permissionName)
58 {
59 name = permissionName;
60 }
61
62 /***
63 * Get the id of the Permission
64 *
65 * @return the id of the permission.
66 */
67 public String getId()
68 {
69 return id;
70 }
71
72 /***
73 * Set the id of the Permission
74 *
75 * @param id the new id for the permission
76 */
77 public void setId(String id)
78 {
79 if (this.id == null)
80 {
81 this.id = id;
82 }
83 }
84
85 public boolean isNew()
86 {
87 return isNew;
88 }
89
90 void setNew(boolean isNew)
91 {
92 this.isNew = isNew;
93 }
94
95 }
96
97
98
99