head	1.8;
access;
symbols
	TIGRIS_1_1_0RC2:1.6
	TIGRIS_1_1_0RC1:1.6
	TIGRIS_1_1:1.6.0.4
	TIGRIS_1_0_8:1.6
	TIGRIS_1_0_8RC3:1.6
	TIGRIS_1_0_8RC2:1.6
	TIGRIS_1_0_8RC1:1.6
	TIGRIS_1_0_7:1.6
	TIGRIS_1_0_7RC3:1.6
	TIGRIS_1_0_7RC2:1.6
	TIGRIS_1_0_7RC1:1.6
	TIGRIS_1_0_6:1.6
	TIGRIS_1_0_6RC5:1.6
	TIGRIS_1_0_6RC4:1.6
	TIGRIS_1_0_6RC3:1.6
	TIGRIS_1_0_6RC2:1.6
	TIGRIS_1_0_6RC1:1.6
	TIGRIS_1_0_5:1.6
	TIGRIS_1_0_5RC6:1.6
	TIGRIS_1_0_5RC5:1.6
	TIGRIS_1_0_5RC4:1.6
	TIGRIS_1_0_5RC3:1.6
	TIGRIS_1_0_5RC2:1.6
	TIGRIS_1_0_5RC1:1.6
	TIGRIS_1_0_4:1.6
	TIGRIS_1_0_3:1.6
	TIGRIS_1_0_2:1.6
	TIGRIS_1_0_1:1.6
	TIGRIS_1_0:1.6.0.6
	TIGRIS_1_0_0:1.6
	TIGRIS_1_0_0_RC1:1.6.0.2
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.1.2.1
	TIGRIS_0_9_2_3:1.1
	HELM_PEER_PORT_BRANCH:1.1.1.1
	TURBINE_PEER:1.4
	TIGRIS_0_9_2_1:1.4
	TIGRIS_0_9_2:1.1.0.2;
locks; strict;
comment	@# @;


1.8
date	2001.07.16.02.23.42;	author jrobbins;	state dead;
branches;
next	1.7;

1.7
date	2001.05.23.01.50.15;	author dlr;	state Exp;
branches;
next	1.6;

1.6
date	2001.03.07.01.53.24;	author lucas;	state Exp;
branches;
next	1.5;

1.5
date	2001.02.21.01.08.23;	author dlr;	state Exp;
branches;
next	1.4;

1.4
date	2001.01.26.18.29.04;	author edk;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2001.01.26.05.24.06;	author edk;	state dead;
branches;
next	1.2;

1.2
date	2001.01.26.02.01.31;	author elicia;	state Exp;
branches;
next	1.1;

1.1
date	2001.01.16.21.29.26;	author elicia;	state Exp;
branches
	1.1.1.1
	1.1.2.1;
next	;

1.1.1.1
date	2001.02.21.00.35.01;	author dlr;	state Exp;
branches;
next	;

1.1.2.1
date	2001.02.01.18.49.24;	author jrobbins;	state Exp;
branches;
next	;

1.4.2.1
date	2001.01.28.01.02.18;	author dlr;	state dead;
branches;
next	1.4.2.2;

1.4.2.2
date	2001.02.16.01.24.07;	author elicia;	state Exp;
branches;
next	1.4.2.3;

1.4.2.3
date	2001.02.16.03.01.34;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.8
log
@factoring project documents out to project nidaba.tigris.org
@
text
@/* ================================================================
 * Copyright (c) 2000 CollabNet.  All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are
 * met:
 * 
 * 1. Redistributions of source code must retain the above copyright
 * notice, this list of conditions and the following disclaimer.
 * 
 * 2. Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * 
 * 3. The end-user documentation included with the redistribution, if
 * any, must include the following acknowlegement: "This product includes
 * software developed by Collab.Net (http://www.Collab.Net/)."
 * Alternately, this acknowlegement may appear in the software itself, if
 * and wherever such third-party acknowlegements normally appear.
 * 
 * 4. The hosted project names must not be used to endorse or promote
 * products derived from this software without prior written
 * permission. For written permission, please contact info@@collab.net.
 * 
 * 5. Products derived from this software may not use the "Tigris" name
 * nor may "Tigris" appear in their names without prior written
 * permission of Collab.Net.
 * 
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL COLLAB.NET OR ITS CONTRIBUTORS BE LIABLE FOR ANY
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * ====================================================================
 * 
 * This software consists of voluntary contributions made by many
 * individuals on behalf of CollabNet.
 */


package org.tigris.helm.project;

import java.io.*;
import java.util.*;
import java.sql.*;

import org.apache.velocity.context.Context;

import org.apache.turbine.util.Log;
import org.apache.turbine.util.TurbineException;
import org.apache.turbine.util.TurbineException;
//import com.workingdogs.village.*;

import org.joist.security.RedirectException;

import org.tigris.helm.security.*;
import org.tigris.helm.om.*;
import org.tigris.helm.om.*;
public class ProjectDocumentView extends HelmServlet
{
  private static boolean debug = true;

