head	1.14;
access;
symbols
	TIGRIS_1_1_0RC2:1.8
	TIGRIS_1_1_0RC1:1.8
	TIGRIS_1_1:1.8.0.4
	TIGRIS_1_0_8:1.8
	TIGRIS_1_0_8RC3:1.8
	TIGRIS_1_0_8RC2:1.8
	TIGRIS_1_0_8RC1:1.8
	TIGRIS_1_0_7:1.8
	TIGRIS_1_0_7RC3:1.8
	TIGRIS_1_0_7RC2:1.8
	TIGRIS_1_0_7RC1:1.8
	TIGRIS_1_0_6:1.8
	TIGRIS_1_0_6RC5:1.8
	TIGRIS_1_0_6RC4:1.8
	TIGRIS_1_0_6RC3:1.8
	TIGRIS_1_0_6RC2:1.8
	TIGRIS_1_0_6RC1:1.8
	TIGRIS_1_0_5:1.8
	TIGRIS_1_0_5RC6:1.8
	TIGRIS_1_0_5RC5:1.8
	TIGRIS_1_0_5RC4:1.8
	TIGRIS_1_0_5RC3:1.8
	TIGRIS_1_0_5RC2:1.8
	TIGRIS_1_0_5RC1:1.8
	TIGRIS_1_0_4:1.8
	TIGRIS_1_0_3:1.8
	TIGRIS_1_0_2:1.8
	TIGRIS_1_0_1:1.8
	TIGRIS_1_0:1.8.0.6
	TIGRIS_1_0_0:1.8
	TIGRIS_1_0_0_RC1:1.8.0.2
	dlr:1.1.1
	HELM_PEER_PORT_BRANCH:1.1.1.1;
locks; strict;
comment	@# @;


1.14
date	2001.08.30.16.57.42;	author dlr;	state Exp;
branches;
next	1.13;

1.13
date	2001.08.27.08.41.27;	author dlr;	state Exp;
branches;
next	1.12;

1.12
date	2001.08.11.09.08.03;	author dlr;	state Exp;
branches;
next	1.11;

1.11
date	2001.07.02.18.56.42;	author leonardr;	state Exp;
branches;
next	1.10;

1.10
date	2001.05.23.01.50.13;	author dlr;	state Exp;
branches;
next	1.9;

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

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

1.7
date	2001.03.21.16.43.20;	author leonardr;	state Exp;
branches;
next	1.6;

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

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

1.4
date	2001.03.07.01.53.22;	author lucas;	state Exp;
branches;
next	1.3;

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

1.2
date	2001.02.21.03.02.22;	author edk;	state Exp;
branches;
next	1.1;

1.1
date	2001.01.28.01.18.22;	author dlr;	state dead;
branches
	1.1.1.1
	1.1.2.1;
next	;

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

1.1.2.1
date	2001.01.28.01.18.22;	author dlr;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2001.01.31.01.00.54;	author dlr;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2001.01.31.21.51.37;	author dlr;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	2001.01.31.21.52.31;	author dlr;	state Exp;
branches;
next	1.1.2.5;

1.1.2.5
date	2001.02.12.16.24.32;	author leonardr;	state Exp;
branches;
next	1.1.2.6;

1.1.2.6
date	2001.02.15.20.50.38;	author leonardr;	state Exp;
branches;
next	1.1.2.7;

1.1.2.7
date	2001.02.16.03.01.27;	author dlr;	state Exp;
branches;
next	1.1.2.8;

1.1.2.8
date	2001.02.16.16.09.07;	author leonardr;	state Exp;
branches;
next	1.1.2.9;

1.1.2.9
date	2001.02.16.16.26.36;	author leonardr;	state Exp;
branches;
next	;


desc
@@


1.14
log
@Updated for latest Turbine API changes.
@
text
@/* ================================================================
 * Copyright (c) 2000-2001 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.om;

import java.util.*;

import org.apache.torque.util.BasePeer;
import org.apache.torque.util.Criteria;
import org.apache.commons.util.ObjectUtils;
import org.apache.commons.util.StringUtils;
import org.apache.turbine.ParameterParser;
//org.apache.turbine.util.Log;
import org.apache.commons.util.exception.NestableException;
import org.apache.commons.util.exception.NestableException;
import org.apache.torque.pool.DBConnection;

import org.tigris.helm.om.*;
import org.tigris.helm.security.*;
import org.tigris.helm.tool.audit.AuditLog;

/** 
 * Business object representing a resource.
 *
 * @@author <a href="mailto:leonardr@@collab.net">Leonard Richardson</a>
 * @@author <a href="mailto:dlr@@collab.net">Daniel Rall</a>
 */
