KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > console > util > SecurityRealmBean


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

17
18 package org.apache.geronimo.console.util;
19
20 import java.util.Map JavaDoc;
21
22 import javax.management.ObjectName JavaDoc;
23
24 import org.apache.geronimo.kernel.ObjectNameUtil;
25
26 public class SecurityRealmBean {
27
28     private ObjectName JavaDoc realmObjectName, configEntryObjName;
29
30     private String JavaDoc configID, realmName, applicationConfigName;
31
32     private boolean running;
33
34     private Map JavaDoc attributes;
35
36     public SecurityRealmBean(ObjectName JavaDoc realmObjectName,
37             ObjectName JavaDoc configEntryObjName, String JavaDoc configID,
38             String JavaDoc applicationConfigName, String JavaDoc realmName, boolean started,
39             Map JavaDoc attributes) {
40         this.realmObjectName = realmObjectName;
41         this.configEntryObjName = configEntryObjName;
42         this.configID = configID;
43         this.applicationConfigName = applicationConfigName;
44         this.realmName = realmName;
45         this.running = started;
46         this.attributes = attributes;
47     }
48
49     public SecurityRealmBean(String JavaDoc realmObjectName, String JavaDoc configEntryObjName,
50             String JavaDoc configID, String JavaDoc applicationConfigName, String JavaDoc realmName,
51             boolean started, Map JavaDoc attributes) {
52         this(ObjectNameUtil.getObjectName(realmObjectName), ObjectNameUtil
53                 .getObjectName(configEntryObjName), configID,
54                 applicationConfigName, realmName, started, attributes);
55     }
56
57     /**
58      * @return Returns the configEntryObjName.
59      */

60     public ObjectName JavaDoc getConfigEntryObjName() {
61         return configEntryObjName;
62     }
63
64     /**
65      * @return Returns the applicationConfigName.
66      */

67     public String JavaDoc getApplicationConfigName() {
68         return applicationConfigName;
69     }
70
71     /**
72      * @return Returns the attributes.
73      */

74     public Map JavaDoc getAttributes() {
75         return attributes;
76     }
77
78     /**
79      * @return Returns the configID.
80      */

81     public String JavaDoc getConfigID() {
82         return configID;
83     }
84
85     /**
86      * @return Returns the realmName.
87      */

88     public String JavaDoc getRealmName() {
89         return realmName;
90     }
91
92     /**
93      * @return Returns the realmObjectName.
94      */

95     public ObjectName JavaDoc getRealmObjectName() {
96         return realmObjectName;
97     }
98
99     /**
100      * @return Returns the running.
101      */

102     public boolean isRunning() {
103         return running;
104     }
105
106 }
107
Popular Tags