  protected String processRequest(Context ctx)
    throws TurbineException, RedirectException
  {
    if (debug)
      Log.debug ("ProjectDocumentView: started!");

    String templateName = super.processRequest(ctx);

    try
    {
       Project currentProject = getCurrentProject(ctx);
       String documentID = getParameter(ctx, "documentID");
       if (documentID == null)
       {
           appendToMessage(ctx, "No document specified");
       } else
       {
          
           ProjectDocument document = (ProjectDocument)ProjectDocumentPeer
                                      .getInstance(documentID);
           ctx.put("document", document);
       }
    }
    catch (Exception e)
    {
      Log.error (e);
      String message = "Project Document: " + e.getMessage ();
      ctx.put ("message", message);
    }

    if (debug)
        Log.debug ("Project Document:  done");

    return templateName;
  }

}				/* end class ProjectDocumentView */
@


1.7
log
@Ported Helm from WebMacro to Velocity.
@
text
@@


1.6
log
@Corrected regex madness for Torque upgrade.  -dlr
@
text
@d54 1
a54 1
import org.webmacro.servlet.*;
d57 2
d70 2
a71 2
  protected String processRequest (Connection conn, WebContext ctx)
    throws HandlerException, RedirectException
d76 1
a76 1
    String templateName = super.processRequest (conn, ctx);
d81 1
a81 1
       String documentID = ctx.getForm("documentID");
@


1.5
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@d63 1
a63 3
import org.tigris.helm.om.peer.*;
import org.tigris.helm.om.base.*;

@


1.4
log
@readding all the files as part of the process of returning to the way
things were as of tuesday
@
text
@a53 1
import org.webmacro.util.Log;
d56 2
a57 1
import com.workingdogs.village.*;
a58 4
/*
import org.joist.*;
import org.joist.util.*;
*/
d61 4
a64 2
import org.tigris.helm.security.HelmServlet;
import org.tigris.helm.project.Document;
a67 3
  public static final String versionID =
    "$Id: ProjectDocumentView.java,v 1.1 2001/01/16 21:29:26 elicia Exp $";
  private static Log log = new Log ("ProjectDocumentView", "DocView");
d70 1
a70 5
    /**
     *  Display and process the login screen.
     */
  protected String
    processRequest (Connection conn, WebContext ctx)
d74 1
a74 1
      log.debug ("ProjectDocumentView: started!");
d88 2
a89 1
           Document document = new Document(conn, dMgr, documentID);
d95 1
a95 1
      log.exception (e);
d101 1
a101 1
        log.debug ("Project Document:  done");
@


1.4.2.1
log
@Porting to the Turbine Peer system.  -dlr and leonardr
@
text
@d71 1
a71 1
    "$Id: ProjectDocumentView.java,v 1.4 2001/01/26 18:29:04 edk Exp $";
@


1.4.2.2
log
@ported to turbine
@
text
@d54 1
d57 1
a57 2
import org.apache.turbine.util.Log;
//import com.workingdogs.village.*;
d59 4
d65 2
a66 3
import org.tigris.helm.security.*;
import org.tigris.helm.om.*;
import org.tigris.helm.om.peer.*;
d70 3
d75 5
a79 1
  protected String processRequest (Connection conn, WebContext ctx)
d83 1
a83 1
      Log.debug ("ProjectDocumentView: started!");
d97 1
a97 2
           ProjectDocument document = (ProjectDocument)ProjectDocumentPeer
                                      .getInstance(documentID);
d103 1
a103 1
      Log.error (e);
d109 1
a109 1
        Log.debug ("Project Document:  done");
@


1.4.2.3
log
@Added new imports necessitated by Torque.
@
text
@a63 1
import org.tigris.helm.om.base.*;
@


1.3
log
@revert this stuff to its state as of 2001/01/24 12:42:00 GMT -- with
the following exceptions, which have some different modifications so
they'll work with changes which have happened in joist:

ProjectNewsEdit.java
SkinManager.java
SkinStyleElementValueManager.java
StyleElementManager.java
StyleManager.java

it compiles.  i dunno if it works, though.
@
text
@d71 1
a71 1
    "$Id: ProjectDocumentView.java,v 1.2 2001/01/26 02:01:31 elicia Exp $";
d97 1
a97 1
           Document document = new Document(dMgr, documentID);
@


1.2
log
@no longer passing connection
@
text
@d71 1
a71 1
    "$Id: ProjectDocumentView.java,v 1.1 2001/01/16 21:29:26 elicia Exp $";
@


1.1
log
@initial revision
@
text
@d71 1
a71 1
    "$Id: NewsItemView.java,v 1.8 2001/01/12 22:09:10 elicia Exp $";
d97 1
a97 1
           Document document = new Document(conn, dMgr, documentID);
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d54 1
d57 1
a57 2
import org.apache.turbine.util.Log;
//import com.workingdogs.village.*;
d59 4
d65 2
a66 4
import org.tigris.helm.security.*;
import org.tigris.helm.om.*;
import org.tigris.helm.om.peer.*;
import org.tigris.helm.om.base.*;
d70 3
d75 5
a79 1
  protected String processRequest (Connection conn, WebContext ctx)
d83 1
a83 1
      Log.debug ("ProjectDocumentView: started!");
d97 1
a97 2
           ProjectDocument document = (ProjectDocument)ProjectDocumentPeer
                                      .getInstance(documentID);
d103 1
a103 1
      Log.error (e);
d109 1
a109 1
        Log.debug ("Project Document:  done");
@


1.1.2.1
log
@moved changed from HEAD for ProjectDocuments and ProjectDownloads
@
text
@d71 1
a71 1
    "$Id: ProjectDocumentView.java,v 1.4 2001/01/26 18:29:04 edk Exp $";
@


