head	1.8;
access;
symbols
	TIGRIS_0_9_2_4:1.4
	TIGRIS_0_9_2_3:1.4
	HELM_PEER_PORT_BRANCH:1.7.0.2
	TURBINE_PEER:1.7
	TIGRIS_0_9_2_1:1.7
	TIGRIS_0_9_2:1.4.0.4
	TIGRIS_0_9_0:1.4.0.2
	TIGRIS_0_8_4:1.3.0.2
	NEWHELM:1.1.1.1
	TIGRIS_NOV_12_2000:1.1.1
	OLDHELM:1.2.0.4
	TIGRIS_NOV_11_2000:1.2
	TIGRIS_SEP_13_2000:1.2.0.2
	TIGRIS_BASELINE:1.2;
locks; strict;
comment	@# @;


1.8
date	2001.02.21.04.11.21;	author edk;	state dead;
branches;
next	1.7;

1.7
date	2001.01.26.18.29.09;	author edk;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	2001.01.26.05.24.08;	author edk;	state dead;
branches;
next	1.5;

1.5
date	2001.01.24.21.41.50;	author leonardr;	state Exp;
branches;
next	1.4;

1.4
date	2000.12.14.23.42.50;	author dlr;	state Exp;
branches;
next	1.3;

1.3
date	2000.11.12.22.57.33;	author dlr;	state Exp;
branches;
next	1.2;

1.2
date	2000.09.20.03.13.17;	author brian;	state Exp;
branches;
next	1.1;

1.1
date	2000.08.30.01.00.01;	author leonardr;	state Exp;
branches
	1.1.1.1;
next	;

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

1.7.2.1
date	2001.01.28.01.02.19;	author dlr;	state dead;
branches;
next	;


desc
@@


1.8
log
@this is obsolete and doesn't do anything anyway
@
text
@/* ================================================================
 * Copyright (c) 2000 Collab.Net.  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 Collab.Net.
 */

package org.tigris.helm.tool;

import org.webmacro.util.Log;
import org.webmacro.servlet.*;
import org.webmacro.engine.*;
import org.webmacro.broker.*;

import javax.servlet.*;
import javax.servlet.http.*;

import java.sql.*;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Vector;

import org.joist.security.PermissionSet;
import org.joist.security.RedirectException;
import org.joist.security.SecureServlet;
import org.joist.session.SessionManager;
import org.joist.database.DataManager;
import org.joist.database.UserManager;

import org.tigris.helm.database.ProjectManager;
import org.tigris.helm.tool.TigrisUpdate;
import org.tigris.helm.tool.UpdateException;
import org.tigris.helm.tool.mail.MailingList;

/**
 *This class assumes that there is a "project" entry in the WebMacro
 *context, and populates the context with information about the
 *project which the inner nav bar will need.
 *
 *<p>Most of this method is taken verbatim from ProjectEdit.  The need
 *for this sort of code in a library is a good recommendation for
 *using Torque.  
 */
public class InnerNavPopulator {

    public static void Populate(Connection connection, WebContext context, boolean populateWithUser)
	throws HandlerException {
        // Comment out try block since call mailing list is not working
//	try {
	    String project = (String)context.get("project");
                //	    List modules = ModuleManager.getModules(connection, projectID);
            //	    context.put("modules", modules);
	    //context.put("mailingLists",
			//MailingList.getMailingLists(connection, project));
	    
	    if (populateWithUser) {
		context.put("user", context.getForm("user"));
	    }
//	}
        /* Comment this out since mailing list is not working
	catch (SQLException e) {
	    String message = "NavbarPopulator: " + e.getMessage();
	    throw new HandlerException(message);
	}
        */
    }
}
@


1.7
log
@readding all the files as part of the process of returning to the way
things were as of tuesday
@
text
@@


1.7.2.1
log
@Porting to the Turbine Peer system.  -dlr and leonardr
@
text
@@


1.6
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
@d69 1
a69 1
import org.tigris.helm.database.UserManager;
@


1.5
log
@Ported UserManager and RoleManager to Helm. Started moving other TableManagers toward a grab-connection-on-demand model. Massive breakage ensues. dlr and I are working on it.
@
text
@@


1.4
log
@Removed import of deprecated class.
@
text
@d69 1
a69 1
import org.joist.database.UserManager;
@


1.3
log
@Resolved merge conflicts.
@
text
@a71 1
import org.tigris.helm.database.ModuleManager;
@


1.2
log
@
Obtained from:
Submitted by:
Reviewed by:

Moved from org.helm to org.tigris.helm
Moved from org/helm to org/tigris/helm

perl -pi.bak -e, how I love thee

note: this update was done POST-CVS-REPOSITORY surgury.  In order to
get this right, you may need to remove the directories

$CVSROOT/helm/java/org/helm
$CVSROOT/helm/data/htdoc/look/www/org/helm
$CVSROOT/helm/templates/org/helm

before doing the "CVS update" call, since those directories don't
exist anymore and CVS will try to create lockfiles for you in them,
giving you an error.
@
text
@d59 4
a62 4
import com.sun.java.util.collections.ArrayList;
import com.sun.java.util.collections.Iterator;
import com.sun.java.util.collections.List;
import com.sun.java.util.collections.Vector;
a72 1
import org.tigris.helm.database.TUserManager;
d75 1
a75 1
import org.tigris.helm.tool.MailingList;
d90 2
a91 1
	try {
d93 4
a96 4
	    List modules = ModuleManager.getModules(connection, project);
	    context.put("modules", modules);
	    context.put("mailingLists",
			MailingList.getMailingLists(connection, project));
d101 2
a102 1
	}
d107 1
@


1.1
log
@Initial commit.
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d47 1
a47 1
package org.helm.tool;
d71 6
a76 6
import org.helm.database.ProjectManager;
import org.helm.database.ModuleManager;
import org.helm.database.TUserManager;
import org.helm.tool.TigrisUpdate;
import org.helm.tool.UpdateException;
import org.helm.tool.MailingList;
@


1.1.1.1
log
@Merging newhelm tree into helm, as per IZ issue #557.  Previous major version of helm is tagged TIGRIS_NOV_11_2000.
@
text
@d47 1
a47 1
package org.tigris.helm.tool;
d59 4
a62 4
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Vector;
d71 6
a76 5
import org.tigris.helm.database.ProjectManager;
import org.tigris.helm.database.ModuleManager;
import org.tigris.helm.tool.TigrisUpdate;
import org.tigris.helm.tool.UpdateException;
import org.tigris.helm.tool.mail.MailingList;
d91 1
a91 2
        // Comment out try block since call mailing list is not working
//	try {
d93 4
a96 4
                //	    List modules = ModuleManager.getModules(connection, projectID);
            //	    context.put("modules", modules);
	    //context.put("mailingLists",
			//MailingList.getMailingLists(connection, project));
d101 1
a101 2
//	}
        /* Comment this out since mailing list is not working
a105 1
        */
@


