Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/security UnsecureServlet.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: joist/java/org/joist/security UnsecureServlet.java

Author leonardr
Full name Leonard Richardson
Date 2001-04-25 16:45:08 PDT
Message User: leonardr
  Date: 01/04/25 16:45:08

  Modified: java/org/joist/security Tag: TIGRIS_1_0 UnsecureServlet.java
  Log:
  Backported changes for BaseHelmServlet expansion.
  
  Revision Changes Path
  No revision
  
  
  No revision
  
  
  1.119.6.2 +29 -18 joist/java/org/joist​/security/UnsecureSe​rvlet.java
  
  Index: UnsecureServlet.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/security/Unsec​ureServlet.java,v
  retrieving revision 1.119.6.1
  retrieving revision 1.119.6.2
  diff -u -r1.119.6.1 -r1.119.6.2
  --- UnsecureServlet.java 2001/04/24 22:26:47 1.119.6.1
  +++ UnsecureServlet.java 2001/04/25 23:45:08 1.119.6.2
  @@ -80,7 +80,7 @@
    *
    * @author David C. Pellegrini <A HREF="mailto:davidp@​dataweb-systems.com"​>davidp@dataweb-s​ystems.com</A>​
    * @author <a href="mailto:dlr@col​lab.net">Daniel Rall</a>
  - * @version $Revision: 1.119.6.1 $
  + * @version $Revision: 1.119.6.2 $
    *
    * Copyright (c) 1999 dataweb systems, inc.
    * Copyright (c) 1999, 2000 CollabNet, Inc.
  @@ -671,24 +671,8 @@
           }
       }
   
  + populateWithBroadcas​tMessage(connection,​ context);
   
  - // Get any broadcast message and put it into the context
  - try
  - {
  - MessageManager mMgr = (MessageManager)
  - dMgr.getManager("org​.joist.admin.Message​Manager");
  - context.put("broadcastMessage",
  - mMgr.getBroadcastMes​sage(connection));
  - }
  - catch (SQLException e)
  - {
  - throw new HandlerException(e.g​etMessage());
  - }
  - catch (DataSetException e)
  - {
  - throw new HandlerException(e.g​etMessage());
  - }
  -
           // Format date to YYYY-MM-DD.
       DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
       context.put("todayDate", df.format(new java.util.Date()));
  @@ -699,6 +683,33 @@
       return fullTemplate.toString();
       }
   
  + /**
  + * Populates the context with the current broadcast message.
  + */
  + protected void populateWithBroadcas​tMessage(Connection connection,
  + WebContext context)
  + throws HandlerException
  + {
  + SessionManager sMgr = getSessionManager(context);
  + DataManager dMgr = sMgr.getDataManager();
  +
  + // Get any broadcast message and put it into the context
  + try
  + {
  + MessageManager mMgr = (MessageManager)
  + dMgr.getManager("org​.joist.admin.Message​Manager");
  + context.put(BROADCAS​T_MESSAGE_KEY,
  + mMgr.getBroadcastMes​sage(connection));
  + }
  + catch (SQLException e)
  + {
  + throw new HandlerException(e.g​etMessage());
  + }
  + catch (DataSetException e)
  + {
  + throw new HandlerException(e.g​etMessage());
  + }
  + }
   
       /**
        * Redirect to use a different scheme, such as http or https.

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: joist/java/org/joist/security UnsecureServlet.java leonardr Leonard Richardson 2001-04-25 16:45:08 PDT
Messages per page: