KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > raptus > owxv3 > api > usermgr > db > dbRole


1 /*
2  * MmryRole.java
3  *
4  * Created on June 2, 2003, 12:48 PM
5  */

6
7 package com.raptus.owxv3.api.usermgr.db;
8
9 import com.raptus.owxv3.api.usermgr.*;
10 /**
11  *
12  * @author root
13  */

14 public class dbRole implements Role
15 {
16     protected String JavaDoc name = null;
17     protected String JavaDoc description = null;
18     
19     /**
20      * Creates a new instance of MmryRole
21      *
22      * @param name the name of the role
23      * @param description the description of the role
24      */

25     public dbRole(String JavaDoc name, String JavaDoc description)
26     {
27         this.name = name;
28         this.description = description;
29     }
30     
31     /** Return the description of this role
32      *
33      * @return the description of this role
34      *
35      */

36     public String JavaDoc getDescription()
37     {
38         return description;
39     }
40     
41     /** Return the name of this role
42      *
43      * @return the name of this role
44      *
45      */

46     public String JavaDoc getName()
47     {
48         return name;
49     }
50     
51     /**
52      * set the description of this role
53      *
54      * @param description the description of thios role
55      */

56     public void setDescription(String JavaDoc description)
57     {
58         this.description = description;
59     }
60     
61     /**
62      * set the name of this role
63      *
64      * @param name the name of this role
65      */

66     public void setName(String JavaDoc name)
67     {
68         this.name = name;
69     }
70     
71 }
72
Popular Tags