KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > management > impl > simple > AccessRightImpl


1 /* ===============================================================================
2  *
3  * Part of the InfoGlue Content Management Platform (www.infoglue.org)
4  *
5  * ===============================================================================
6  *
7  * Copyright (C)
8  *
9  * This program is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License version 2, as published by the
11  * Free Software Foundation. See the file LICENSE.html for more information.
12  *
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY, including the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along with
18  * this program; if not, write to the Free Software Foundation, Inc. / 59 Temple
19  * Place, Suite 330 / Boston, MA 02111-1307 / USA.
20  *
21  * ===============================================================================
22  */

23
24 package org.infoglue.cms.entities.management.impl.simple;
25
26 import java.util.ArrayList JavaDoc;
27 import java.util.Collection JavaDoc;
28
29 import org.infoglue.cms.entities.kernel.BaseEntityVO;
30 import org.infoglue.cms.entities.management.AccessRight;
31 import org.infoglue.cms.entities.management.AccessRightVO;
32 import org.infoglue.cms.entities.management.InterceptionPoint;
33
34 public class AccessRightImpl implements AccessRight
35 {
36     private AccessRightVO valueObject = new AccessRightVO();
37     private InterceptionPoint interceptionPoint = null;
38     private Collection JavaDoc roles = new ArrayList JavaDoc();
39     private Collection JavaDoc groups = new ArrayList JavaDoc();
40     private Collection JavaDoc users = new ArrayList JavaDoc();
41     
42     public java.lang.Integer JavaDoc getAccessRightId()
43     {
44         return this.valueObject.getAccessRightId();
45     }
46       
47     public Object JavaDoc getIdAsObject()
48     {
49         return getId();
50     }
51         
52     public void setAccessRightId(java.lang.Integer JavaDoc accessRightId)
53     {
54         this.valueObject.setAccessRightId(accessRightId);
55     }
56       
57     public java.lang.String JavaDoc getName()
58     {
59         return this.valueObject.getName();
60     }
61             
62     public void setName(java.lang.String JavaDoc name)
63     {
64         this.valueObject.setName(name);
65     }
66
67     public String JavaDoc getParameters()
68     {
69         return this.valueObject.getParameters();
70     }
71
72     public void setParameters(String JavaDoc parameters)
73     {
74         this.valueObject.setParameters(parameters);
75     }
76 /*
77     public java.lang.String getRoleName()
78     {
79         return this.valueObject.getRoleName();
80     }
81             
82     public void setRoleName(java.lang.String roleName)
83     {
84         this.valueObject.setRoleName(roleName);
85     }
86 */

87     public InterceptionPoint getInterceptionPoint()
88     {
89         return this.interceptionPoint;
90     }
91     
92     public void setInterceptionPoint(InterceptionPoint interceptionPoint)
93     {
94         this.valueObject.setInterceptionPointId(interceptionPoint.getId());
95         this.valueObject.setInterceptionPointName(interceptionPoint.getName());
96         this.interceptionPoint = interceptionPoint;
97     }
98     
99     public Integer JavaDoc getId()
100     {
101         return this.getAccessRightId();
102     }
103
104     public AccessRightVO getValueObject()
105     {
106         return this.valueObject;
107     }
108         
109     public void setValueObject(AccessRightVO valueObject)
110     {
111         this.valueObject = valueObject;
112     }
113
114     public BaseEntityVO getVO()
115     {
116         return (BaseEntityVO) getValueObject();
117     }
118
119     public void setVO(BaseEntityVO valueObject)
120     {
121         setValueObject((AccessRightVO) valueObject);
122     }
123     
124     public Collection JavaDoc getGroups()
125     {
126         return groups;
127     }
128     
129     public void setGroups(Collection JavaDoc groups)
130     {
131         this.groups = groups;
132     }
133     
134     public Collection JavaDoc getRoles()
135     {
136         return roles;
137     }
138     
139     public void setRoles(Collection JavaDoc roles)
140     {
141         this.roles = roles;
142     }
143     
144     public Collection JavaDoc getUsers()
145     {
146         return users;
147     }
148     
149     public void setUsers(Collection JavaDoc users)
150     {
151         this.users = users;
152     }
153 }
154
Popular Tags