// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) deadcode 
// Source File Name:   CheckInDocCloseWindowFormTaskDelegate.java

package com.ptc.windchill.pdmlink.doc.server.processors;

import java.io.PrintStream;
import java.util.Properties;
import wt.content.ContentHTTPStream;
import wt.templateutil.processor.FormTaskDelegate;
import wt.util.WTProperties;

/**
 * @deprecated Class CheckInDocCloseWindowFormTaskDelegate is deprecated
 */

public class CheckInDocCloseWindowFormTaskDelegate extends FormTaskDelegate
{

    public CheckInDocCloseWindowFormTaskDelegate()
    {
    }

    /**
     * @deprecated Method processAction is deprecated
     */

    public void processAction(ContentHTTPStream contentStream)
        throws Exception
    {
        if(VERBOSE)
            System.err.println("Entering CloseWindowFormTaskDelegate.processAction");
        Properties props = getQueryData();
        String formName = (String)props.get("formName");
        String new_oid = (String)props.get("newOid");
        String old_oid = (String)props.get("oldOid");
        deleteFormDataFromSession(formName);
        setContextAction("CheckInDocCloseWindow");
        Properties context_properties = getContextProperties();
        if(context_properties == null)
            context_properties = new Properties();
        context_properties.put("newOid", new_oid);
        context_properties.put("oldOid", old_oid);
        setContextProperties(context_properties);
    }

    static Class _mthclass$(String x0)
    {
        return Class.forName(x0);
        ClassNotFoundException x1;
        x1;
        throw (new NoClassDefFoundError()).initCause(x1);
    }

    private static final String RESOURCE = "com.ptc.core.HTMLtemplateutil.server.processors.processorsResource";
    private static final String CLASSNAME;
    private static boolean VERBOSE;

    static 
    {
        CLASSNAME = (com.ptc.windchill.pdmlink.doc.server.processors.CheckInDocCloseWindowFormTaskDelegate.class).getName();
        try
        {
            WTProperties properties = WTProperties.getLocalProperties();
            VERBOSE = properties.getProperty("com.ptc.core.HTMLtemplateutil.verbose", false);
        }
        catch(Throwable t)
        {
            t.printStackTrace(System.err);
            throw new ExceptionInInitializerError(t);
        }
    }
}
