tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manv...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm DeleteRealmAction.java SaveUserDatabaseRealmAction.java UserDatabaseRealmForm.java
Date Fri, 22 Mar 2002 21:45:08 GMT
manveen     02/03/22 13:45:08

  Modified:    webapps/admin/WEB-INF/classes/org/apache/webapp/admin
                        Lists.java TomcatTreeBuilder.java
               webapps/admin/WEB-INF/classes/org/apache/webapp/admin/host
                        EditHostAction.java SaveHostAction.java
               webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger
                        DeleteLoggerAction.java SaveLoggerAction.java
               webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm
                        DeleteRealmAction.java
                        SaveUserDatabaseRealmAction.java
                        UserDatabaseRealmForm.java
  Log:
  Taking care of ripple effects in admint tool due to Host MBean nomenclature change in MBeanUtils.
  
  Revision  Changes    Path
  1.5       +7 -7      jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/Lists.java
  
  Index: Lists.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/Lists.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Lists.java	15 Mar 2002 09:44:18 -0000	1.4
  +++ Lists.java	22 Mar 2002 21:45:07 -0000	1.5
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/Lists.java,v
1.4 2002/03/15 09:44:18 manveen Exp $
  - * $Revision: 1.4 $
  - * $Date: 2002/03/15 09:44:18 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/Lists.java,v
1.5 2002/03/22 21:45:07 manveen Exp $
  + * $Revision: 1.5 $
  + * $Date: 2002/03/22 21:45:07 $
    *
    * ====================================================================
    *
  @@ -77,7 +77,7 @@
    * is returned.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.4 $ $Date: 2002/03/15 09:44:18 $
  + * @version $Revision: 1.5 $ $Date: 2002/03/22 21:45:07 $
    */
   
   public class Lists {
  @@ -228,7 +228,7 @@
   
           StringBuffer sb = new StringBuffer(host.getDomain());
           sb.append(":type=Context,host=");
  -        sb.append(host.getKeyProperty("name"));
  +        sb.append(host.getKeyProperty("host"));
           sb.append(",service=");
           sb.append(host.getKeyProperty("service"));
           sb.append(",*");
  @@ -329,7 +329,7 @@
           }
           String host = container.getKeyProperty("host");
           if ("Host".equals(type)) {
  -            host = container.getKeyProperty("name");
  +            host = container.getKeyProperty("host");
           }
           if (host != null) {
               sb.append(",host=");
  @@ -396,7 +396,7 @@
           }
           String host = container.getKeyProperty("host");
           if ("Host".equals(type)) {
  -            host = container.getKeyProperty("name");
  +            host = container.getKeyProperty("host");
           }
           if (host != null) {
               sb.append(",host=");
  
  
  
  1.22      +6 -6      jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/TomcatTreeBuilder.java
  
  Index: TomcatTreeBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/TomcatTreeBuilder.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- TomcatTreeBuilder.java	21 Mar 2002 19:03:05 -0000	1.21
  +++ TomcatTreeBuilder.java	22 Mar 2002 21:45:07 -0000	1.22
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/TomcatTreeBuilder.java,v
1.21 2002/03/21 19:03:05 manveen Exp $
  - * $Revision: 1.21 $
  - * $Date: 2002/03/21 19:03:05 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/TomcatTreeBuilder.java,v
1.22 2002/03/22 21:45:07 manveen Exp $
  + * $Revision: 1.22 $
  + * $Date: 2002/03/22 21:45:07 $
    *
    * ====================================================================
    *
  @@ -93,7 +93,7 @@
    *
    * @author Jazmin Jonson
    * @author Manveen Kaur
  - * @version $Revision: 1.21 $ $Date: 2002/03/21 19:03:05 $
  + * @version $Revision: 1.22 $ $Date: 2002/03/22 21:45:07 $
    */
   
   
  @@ -264,7 +264,7 @@
               String hostName = (String) hostNames.next();
               ObjectName objectName = new ObjectName(hostName);
               String nodeLabel =
  -                "Host (" + objectName.getKeyProperty("name") + ")";
  +                "Host (" + objectName.getKeyProperty("host") + ")";
               TreeControlNode hostNode =
                   new TreeControlNode(hostName,
                                       "folder_16_pad.gif",
  @@ -276,7 +276,7 @@
                                       "content",
                                       true);
               serviceNode.addChild(hostNode);
  -            getContexts(hostNode, hostName);
  +            getContexts(hostNode, hostName);            
               getLoggers(hostNode, hostName);
               getRealms(hostNode, hostName);
           }
  
  
  
  1.2       +5 -5      jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/host/EditHostAction.java
  
  Index: EditHostAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/host/EditHostAction.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- EditHostAction.java	14 Mar 2002 08:49:41 -0000	1.1
  +++ EditHostAction.java	22 Mar 2002 21:45:07 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/host/EditHostAction.java,v
