mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-07 18:25:23 +00:00
- audit.useNewConfig=false is now the default setting and has a new meaning - In this mode, audit information is broadcast to BOTH the old and new audit configuration, meaning that e.g. you can enjoy new RM and CMIS auditing capabilities whilst still retaining compatibility with your old audit configuration - When audit.useNewConfig=true only the new config/alfresco/audit/*.xml configuration will be used exclusively. NOT config/auditConfig.xml. - Note that auditing is still switched off by default and must be switched on with audit.enabled=true - You can switch on and off individual applications in the new config using - audit.repository.enabled - audit.cmischangelog.enabled - audit.dod5015.enabled - Simple! git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18885 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
77 lines
2.8 KiB
Java
77 lines
2.8 KiB
Java
/*
|
|
* Copyright (C) 2005-2010 Alfresco Software Limited.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
* As a special exception to the terms and conditions of version 2.0 of
|
|
* the GPL, you may redistribute this Program in connection with Free/Libre
|
|
* and Open Source Software ("FLOSS") applications as described in Alfresco's
|
|
* FLOSS exception. You should have received a copy of the text describing
|
|
* the FLOSS exception, and it is also available here:
|
|
* http://www.alfresco.com/legal/licensing"
|
|
*/
|
|
package org.alfresco.repo.audit.model;
|
|
|
|
import org.alfresco.util.PathMapper;
|
|
|
|
/**
|
|
* Interface for component used to store audit model definitions.
|
|
*
|
|
* @author Derek Hulley
|
|
* @since 3.3
|
|
*/
|
|
public interface AuditModelRegistry
|
|
{
|
|
public static final String AUDIT_RESERVED_KEY_USERNAME = "username";
|
|
public static final String AUDIT_RESERVED_KEY_SYSTEMTIME = "systemTime";
|
|
|
|
/**
|
|
* Method to load audit models into memory. This method is also responsible for persisting
|
|
* the audit models for later retrieval.
|
|
* <p/>
|
|
* Note, the models are loaded in a new transaction, so this method can be called by any code
|
|
* at any time.
|
|
*/
|
|
public void loadAuditModels();
|
|
|
|
/**
|
|
* Determines whether audit is globally enabled or disabled.
|
|
*
|
|
* @return <code>true</code>, if audit is enabled
|
|
*/
|
|
public boolean isAuditEnabled();
|
|
|
|
/**
|
|
* Get the application model for the given root key (as defined on the application)
|
|
*
|
|
* @param key the key defined on the application
|
|
* @return the java model (<tt>null</tt> if not found)
|
|
*/
|
|
public AuditApplication getAuditApplicationByKey(String key);
|
|
|
|
/**
|
|
* Get the application model for the given application name
|
|
*
|
|
* @param applicationName the name of the audited application
|
|
* @return the java model (<tt>null</tt> if not found)
|
|
*/
|
|
public AuditApplication getAuditApplicationByName(String applicationName);
|
|
|
|
/**
|
|
* Get the path mapper.
|
|
* @return the path mapper
|
|
*/
|
|
public PathMapper getAuditPathMapper();
|
|
} |