head	1.6;
access;
symbols
	TIGRIS_1_1_0RC2:1.2.2.1
	TIGRIS_1_1_0RC1:1.2.2.1
	TIGRIS_1_1:1.2.2.1.0.2
	TIGRIS_1_0_8:1.2.2.1
	TIGRIS_1_0_8RC3:1.2.2.1
	TIGRIS_1_0_8RC2:1.2.2.1
	TIGRIS_1_0_8RC1:1.2.2.1
	TIGRIS_1_0_7:1.2.2.1
	TIGRIS_1_0_7RC3:1.2.2.1
	TIGRIS_1_0_7RC2:1.2.2.1
	TIGRIS_1_0_7RC1:1.2.2.1
	TIGRIS_1_0_6:1.2.2.1
	TIGRIS_1_0_6RC5:1.2.2.1
	TIGRIS_1_0_6RC4:1.2.2.1
	TIGRIS_1_0_6RC3:1.2.2.1
	TIGRIS_1_0_6RC2:1.2.2.1
	TIGRIS_1_0_6RC1:1.2.2.1
	TIGRIS_1_0_5:1.2.2.1
	TIGRIS_1_0_5RC6:1.2.2.1
	TIGRIS_1_0_5RC5:1.2.2.1
	TIGRIS_1_0_5RC4:1.2.2.1
	TIGRIS_1_0_5RC3:1.2.2.1
	TIGRIS_1_0_5RC2:1.2.2.1
	TIGRIS_1_0_5RC1:1.2.2.1
	TIGRIS_1_0_4:1.2.2.1
	TIGRIS_1_0_3:1.2.2.1
	TIGRIS_1_0:1.2.0.2;
locks; strict;
comment	@# @;


1.6
date	2001.08.11.09.08.08;	author dlr;	state Exp;
branches;
next	1.5;

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

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

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

1.2
date	2001.04.17.21.09.26;	author dlr;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2001.04.17.20.47.32;	author dlr;	state Exp;
branches;
next	;

1.2.2.1
date	2001.04.25.23.48.39;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Upgrading to Turbine 3.0-dev, Fulcrum 1.0, and Torque 1.0.
@
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 CollabNet (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 CollabNet.
 * 
 * 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 COLLABNET 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.security;

import org.apache.turbine.util.Log;
import org.apache.commons.util.exception.NestableException;

import org.apache.velocity.context.Context;

import org.tigris.helm.security.RedirectException;
import org.tigris.helm.tool.HelmProperties;

/**
 * Displays the <i>Unauthorized Access</i> page.
 *
 * @@author <a href="mailto:davidp@@dataweb-systems.com">David C. Pellegrini</a>
 * @@author <a href="mailto:dlr@@collab.net">Daniel Rall</a>
 * @@version $Revision: 1.5 $
 *
 * Copyright (c) 1999 dataweb systems, inc.
 * Copyright (c) 1999-2001 CollabNet, Inc.
 */
public class UnauthorizedAccess extends BaseHelmServlet
{
    private static final String DOMAIN_KEY = "domain";

    protected String processRequest(Context ctx)
        throws NestableException, RedirectException
    {
        String template = super.processRequest(ctx);
        ctx.put(DOMAIN_KEY, HelmProperties.getProperty("DOMAIN"));
        return template;
    }
}
@


1.5
log
@Updated in light of the port of Joist JoistProperties class to Helm (as class HelmProperties).
@
text
@d50 1
a50 1
import org.apache.turbine.util.TurbineException;
d62 1
a62 1
 * @@version $Revision: 1.4 $
d72 1
a72 1
        throws TurbineException, RedirectException
@


1.4
log
@Ported Joist Redirect*Exception to Helm.
@
text
@d55 1
a55 1
import org.joist.util.JoistProperties;
d62 1
a62 1
 * @@version $Revision: 1.3 $
d75 1
a75 1
        ctx.put(DOMAIN_KEY, JoistProperties.getProperty("DOMAIN"));
@


1.3
log
@Ported Helm from WebMacro to Velocity.
@
text
@d54 1
a54 1
import org.joist.security.RedirectException;
d62 1
a62 1
 * @@version $Revision: 1.2 $
@


1.2
log
@Put the domain name into the context for use in the webmaster email
address.
@
text
@d49 2
a50 1
import java.sql.Connection;
d52 1
a52 1
import org.webmacro.servlet.*;
d62 1
a62 1
 * @@version $Revision: 1.1 $
d71 2
a72 2
    protected String processRequest(Connection conn, WebContext ctx)
        throws HandlerException, RedirectException
d74 1
a74 1
        String template = super.processRequest(conn, ctx);
@


1.2.2.1
log
@Back ported Joist servlets which have been merged into Helm in the HEAD.
@
text
@d61 1
a61 1
 * @@version $Revision: 1.2 $
@


1.1
log
@Copied from Joist.
@
text
@d49 7
d60 2
a61 1
 * @@version $Revision: 1.5 $
d68 9
@

