KickJava   Java API By Example, From Geeks To Geeks.

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


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
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 <security-role> 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  * </servlet>
39  *
40  * --> <security-role>
41  * <desc></desc>
42  * <role-name>Editor</role-name>
43  * </security-role>
44  *
45  * @author Khue ng
46  * @version 1.0
47  */

48 public class Security_Role {
49
50    /** The role name **/
51    private String JavaDoc m_Name;
52    /** The desc **/
53    private String JavaDoc m_Descr;
54
55    /**
56     * Constructor
57     *
58     */

59     public Security_Role ( String JavaDoc name,
60                                 String JavaDoc descr
61                             ){
62
63        m_Name = name;
64        m_Descr= descr;
65
66     }
67
68
69    /**
70     * Return the role name
71     *
72     * @return (String) the role name
73     */

74    public String JavaDoc getName(){
75
76       return m_Name;
77    }
78
79
80    /**
81     * Return the role descr
82     *
83     * @return (String) the role descr
84     */

85    public String JavaDoc getDescr(){
86
87       return m_Descr;
88    }
89
90
91 } // end Web_Component
92
Popular Tags