amyroh 01/10/25 14:43:14
Modified: catalina/src/share/org/apache/catalina/realm JDBCRealm.java
Log:
Add the corresponding getters for instance variables for accessibility from
Management Beans.
Revision Changes Path
1.20 +69 -1
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm/JDBCRealm.java
Index: JDBCRealm.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm/JDBCRealm.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- JDBCRealm.java 2001/09/07 20:45:12 1.19
+++ JDBCRealm.java 2001/10/25 21:43:14 1.20
@@ -1,4 +1,9 @@
/*
+* $Header:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm/JDBCRealm.java,v
1.20 2001/10/25 21:43:14 amyroh Exp $
+* $Revision: 1.20 $
+* $Date: 2001/10/25 21:43:14 $
+*
+* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
@@ -95,7 +100,7 @@
* @author Craig R. McClanahan
* @author Carson McDonald
* @author Ignacio Ortega
-* @version $Revision: 1.19 $ $Date: 2001/09/07 20:45:12 $
+* @version $Revision: 1.20 $ $Date: 2001/10/25 21:43:14 $
*/
public class JDBCRealm
@@ -206,6 +211,13 @@
// ------------------------------------------------------------- Properties
+ /**
+ * Return the username to use to connect to the database.
+ *
+ */
+ public String getConnectionName() {
+ return connectionName;
+ }
/**
* Set the username to use to connect to the database.
@@ -216,6 +228,13 @@
this.connectionName = connectionName;
}
+ /**
+ * Return the password to use to connect to the database.
+ *
+ */
+ public String getConnectionPassword() {
+ return connectionPassword;
+ }
/**
* Set the password to use to connect to the database.
@@ -226,6 +245,13 @@
this.connectionPassword = connectionPassword;
}
+ /**
+ * Return the URL to use to connect to the database.
+ *
+ */
+ public String getConnectionURL() {
+ return connectionURL;
+ }
/**
* Set the URL to use to connect to the database.
@@ -236,6 +262,13 @@
this.connectionURL = connectionURL;
}
+ /**
+ * Return the JDBC driver that will be used.
+ *
+ */
+ public String getDriverName() {
+ return driverName;
+ }
/**
* Set the JDBC driver that will be used.
@@ -246,6 +279,13 @@
this.driverName = driverName;
}
+ /**
+ * Return the column in the user role table that names a role.
+ *
+ */
+ public String getRoleNameCol() {
+ return roleNameCol;
+ }
/**
* Set the column in the user role table that names a role.
@@ -256,6 +296,13 @@
this.roleNameCol = roleNameCol;
}
+ /**
+ * Return the column in the user table that holds the user's credentials.
+ *
+ */
+ public String getUserCredCol() {
+ return userCredCol;
+ }
/**
* Set the column in the user table that holds the user's credentials.
@@ -266,6 +313,13 @@
this.userCredCol = userCredCol;
}
+ /**
+ * Return the column in the user table that holds the user's name.
+ *
+ */
+ public String getUserNameCol() {
+ return userNameCol;
+ }
/**
* Set the column in the user table that holds the user's name.
@@ -276,6 +330,13 @@
this.userNameCol = userNameCol;
}
+ /**
+ * Return the table that holds the relation between user's and roles.
+ *
+ */
+ public String getUserRoleTable() {
+ return userRoleTable;
+ }
/**
* Set the table that holds the relation between user's and roles.
@@ -286,6 +347,13 @@
this.userRoleTable = userRoleTable;
}
+ /**
+ * Return the table that holds user data..
+ *
+ */
+ public String getUserTable() {
+ return userTable;
+ }
/**
* Set the table that holds user data.