mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
68 lines
2.2 KiB
Java
68 lines
2.2 KiB
Java
package org.alfresco.repo.audit.model;
|
|
|
|
import java.util.Map;
|
|
|
|
import org.alfresco.util.PathMapper;
|
|
|
|
/**
|
|
* Interface for component used to store audit model definitions.
|
|
*
|
|
* @author Derek Hulley
|
|
* @since 3.3
|
|
*/
|
|
public interface AuditModelRegistry
|
|
{
|
|
/** The name of the global enablement property. */
|
|
public static final String AUDIT_PROPERTY_AUDIT_ENABLED = "audit.enabled";
|
|
public static final String AUDIT_SCHEMA_LOCATION = "classpath:alfresco/audit/alfresco-audit-3.2.xsd";
|
|
|
|
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 a map of all audit applications key by name
|
|
*
|
|
* @return the audit applications
|
|
*
|
|
* @since 3.4
|
|
*/
|
|
public Map<String, AuditApplication> getAuditApplications();
|
|
|
|
/**
|
|
* 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();
|
|
} |