1.1 2002/03/14 08:49:41 manveen Exp $
  - * $Revision: 1.1 $
  - * $Date: 2002/03/14 08:49:41 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/host/EditHostAction.java,v
1.2 2002/03/22 21:45:07 manveen Exp $
  + * $Revision: 1.2 $
  + * $Date: 2002/03/22 21:45:07 $
    *
    * ====================================================================
    *
  @@ -92,7 +92,7 @@
    * The <code>Action</code> that sets up <em>Edit Host</em> transactions.
    *
    * @author Manveen Kaur
  - * @version $Revision: 1.1 $ $Date: 2002/03/14 08:49:41 $
  + * @version $Revision: 1.2 $ $Date: 2002/03/22 21:45:07 $
    */
   
   public class EditHostAction extends Action {
  @@ -167,7 +167,7 @@
           hostFm.setAdminAction("Edit");
           hostFm.setObjectName(hname.toString());
           sb = new StringBuffer("Host (");
  -        sb.append(hname.getKeyProperty("name"));
  +        sb.append(hname.getKeyProperty("host"));
           sb.append(")");
           hostFm.setNodeLabel(sb.toString());
           hostFm.setDebugLvlVals(Lists.getDebugLevels());
  
  
  
  1.2       +5 -5      jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/host/SaveHostAction.java
  
  Index: SaveHostAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/host/SaveHostAction.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SaveHostAction.java	14 Mar 2002 08:49:41 -0000	1.1
  +++ SaveHostAction.java	22 Mar 2002 21:45:07 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/host/SaveHostAction.java,v
1.1 2002/03/14 08:49:41 manveen Exp $
  - * $Revision: 1.1 $
  - * $Date: 2002/03/14 08:49:41 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/host/SaveHostAction.java,v
1.2 2002/03/22 21:45:07 manveen Exp $
  + * $Revision: 1.2 $
  + * $Date: 2002/03/22 21:45:07 $
    *
    * ====================================================================
    *
  @@ -97,7 +97,7 @@
    * <em>Edit Host</em> transactions.
    *
    * @author Manveen Kaur
  - * @version $Revision: 1.1 $ $Date: 2002/03/14 08:49:41 $
  + * @version $Revision: 1.2 $ $Date: 2002/03/22 21:45:07 $
    */
   
   public final class SaveHostAction extends Action {
  @@ -184,7 +184,7 @@
                   // Ensure that the requested host name is unique
                   ObjectName oname =
                       new ObjectName(TomcatTreeBuilder.HOST_TYPE +
  -                                   ",name=" + hform.getHostName() +
  +                                   ",host=" + hform.getHostName() +
                                      ",service=" + serviceName);
                   if (mBServer.isRegistered(oname)) {
                       ActionErrors errors = new ActionErrors();
  
  
  
  1.3       +8 -8      jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger/DeleteLoggerAction.java
  
  Index: DeleteLoggerAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger/DeleteLoggerAction.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DeleteLoggerAction.java	21 Mar 2002 17:11:28 -0000	1.2
  +++ DeleteLoggerAction.java	22 Mar 2002 21:45:07 -0000	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger/DeleteLoggerAction.java,v
1.2 2002/03/21 17:11:28 manveen Exp $
  - * $Revision: 1.2 $
  - * $Date: 2002/03/21 17:11:28 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger/DeleteLoggerAction.java,v
1.3 2002/03/22 21:45:07 manveen Exp $
  + * $Revision: 1.3 $
  + * $Date: 2002/03/22 21:45:07 $
    *
    * ====================================================================
    *
  @@ -96,7 +96,7 @@
    * The <code>Action</code> that sets up <em>Delete Loggers</em>
transactions.
    *
    * @author Manveen Kaur
  - * @version $Revision: 1.2 $ $Date: 2002/03/21 17:11:28 $
  + * @version $Revision: 1.3 $ $Date: 2002/03/22 21:45:07 $
    */
   
   public class DeleteLoggerAction extends Action {
  @@ -172,7 +172,7 @@
           
           if (parent != null) {
               try {
  -                pattern = getObjectName(parent);
  +                pattern = getObjectName(parent, TomcatTreeBuilder.LOGGER_TYPE);
               } catch (Exception e) {
                   getServlet().log
                   (resources.getMessage(locale, "users.error.select"));
  @@ -206,12 +206,12 @@
           
       }
       
  -    public static String getObjectName(String parent)
  +    public static String getObjectName(String parent, String MBeanType)
       throws Exception{
           
           // Form the pattern that gets the logger for this particular
           // service, host or context.
  -        StringBuffer sb = new StringBuffer(TomcatTreeBuilder.LOGGER_TYPE);
  +        StringBuffer sb = new StringBuffer(MBeanType);
           ObjectName poname = new ObjectName(parent);
           String type = poname.getKeyProperty("type");
           if ("Context".equalsIgnoreCase(type)) { // container is context
  @@ -224,7 +224,7 @@
           }
           if ("Host".equalsIgnoreCase(type)) {    // container is host
               sb.append(",host=");
  -            sb.append(poname.getKeyProperty("name"));
  +            sb.append(poname.getKeyProperty("host"));
               sb.append(",service=");
               sb.append(poname.getKeyProperty("service"));
           }
  
  
  
  1.4       +6 -5      jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger/SaveLoggerAction.java
  
  Index: SaveLoggerAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger/SaveLoggerAction.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SaveLoggerAction.java	22 Mar 2002 01:31:25 -0000	1.3
  +++ SaveLoggerAction.java	22 Mar 2002 21:45:07 -0000	1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger/SaveLoggerAction.java,v
1.3 2002/03/22 01:31:25 manveen Exp $
  - * $Revision: 1.3 $
  - * $Date: 2002/03/22 01:31:25 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger/SaveLoggerAction.java,v
1.4 2002/03/22 21:45:07 manveen Exp $
  + * $Revision: 1.4 $
  + * $Date: 2002/03/22 21:45:07 $
    *
    * ====================================================================
    *
  @@ -97,7 +97,7 @@
    * <em>Edit Logger</em> transactions.
    *
    * @author Manveen Kaur
  - * @version $Revision: 1.3 $ $Date: 2002/03/22 01:31:25 $
  + * @version $Revision: 1.4 $ $Date: 2002/03/22 21:45:07 $
    */
   
   public final class SaveLoggerAction extends Action {
  @@ -177,7 +177,8 @@
               try {
      
                   String parent = lform.getParentObjectName();                
  -                String objectName = DeleteLoggerAction.getObjectName(parent);
  +                String objectName = DeleteLoggerAction.getObjectName(
  +                                        parent, TomcatTreeBuilder.LOGGER_TYPE);
                   
                   ObjectName pname = new ObjectName(parent);
                   StringBuffer sb = new StringBuffer(pname.getDomain());                
   
  
  
  
  1.2       +8 -34     jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/DeleteRealmAction.java
  
  Index: DeleteRealmAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/DeleteRealmAction.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DeleteRealmAction.java	21 Mar 2002 22:40:49 -0000	1.1
  +++ DeleteRealmAction.java	22 Mar 2002 21:45:07 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/DeleteRealmAction.java,v
1.1 2002/03/21 22:40:49 manveen Exp $
  - * $Revision: 1.1 $
  - * $Date: 2002/03/21 22:40:49 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/DeleteRealmAction.java,v
1.2 2002/03/22 21:45:07 manveen Exp $
  + * $Revision: 1.2 $
  + * $Date: 2002/03/22 21:45:07 $
    *
    * ====================================================================
    *
  @@ -91,12 +91,13 @@
   
   import org.apache.webapp.admin.ApplicationServlet;
   import org.apache.webapp.admin.TomcatTreeBuilder;
  +import org.apache.webapp.admin.logger.DeleteLoggerAction;
   
   /**
    * The <code>Action</code> that sets up <em>Delete Realms</em>
transactions.
    *
    * @author Manveen Kaur
  - * @version $Revision: 1.1 $ $Date: 2002/03/21 22:40:49 $
  + * @version $Revision: 1.2 $ $Date: 2002/03/22 21:45:07 $
    */
   
   public class DeleteRealmAction extends Action {
  @@ -172,7 +173,8 @@
           
           if (parent != null) {
               try {
  -                pattern = getObjectName(parent);
  +                pattern = DeleteLoggerAction.getObjectName(
  +                             parent,TomcatTreeBuilder.REALM_TYPE);
               } catch (Exception e) {
                   getServlet().log
                   (resources.getMessage(locale, "users.error.select"));
  @@ -205,33 +207,5 @@
           return (mapping.findForward("Realms"));
           
       }
  -    
  -    public static String getObjectName(String parent)
  -    throws Exception{
  -        
  -        // Form the pattern that gets the realm for this particular
  -        // service, host or context.
  -        StringBuffer sb = new StringBuffer(TomcatTreeBuilder.REALM_TYPE);
  -        ObjectName poname = new ObjectName(parent);
  -        String type = poname.getKeyProperty("type");
  -        if ("Context".equalsIgnoreCase(type)) { // container is context
  -            sb.append(",path=");
  -            sb.append(poname.getKeyProperty("path"));
  -            sb.append(",host=");
  -            sb.append(poname.getKeyProperty("host"));
  -            sb.append(",service=");
  -            sb.append(poname.getKeyProperty("service"));
  -        }
  -        if ("Host".equalsIgnoreCase(type)) {    // container is host
  -            sb.append(",host=");
  -            sb.append(poname.getKeyProperty("name"));
  -            sb.append(",service=");
  -            sb.append(poname.getKeyProperty("service"));
  -        }
  -        if ("Service".equalsIgnoreCase(type)) {  // container is service
  -            sb.append(",service=");
  -            sb.append(poname.getKeyProperty("name"));
  -        }
  -        return sb.toString();  
  -    }
  +
   }
  
  
  
  1.2       +34 -17    jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/SaveUserDatabaseRealmAction.java
  
  Index: SaveUserDatabaseRealmAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/SaveUserDatabaseRealmAction.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SaveUserDatabaseRealmAction.java	21 Mar 2002 19:03:06 -0000	1.1
  +++ SaveUserDatabaseRealmAction.java	22 Mar 2002 21:45:07 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/SaveUserDatabaseRealmAction.java,v
1.1 2002/03/21 19:03:06 manveen Exp $
  - * $Revision: 1.1 $
  - * $Date: 2002/03/21 19:03:06 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/SaveUserDatabaseRealmAction.java,v
1.2 2002/03/22 21:45:07 manveen Exp $
  + * $Revision: 1.2 $
  + * $Date: 2002/03/22 21:45:07 $
    *
    * ====================================================================
    *
  @@ -89,15 +89,14 @@
   import org.apache.webapp.admin.TomcatTreeBuilder;
   import org.apache.webapp.admin.TreeControl;
   import org.apache.webapp.admin.TreeControlNode;
  -
  -
  +import org.apache.webapp.admin.logger.DeleteLoggerAction;
   
   /**
    * The <code>Action</code> that completes <em>Add Realm</em> and
    * <em>Edit Realm</em> transactions for UserDatabase realm.
    *
    * @author Manveen Kaur
  - * @version $Revision: 1.1 $ $Date: 2002/03/21 19:03:06 $
  + * @version $Revision: 1.2 $ $Date: 2002/03/22 21:45:07 $
    */
   
   public final class SaveUserDatabaseRealmAction extends Action {
  @@ -177,11 +176,33 @@
   
               try {
   
  -                // Ensure that the requested realm name is unique
  -                // TBD -- create not yet implemented
  +                String parent = rform.getParentObjectName();                
  +                String objectName = DeleteLoggerAction.getObjectName(parent,
  +                                    TomcatTreeBuilder.REALM_TYPE);
  +                
  +                ObjectName pname = new ObjectName(parent);
  +                StringBuffer sb = new StringBuffer(pname.getDomain());                
   
  +                
  +                // For service, create the corresponding Engine mBean  
  +                // Parent in this case needs to be the container mBean for the service

  +                try {                                                        
  +                    if ("Service".equalsIgnoreCase(pname.getKeyProperty("type"))) {
  +                        sb.append(":type=Engine,service=");
  +                        sb.append(pname.getKeyProperty("name"));
  +                        parent = sb.toString();
  +                    }
  +                } catch (Exception e) {
  +                    String message =
  +                        resources.getMessage("error.engineName.bad",
  +                                         sb.toString());
  +                    getServlet().log(message);
  +                    response.sendError(HttpServletResponse.SC_BAD_REQUEST, message);
  +                    return (null);
  +                }
  +                                                
  +                // Ensure that the requested user database name is unique
                   ObjectName oname =
  -                    new ObjectName(TomcatTreeBuilder.REALM_TYPE +
  -                                   TomcatTreeBuilder.WILDCARD);
  +                    new ObjectName(objectName);
                   if (mBServer.isRegistered(oname)) {
                       ActionErrors errors = new ActionErrors();
                       errors.add("realmName",
  @@ -196,9 +217,7 @@
   
                   // Create a new StandardRealm object
                   values = new String[1];
  -                // parent mBean as string
  -                // TBD -- not yet implemented
  -                values[0] = TomcatTreeBuilder.ENGINE_TYPE;
  +                values[0] = parent;
                   operation = "createUserDatabaseRealm";
                   rObjectName = (String)
                       mBServer.invoke(fname, operation,
  @@ -208,9 +227,7 @@
                   TreeControl control = (TreeControl)
                       session.getAttribute("treeControlTest");
                   if (control != null) {
  -                    // TBD -- FIX ME
  -                    String parentName = TomcatTreeBuilder.SERVER_TYPE;
  -                    TreeControlNode parentNode = control.findNode(parentName);
  +                    TreeControlNode parentNode = control.findNode(rform.getParentObjectName());
                       if (parentNode != null) {
                           String nodeLabel =
                               "Realm (" + rform.getRealmType() + ")";
  @@ -228,7 +245,7 @@
                           // FIXME - force a redisplay
                       } else {
                           getServlet().log
  -                            ("Cannot find parent node '" + parentName + "'");
  +                            ("Cannot find parent node '" + parent + "'");
                       }
                   } else {
                       getServlet().log
  
  
  
  1.2       +28 -4     jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/UserDatabaseRealmForm.java
  
  Index: UserDatabaseRealmForm.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/UserDatabaseRealmForm.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- UserDatabaseRealmForm.java	21 Mar 2002 19:03:06 -0000	1.1
  +++ UserDatabaseRealmForm.java	22 Mar 2002 21:45:07 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/UserDatabaseRealmForm.java,v
1.1 2002/03/21 19:03:06 manveen Exp $
  - * $Revision: 1.1 $
  - * $Date: 2002/03/21 19:03:06 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/UserDatabaseRealmForm.java,v
1.2 2002/03/22 21:45:07 manveen Exp $
  + * $Revision: 1.2 $
  + * $Date: 2002/03/22 21:45:07 $
    *
    * ====================================================================
    *
  @@ -76,7 +76,7 @@
    * Form bean for the User Database realm page.
    *
    * @author Manveen Kaur
  - * @version $Revision: 1.1 $ $Date: 2002/03/21 19:03:06 $
  + * @version $Revision: 1.2 $ $Date: 2002/03/22 21:45:07 $
    */
   
   public final class UserDatabaseRealmForm extends ActionForm {
  @@ -94,6 +94,11 @@
       private String objectName = null;
   
       /**
  +     * The object name of the parent of this Logger.
  +     */
  +    private String parentObjectName = null;
  +
  +    /**
        * The text for the debug level.
        */
       private String debugLvl = "0";
  @@ -155,6 +160,25 @@
           
           this.objectName = objectName;
           
  +    }
  +            
  +    /**
  +     * Return the parent object name of the Realm this bean refers to.
  +     */
  +    public String getParentObjectName() {
  +
  +        return this.parentObjectName;
  +
  +    }
  +
  +
  +    /**
  +     * Set the parent object name of the Realm this bean refers to.
  +     */
  +    public void setParentObjectName(String parentObjectName) {
  +
  +        this.parentObjectName = parentObjectName;
  +
       }
       
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message