KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > webapp > jonasadmin > security > RealmItem


1 /*
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: RealmItem.java,v 1.5 2004/03/29 14:59:02 danesa Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.webapp.jonasadmin.security;
27
28 import org.objectweb.jonas.webapp.jonasadmin.common.NameItem;
29
30 /**
31  * @author Michel-Ange ANTON
32  */

33 public class RealmItem implements NameItem {
34
35 // --------------------------------------------------------- Properties Variables
36

37     private String JavaDoc name = null;
38     private String JavaDoc type = null;
39     private String JavaDoc contextPath = null;
40     private boolean usedBySecurityService = false;
41
42 // --------------------------------------------------------- Constructors
43

44     public RealmItem() {
45     }
46
47     public RealmItem(String JavaDoc p_Name, String JavaDoc p_Type) {
48         setName(p_Name);
49         setType(p_Type);
50     }
51
52     public RealmItem(String JavaDoc p_Name, String JavaDoc p_Type, boolean p_UsedBySecurityService) {
53         setName(p_Name);
54         setType(p_Type);
55         setUsedBySecurityService(p_UsedBySecurityService);
56     }
57
58     /**
59      * @param name
60      * @param type
61      * @param contextPath
62      * @param usedBySecurityService
63      */

64     public RealmItem(String JavaDoc p_Name, String JavaDoc p_Type, String JavaDoc p_ContextPath,
65             boolean p_UsedBySecurityService) {
66         super();
67         setName(p_Name);
68         setType(p_Type);
69         setUsedBySecurityService(p_UsedBySecurityService);
70         setContextPath(p_ContextPath);
71     }
72 // --------------------------------------------------------- Properties Methods
73

74     public String JavaDoc getName() {
75         return name;
76     }
77
78     public void setName(String JavaDoc name) {
79         this.name = name;
80     }
81
82     public String JavaDoc getType() {
83         return type;
84     }
85
86     public void setType(String JavaDoc type) {
87         this.type = type;
88     }
89
90     public boolean isUsedBySecurityService() {
91         return usedBySecurityService;
92     }
93
94     public void setUsedBySecurityService(boolean usedBySecurityService) {
95         this.usedBySecurityService = usedBySecurityService;
96     }
97
98     /**
99      * @return Returns the contextPath.
100      */

101     public String JavaDoc getContextPath() {
102         return contextPath;
103     }
104     /**
105      * @param contextPath The contextPath to set.
106      */

107     public void setContextPath(String JavaDoc contextPath) {
108         this.contextPath = contextPath;
109     }
110 }
Popular Tags