head	1.12;
access;
symbols
	TIGRIS_0_9_2_4:1.6
	TIGRIS_0_9_2_3:1.6
	HELM_PEER_PORT_BRANCH:1.11.0.2
	TURBINE_PEER:1.11
	TIGRIS_0_9_2_1:1.11
	TIGRIS_0_9_2:1.6.0.2
	TIGRIS_0_9_0:1.3.0.2;
locks; strict;
comment	@# @;


1.12
date	2001.02.21.03.23.56;	author edk;	state dead;
branches;
next	1.11;

1.11
date	2001.01.26.18.29.02;	author edk;	state Exp;
branches
	1.11.2.1;
next	1.10;

1.10
date	2001.01.26.05.24.05;	author edk;	state dead;
branches;
next	1.9;

1.9
date	2001.01.25.01.46.38;	author leonardr;	state Exp;
branches;
next	1.8;

1.8
date	2001.01.24.22.54.26;	author leonardr;	state Exp;
branches;
next	1.7;

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

1.6
date	2001.01.15.17.04.19;	author leonardr;	state Exp;
branches;
next	1.5;

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

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

1.3
date	2000.12.07.02.21.33;	author leonardr;	state Exp;
branches;
next	1.2;

1.2
date	2000.12.05.23.53.30;	author leonardr;	state Exp;
branches;
next	1.1;

1.1
date	2000.12.05.23.28.58;	author leonardr;	state Exp;
branches;
next	;

1.11.2.1
date	2001.01.28.01.02.17;	author dlr;	state dead;
branches;
next	;


desc
@@


1.12
log
@delete stuff from the head which is obsolete in the branch (more changes
are still needed for a clean compile)
@
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.domain;

import java.sql.*;
import java.util.Dictionary;

import org.webmacro.util.Log;

import com.workingdogs.village.*;

import org.joist.database.*;
import org.tigris.helm.database.*;
import org.tigris.helm.DoesNotExist;

/**
 * Business object representing a resource.
 *
 * @@author <a href="mailto:leonardr@@collab.net">Leonard Richardson</a>
 */
public class Action extends BusinessObject
{
    /**
     * Open the log file.
     */
    private static Log log = new Log("Action", "Action Business Object");

    /**
     * Whether to log debugging information.
     */
    private static boolean debug = true;

    private ActionManager actMgr;

    protected final String getTableName() { return ActionManager.TABLE_NAME; }

    public Action (Connection conn, DataManager dMgr, Record rec)
        throws DoesNotExist, DataSetException
    {
        super(conn, dMgr, rec);
    }

    public Action (Connection conn, DataManager dMgr, String actionID)
	throws SQLException, DataSetException, JoistDatabaseException,
               DoesNotExist
    {
        super(conn, dMgr);        
        setRecord(actMgr.getAction(actionID));
    }

    public boolean isIssueTracking()
        throws DataSetException
    {
        return getName().startsWith("Project Issue Tracking");
    }

    protected void createManagers()
    {
        actMgr=(ActionManager)dMgr.getManager
            ("org.tigris.helm.database.ActionManager");
    }

    public String getID()
        throws DataSetException
    {
        return getField(ActionManager.ACTION_ID);
    }

    public String getName()
        throws DataSetException
    {
        return getField(ActionManager.ACTION_NAME);
    }

    public String getType()
        throws DataSetException
    {
        return getField(ActionManager.ACTION_TYPE);
    }
}

@


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


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


1.10
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
@d81 2
a82 2
    public Action (DataManager dMgr, Record rec)
        throws DoesNotExist, DBException
d84 1
a84 1
        super(dMgr, rec);
d87 3
a89 2
    public Action (DataManager dMgr, String actionID)
	throws DoesNotExist, DBException
d91 2
a92 2
        super(dMgr);
        setRecord(actMgr.getAction(actionID));        
d96 1
a96 1
        throws DBException
d103 1
a103 1
        actMgr = (ActionManager)dMgr.getManager
d108 1
a108 1
        throws DBException
d114 1
a114 1
        throws DBException
d120 1
a120 1
        throws DBException
@


1.9
log
@Compile error fixes.
-dlr@@collab.net
@
text
@@


1.8
log
@Removed retention of JDBC connection.
- dlr@@collab.net
@
text
@d82 1
a82 1
        throws DBException
d90 2
a91 1
        super(dMgr, actMgr.getAction(actionID));        
d102 1
a102 1
        actMgr=(ActionManager)dMgr.getManager
@


1.7
log
@Making use of DBException.
@
text
@d81 1
a81 1
    public Action (Connection conn, DataManager dMgr, Record rec)
d84 1
a84 1
        super(conn, dMgr, rec);
d87 1
a87 1
    public Action (Connection conn, DataManager dMgr, String actionID)
d90 1
a90 2
        super(conn, dMgr);        
        setRecord(actMgr.getAction(actionID));
@


1.6
log
@Recalculate issue tracking accounts after adding or removing issue tracking permissions to or from a role.
@
text
@d82 1
a82 1
        throws DoesNotExist, DataSetException
d88 1
a88 2
	throws SQLException, DataSetException, JoistDatabaseException,
               DoesNotExist
d95 1
a95 1
        throws DataSetException
d107 1
a107 1
        throws DataSetException
d113 1
a113 1
        throws DataSetException
d119 1
a119 1
        throws DataSetException
@


1.5
log
@Removed unnecessary getCache() implementations in BusinessObject subclasses and migrated to a factory method for User's primary database key ctor.
@
text
@d95 6
@


1.4
log
@Propogated object cache interface.
@
text
@a100 5
    protected Dictionary getCache ()
    {
        return null;
    }

@


1.3
log
@New (and extremely bulky) PermissionDump servlet.
@
text
@d50 4
a53 1
import org.webmacro.util.*;
d101 4
@


1.2
log
@Enabled security check of records passed into business objects.
@
text
@d98 1
@


1.1
log
@Added a check so that business objects cannot be created with records from the wrong table. Also added some new business objects.
@
text
@d76 1
a76 1
    private static final String tableName = "HELM_ACTION";
@