public class Resource extends BaseResource
{
    /**
     * Description of the audit log entry created when a resource is added.  
     */
    private static final String AUDIT_LOG_ON_ADD = "Resource added: ";

    /**
     * Description of the audit log entry created when a resource is
     * edited.  
     */
    private static final String AUDIT_LOG_ON_EDIT = "Resource edited: ";

    /**
     * Create a new Resource with the specified pattern and description.
     */
    public static Resource add(AccessControlList acl, Project project,
                               String pattern, String description)
        throws ACLException, Exception
    {
        Resource resrc = new Resource();
        resrc.setPattern(pattern);
        resrc.setDescription(description);
        resrc.setProject(project);
        resrc.save(acl, project);
        AuditLog.logEvent(acl.getUser(), project, AUDIT_LOG_ON_ADD 
                          + resrc.getPattern() + "/" + resrc.getDescription());
        return resrc;
    }

    /**
     * Set this resource's pattern and/or description.
     */
    public void update (AccessControlList acl, String pattern, 
                        String description)
        throws ACLException, Exception
    {
        Project project = getProject();
        String oldString = getPattern() + "/" + "\""
            + getDescription() + "\"";
        if (pattern != null)
        {
            setPattern(pattern);
        }
        if (description != null)
        {
            setDescription(description);
        }
        save(acl, project);
        String newString = getPattern() + "/" + "\"" + getDescription() + "\"";
        AuditLog.logEvent(acl.getUser(), project, AUDIT_LOG_ON_EDIT 
                          + oldString + " -> " + newString);
    }

    //
    // Overridden methods.
    //
    
    private void save(AccessControlList acl, Project project)
        throws Exception, ACLException
    {
        if (isNew())
        {
            acl.assertPermission("Resource - Add", project);
        }
        else
        {
            acl.assertPermission("Resource - Edit", project);
        }
        super.save();
        uncache();
    }
}
@


1.13
log
@Updated for Turbine API change.
@
text
@d55 1
a55 1
import org.apache.fulcrum.util.parser.ParameterParser;
@


1.12
log
@Upgrading to Turbine 3.0-dev, Fulcrum 1.0, and Torque 1.0.
@
text
@d55 1
a55 1
import org.apache.turbine.util.ParameterParser;
@


1.11
log
@Implemented project-scoped roles.
@
text
@d51 4
a54 5
import org.apache.turbine.om.*;
import org.apache.turbine.om.peer.BasePeer;
import org.apache.turbine.util.db.Criteria;
import org.apache.turbine.util.ObjectUtils;
import org.apache.turbine.util.StringUtils;
d56 4
a59 4
//import org.apache.turbine.util.Log;
import org.apache.turbine.util.TurbineException;
import org.apache.turbine.util.TurbineException;
import org.apache.turbine.util.db.pool.DBConnection;
@


