geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: incubator-geronimo/modules/core/src/java/org/apache/geronimo/security/providers PropertiesFileSecurityRealm.java SQLSecurityRealm.java
Date Sun, 04 Jan 2004 20:40:26 GMT
adc         2004/01/04 12:40:26

  Modified:    modules/core/src/java/org/apache/geronimo/security/providers
                        PropertiesFileSecurityRealm.java
                        SQLSecurityRealm.java
  Log:
  Need to resturn a GeronimoMBeanInfo.
  
  Revision  Changes    Path
  1.4       +17 -1     incubator-geronimo/modules/core/src/java/org/apache/geronimo/security/providers/PropertiesFileSecurityRealm.java
  
  Index: PropertiesFileSecurityRealm.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/java/org/apache/geronimo/security/providers/PropertiesFileSecurityRealm.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PropertiesFileSecurityRealm.java	2 Jan 2004 04:31:44 -0000	1.3
  +++ PropertiesFileSecurityRealm.java	4 Jan 2004 20:40:26 -0000	1.4
  @@ -70,6 +70,10 @@
   
   import org.apache.geronimo.security.AbstractSecurityRealm;
   import org.apache.geronimo.security.GeronimoSecurityException;
  +import org.apache.geronimo.kernel.service.GeronimoMBeanInfo;
  +import org.apache.geronimo.kernel.service.GeronimoOperationInfo;
  +import org.apache.geronimo.kernel.service.GeronimoParameterInfo;
  +import org.apache.geronimo.kernel.service.GeronimoAttributeInfo;
   import org.apache.regexp.RE;
   
   
  @@ -85,6 +89,18 @@
       Properties groups = new Properties();
   
       final static String REALM = "org.apache.geronimo.security.providers.PropertiesFileSecurityRealm";
  +
  +    public static GeronimoMBeanInfo getGeronimoMBeanInfo() throws Exception {
  +        GeronimoMBeanInfo mbeanInfo = new GeronimoMBeanInfo();
  +
  +        mbeanInfo.setTargetClass(PropertiesFileSecurityRealm.class.getName());
  +
  +        mbeanInfo.addAttributeInfo(new GeronimoAttributeInfo("RealmName", true, true, "The
name of this security realm"));
  +        mbeanInfo.addAttributeInfo(new GeronimoAttributeInfo("UsersURI", true, true, "The
location of the users property file"));
  +        mbeanInfo.addAttributeInfo(new GeronimoAttributeInfo("GroupsURI", true, true, "The
location of the groups property file"));
  +
  +        return mbeanInfo;
  +    }
   
       public void doStart() {
           if (usersURI == null) throw  new IllegalStateException("Users URI not set");
  
  
  
  1.3       +18 -1     incubator-geronimo/modules/core/src/java/org/apache/geronimo/security/providers/SQLSecurityRealm.java
  
  Index: SQLSecurityRealm.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/java/org/apache/geronimo/security/providers/SQLSecurityRealm.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SQLSecurityRealm.java	28 Dec 2003 19:34:05 -0000	1.2
  +++ SQLSecurityRealm.java	4 Jan 2004 20:40:26 -0000	1.3
  @@ -70,6 +70,8 @@
   
   import org.apache.geronimo.security.AbstractSecurityRealm;
   import org.apache.geronimo.security.GeronimoSecurityException;
  +import org.apache.geronimo.kernel.service.GeronimoMBeanInfo;
  +import org.apache.geronimo.kernel.service.GeronimoAttributeInfo;
   import org.apache.regexp.RE;
   
   
  @@ -89,6 +91,21 @@
       HashMap groups = new HashMap();
   
       final static String REALM = "org.apache.geronimo.security.providers.SQLSecurityRealm";
  +
  +    public static GeronimoMBeanInfo getGeronimoMBeanInfo() throws Exception {
  +        GeronimoMBeanInfo mbeanInfo = new GeronimoMBeanInfo();
  +
  +        mbeanInfo.setTargetClass(PropertiesFileSecurityRealm.class.getName());
  +
  +        mbeanInfo.addAttributeInfo(new GeronimoAttributeInfo("RealmName", true, true, "The
name of this security realm"));
  +        mbeanInfo.addAttributeInfo(new GeronimoAttributeInfo("ConnectionURL", true, true,
"The URL of the data source"));
  +        mbeanInfo.addAttributeInfo(new GeronimoAttributeInfo("User", true, true, "The user
name to use when logging in to the data source"));
  +        mbeanInfo.addAttributeInfo(new GeronimoAttributeInfo("Password", true, true, "The
password to use when logging in to the data source"));
  +        mbeanInfo.addAttributeInfo(new GeronimoAttributeInfo("UserSelect", true, true,
"The SQL statement to used to obtain the list of users"));
  +        mbeanInfo.addAttributeInfo(new GeronimoAttributeInfo("GroupSelect", true, true,
"The SQL statement to used to obtain the list of groups"));
  +
  +        return mbeanInfo;
  +    }
   
       public void doStart() {
           if (connectionURL == null) throw  new IllegalStateException("Connection URI not
set");
  
  
  

Mime
View raw message