KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > portal > pluto > om > common > SecurityRoleRefImpl


1 /*
2  * Copyright 2004,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.portal.pluto.om.common;
17
18 import java.util.Collection JavaDoc;
19 import java.util.Locale JavaDoc;
20
21 import org.apache.pluto.om.common.Description;
22 import org.apache.pluto.om.common.DescriptionSet;
23 import org.apache.pluto.om.common.SecurityRoleRef;
24
25 /**
26  *
27  *
28  * @author <a HREF="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
29  *
30  * @version CVS $Id: SecurityRoleRefImpl.java 123407 2004-12-27 13:51:59Z cziegeler $
31  */

32 public class SecurityRoleRefImpl implements SecurityRoleRef, java.io.Serializable JavaDoc
33 {
34
35     private String JavaDoc roleName;
36     private String JavaDoc roleLink;
37     private DescriptionSet descriptions;
38
39     public SecurityRoleRefImpl() {
40         descriptions = new DescriptionSetImpl();
41     }
42
43     // SecurityRoleRef implementation.
44

45     public String JavaDoc getRoleName() {
46         return roleName;
47     }
48
49     public String JavaDoc getRoleLink() {
50         return roleLink;
51     }
52
53     /* (non-Javadoc)
54      * @see org.apache.pluto.om.common.SecurityRoleRef#getDescription(Locale)
55      */

56     public Description getDescription(Locale JavaDoc locale) {
57         return descriptions.get(locale);
58     }
59
60
61     public void setRoleName(String JavaDoc roleName) {
62         this.roleName = roleName;
63     }
64
65     // additional methods.
66

67     public void setRoleLink(String JavaDoc roleLink) {
68         this.roleLink = roleLink;
69     }
70
71     public DescriptionSet getDescriptionSet() {
72         return descriptions;
73     }
74
75     public void setDescriptionSet(DescriptionSet descriptions) {
76         this.descriptions = descriptions;
77     }
78
79     public Collection JavaDoc getCastorDescriptions() {
80         return(DescriptionSetImpl)descriptions;
81     }
82
83     public void setCastorDescriptions(DescriptionSet castorDescriptions) {
84         this.descriptions = castorDescriptions;
85     }
86
87
88 }
89
Popular Tags