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. *
* 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. * * @returntrue
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