1.10
log
@Ported Helm from WebMacro to Velocity.
@
text
@d88 1
a88 1
    public static Resource add(AccessControlList acl, Domain domain,
d95 3
a97 2
        resrc.save(acl, domain);
        AuditLog.logEvent(acl.getUser(), domain, AUDIT_LOG_ON_ADD 
d105 1
a105 1
    public void update (AccessControlList acl, Domain domain, String pattern,
d109 1
d120 3
a122 4
        save(acl, domain);
        String newString = getPattern() + "/" + "\"" 
            + getDescription() + "\"";
        AuditLog.logEvent(acl.getUser(), domain, AUDIT_LOG_ON_EDIT 
d130 1
a130 1
    private void save(AccessControlList acl, Domain domain)
d135 1
a135 1
            acl.assertPermission("Resource - Add", domain);
d139 1
a139 1
            acl.assertPermission("Resource - Edit", domain);
@


1.9
log
@Send CacheInvalidationEvents on deletes, and on saves of objects which are not themselves cached but which invalidate other caches when they are changed.
@
text
@d58 2
@


1.8
log
@Uncache after saving.
@
text
@d139 1
a139 1
        ResourcePeer.uncache(this);
@


1.7
log
@Corrected compile error.
@
text
@d138 1
a139 1
        super.save();
@


1.6
log
@Invalidate cached resources and role definitions when they change.
@
text
@d138 1
a138 1
        ResourcePeer.uncache(self);
@


1.5
log
@Pushed getID() method into base class as a final method.
@
text
@d138 1
@


1.4
log
@Corrected regex madness for Torque upgrade.  -dlr
@
text
@a82 13
    //
    // Accessor methods
    //

    public final String getID()
    {
        return getPrimaryKey().toString();
    }

    //
    // Mutator methods
    //

@


1.3
log
@Sync'd with latest Turbine changes.  Mostly this consists of the use of the new SimpleKey class to handle primary database keys.
@
text
@d60 1
a60 2
import org.tigris.helm.om.peer.*;
import org.tigris.helm.om.base.*;
@


1.2
log
@adding files from the branch to the head
@
text
@d51 1
a51 1
import org.apache.turbine.om.BaseObject;
d90 1
a90 1
        return (String)getPrimaryKey();
@


1.1
log
@file Resource.java was initially added on branch HELM_PEER_PORT_BRANCH.
@
text
@d1 154
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@a0 154
/* ================================================================
 * Copyright (c) 2000-2001 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.om;

import java.util.*;

import org.apache.turbine.om.BaseObject;
import org.apache.turbine.om.peer.BasePeer;
import org.apache.turbine.util.db.Criteria;
import org.apache.turbine.util.ObjectUtils;
import org.apache.turbine.util.StringUtils;
import org.apache.turbine.util.ParameterParser;
//import org.apache.turbine.util.Log;
import org.apache.turbine.util.db.pool.DBConnection;

import org.tigris.helm.om.peer.*;
import org.tigris.helm.om.base.*;
import org.tigris.helm.security.*;
import org.tigris.helm.tool.audit.AuditLog;

/** 
 * Business object representing a resource.
 *
 * @@author <a href="mailto:leonardr@@collab.net">Leonard Richardson</a>
 * @@author <a href="mailto:dlr@@collab.net">Daniel Rall</a>
 */
public class Resource extends BaseResource
{
    /**
     * Description of the audit log entry created when a resource is added.  
     */
    private static final String AUDIT_LOG_ON_ADD = "Resource added: ";

    /**
     * Description of the audit log entry created when a resource is
     * edited.  
     */
    private static final String AUDIT_LOG_ON_EDIT = "Resource edited: ";

    //
    // Accessor methods
    //

    public final String getID()
    {
        return (String)getPrimaryKey();
    }

    //
    // Mutator methods
    //

    /**
     * Create a new Resource with the specified pattern and description.
     */
    public static Resource add(AccessControlList acl, Domain domain,
                               String pattern, String description)
        throws ACLException, Exception
    {
        Resource resrc = new Resource();
        resrc.setPattern(pattern);
        resrc.setDescription(description);
        resrc.save(acl, domain);
        AuditLog.logEvent(acl.getUser(), domain, AUDIT_LOG_ON_ADD 
                          + resrc.getPattern() + "/" + resrc.getDescription());
        return resrc;
    }

    /**
     * Set this resource's pattern and/or description.
     */
    public void update (AccessControlList acl, Domain domain, String pattern,
                        String description)
        throws ACLException, Exception
    {
        String oldString = getPattern() + "/" + "\""
            + getDescription() + "\"";
        if (pattern != null)
        {
            setPattern(pattern);
        }
        if (description != null)
        {
            setDescription(description);
        }
        save(acl, domain);
        String newString = getPattern() + "/" + "\"" 
            + getDescription() + "\"";
        AuditLog.logEvent(acl.getUser(), domain, AUDIT_LOG_ON_EDIT 
                          + oldString + " -> " + newString);
    }

    //
    // Overridden methods.
    //
    
    private void save(AccessControlList acl, Domain domain)
        throws Exception, ACLException
    {
        if (isNew())
        {
            acl.assertPermission("Resource - Add", domain);
        }
        else
        {
            acl.assertPermission("Resource - Edit", domain);
        }
        super.save();
    }
}
@


1.1.2.1
log
@Classes ported to the Turbine Peer system. -dlr and leonardr
@
text
@a0 145
/* ================================================================
 * 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.om;

import java.util.*;

import org.apache.turbine.om.BaseObject;
import org.apache.turbine.om.peer.BasePeer;
import org.apache.turbine.util.db.Criteria;
import org.apache.turbine.util.ObjectUtils;
import org.apache.turbine.util.StringUtils;
import org.apache.turbine.util.ParameterParser;
//import org.apache.turbine.util.Log;
import org.apache.turbine.util.db.pool.DBConnection;

import org.webmacro.util.Log;

import org.tigris.helm.om.peer.*;
import org.tigris.helm.security.*;

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

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

    //
    // Accessor methods
    //

    public final String getID()
    {
        return super.getPrimaryKeyAsString();
    }

    //
    // Mutator methods
    //

    /**
     * Create a new Resource with the specified pattern and description.
     */
    public static Resource add(AccessControlList acl, Domain domain,
                               String pattern, String description)
        throws ACLException, Exception
    {
        Resource resrc = new Resource();
        resrc.setPattern(pattern);
        resrc.setDescription(description);
        resrc.save(acl, domain);
        return resrc;
    }

    /**
     * Set this resource's pattern and/or description.
     */
    public void update (AccessControlList acl, Domain domain, String pattern,
                        String description)
        throws ACLException, Exception
    {
        if (pattern != null)
        {
            setPattern(pattern);
        }
        if (description != null)
        {
            setDescription(description);
        }
        save(acl, domain);
    }

    //
    // Overridden methods.
    //
    
    private void save(AccessControlList acl, Domain domain)
        throws Exception, ACLException
    {
        if (isNew())
        {
            acl.assertPermissionForDomain("Resource - Add", domain);
        }
        else
        {
            acl.assertPermissionForDomain("Resource - Edit", domain);
        }
        super.save();
    }
}
@


1.1.2.2
log
@Removed crappy WebMacro logging in favor of the new Turbine logging system.  You can now say Log.debug("my msg") to use the Turbine system.
@
text
@d60 2
d73 10
@


1.1.2.3
log
@Changed getPrimaryKeyAsString() to (String)getPrimaryKey().
@
text
@d77 1
a77 1
        return super.(String)getPrimaryKey();
@


1.1.2.4
log
@Fixed (String)getPrimaryKey() compile error.
@
text
@d77 1
a77 1
        return (String)getPrimaryKey();
@


1.1.2.5
log
@Changed code to no longer use deprecated methods.
@
text
@d125 1
a125 1
            acl.assertPermission("Resource - Add", domain);
d129 1
a129 1
            acl.assertPermission("Resource - Edit", domain);
@


1.1.2.6
log
@Normalized copyright dates.
@
text
@d2 1
a2 1
 * Copyright (c) 2000-2001 CollabNet.  All rights reserved.
@


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


1.1.2.8
log
@Added audit logging in a bunch of places.
@
text
@a71 11
    /**
     * Description of the audit log entry created when a resource is added.  
     */
    private static final String AUDIT_LOG_ON_ADD = "Resource added: ";

    /**
     * Description of the audit log entry created when a resource is
     * edited.  
     */
    private static final String AUDIT_LOG_ON_EDIT = "Resource edited: ";

a95 2
        AuditLog.logEvent(acl.getUser(), domain, AUDIT_LOG_ON_ADD 
                          + resrc.getPattern() + "/" + resrc.getDescription());
a105 2
        String oldString = resrc.getPattern() + "/" + "\""
            + resrc.getDescription() + "\"";
a114 4
        String newString = resrc.getPattern() + "/" + "\"" 
            + resrc.getDescription() + "\"";
        AuditLog.logEntry(acl.getUser(), domain, AUDIT_LOG_ON_EDIT 
                          + oldString + " -> " + newString);
@


1.1.2.9
log
@Fixed compile errors introduced in audit logging patch.
@
text
@a62 1
import org.tigris.helm.tool.audit.AuditLog;
d119 2
a120 2
        String oldString = getPattern() + "/" + "\""
            + getDescription() + "\"";
d130 3
a132 3
        String newString = getPattern() + "/" + "\"" 
            + getDescription() + "\"";
        AuditLog.logEvent(acl.getUser(), domain, AUDIT_LOG_ON_EDIT 
@


