KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > data > webapps > Security_Role_Ref


1 //
2
// ____.
3
// __/\ ______| |__/\. _______
4
// __ .____| | \ | +----+ \
5
// _______| /--| | | - \ _ | : - \_________
6
// \\______: :---| : : | : | \________>
7
// |__\---\_____________:______: :____|____:_____\
8
// /_____|
9
//
10
// . . . i n j a h i a w e t r u s t . . .
11
//
12
//
13
//
14
// Security_Role_Ref
15
//
16
// NK 29.01.2001
17
//
18
//
19

20 package org.jahia.data.webapps;
21
22
23
24
25 /**
26  * Holds Informations about the <web> components element in the descriptors file
27  * web.xml
28  *
29  * <servlet>
30  * <servlet-name>FilemanagerServlet</servlet-name>
31  * <display-name>Filemanager Portlet</display-name>
32  * <desc>no desc</desc>
33  * <servlet-class>org.jahia.portlets.filemanager.FilemanagerServlet</servlet-class>
34  * <init-param>
35  * <param-name>properties</param-name>
36  * <param-value>WEB-INF\conf\config.properties</param-value>
37  * </init-param>
38  *
39  *
40  * --> <security-role_ref>
41  * <desc></desc>
42  * <role-name>Editor</role-name>
43  * <role-link>Editor</role-link>
44  * </security-role-ref>
45  *
46  *
47  * </servlet>
48  *
49  *
50  * @author Khue ng
51  * @version 1.0
52  */

53 public class Security_Role_Ref {
54
55    /** The role name **/
56    private String JavaDoc m_Name;
57    /** The role link **/
58    private String JavaDoc m_Link;
59    /** The desc **/
60    private String JavaDoc m_Descr;
61
62    /**
63     * Constructor
64     *
65     */

66     public Security_Role_Ref( String JavaDoc name,
67                                 String JavaDoc link,
68                                 String JavaDoc descr
69                             ){
70
71        m_Name = name;
72        m_Link = link;
73        m_Descr= descr;
74
75     }
76
77
78    /**
79     * Return the role name
80     *
81     * @return (String) the role name
82     */

83    public String JavaDoc getName(){
84
85       return m_Name;
86    }
87
88
89    /**
90     * Return the role link
91     *
92     * @return (String) the role link
93     */

94    public String JavaDoc getLink(){
95
96       return m_Link;
97    }
98
99
100    /**
101     * Return the role descr
102     *
103     * @return (String) the role descr
104     */

105    public String JavaDoc getDescr(){
106
107       return m_Descr;
108    }
109
110
111 } // end Web_Component
112
Popular Tags