public class AuditModelRegistryImpl extends AbstractPropertyBackedBean implements AuditModelRegistry
| Modifier and Type | Class and Description |
|---|---|
class |
AuditModelRegistryImpl.AuditModelRegistryState
A class encapsulating the disposable/resettable state of the audit model registry.
|
AbstractPropertyBackedBean.DefaultResolver, AbstractPropertyBackedBean.RuntimeState| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_AUDIT_CONFIG_STRICT
The name of the strict loading flag.
|
static String |
PROPERTY_AUDIT_ENABLED
The name of the global enablement property.
|
DEFAULT_INSTANCE_NAME, lock, runtimeStateAUDIT_PROPERTY_AUDIT_ENABLED, AUDIT_RESERVED_KEY_SYSTEMTIME, AUDIT_RESERVED_KEY_USERNAME| Constructor and Description |
|---|
AuditModelRegistryImpl()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected PropertyBackedBeanState |
createInitialState()
Creates the initial state.
|
AuditApplication |
getAuditApplicationByKey(String key)
Get the application model for the given root key (as defined on the application)
|
AuditApplication |
getAuditApplicationByName(String applicationName)
Get the application model for the given application name
|
Map<String,AuditApplication> |
getAuditApplications()
Get a map of all audit applications key by name
|
org.alfresco.util.PathMapper |
getAuditPathMapper()
Get the path mapper.
|
boolean |
isAuditEnabled()
Determines whether audit is globally enabled or disabled.
|
void |
loadAuditModels()
Method to load audit models into memory.
|
void |
registerModel(URL auditModelUrl)
Enables audit and registers an audit model at a given URL.
|
void |
setAuditDAO(AuditDAO auditDAO)
Set the DAO used to persisted the registered audit models.
|
void |
setDataExtractors(org.alfresco.util.registry.NamedObjectRegistry<DataExtractor> dataExtractors)
Set the registry of
data extractors. |
void |
setDataGenerators(org.alfresco.util.registry.NamedObjectRegistry<DataGenerator> dataGenerators)
Set the registry of
data generators. |
void |
setSearchPath(String[] searchPath)
Sets the search path for config files.
|
void |
setTransactionService(TransactionService transactionService)
Service to ensure DAO calls are transactionally wrapped.
|
static Audit |
unmarshallModel(URL configUrl)
Unmarshalls the Audit model from the URL.
|
applyDefaultOverrides, destroy, destroy, doInit, getCategory, getDescription, getEncryptedPropertyDefaults, getId, getInstancePath, getParent, getProperty, getPropertyDefaults, getPropertyNames, getRegistry, getState, init, isUpdateable, onApplicationEvent, performEarlyPropertyChecks, removeProperties, removeProperty, resolveDefault, revert, setApplicationContext, setAutoStart, setBeanName, setCategory, setEarlyPropertyCheckers, setEncryptedPropertyDefaults, setInstancePath, setProperties, setProperty, setPropertyDefaults, setRegistry, setSaveSetProperty, start, start, stop, stoppublic static final String PROPERTY_AUDIT_ENABLED
public static final String PROPERTY_AUDIT_CONFIG_STRICT
public void setSearchPath(String[] searchPath)
public void setTransactionService(TransactionService transactionService)
public void setAuditDAO(AuditDAO auditDAO)
public void setDataExtractors(org.alfresco.util.registry.NamedObjectRegistry<DataExtractor> dataExtractors)
data extractors.public void setDataGenerators(org.alfresco.util.registry.NamedObjectRegistry<DataGenerator> dataGenerators)
data generators.public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class AbstractPropertyBackedBeanExceptionpublic Map<String,AuditApplication> getAuditApplications()
getAuditApplications in interface AuditModelRegistrypublic AuditApplication getAuditApplicationByKey(String key)
getAuditApplicationByKey in interface AuditModelRegistrykey - the key defined on the applicationpublic AuditApplication getAuditApplicationByName(String applicationName)
getAuditApplicationByName in interface AuditModelRegistryapplicationName - the name of the audited applicationpublic org.alfresco.util.PathMapper getAuditPathMapper()
getAuditPathMapper in interface AuditModelRegistrypublic void loadAuditModels()
loadAuditModels in interface AuditModelRegistrypublic boolean isAuditEnabled()
isAuditEnabled in interface AuditModelRegistrytrue if audit is enabledpublic void registerModel(URL auditModelUrl)
auditModelUrl - the source of the modelprotected PropertyBackedBeanState createInitialState() throws IOException
createInitialState in class AbstractPropertyBackedBeanIOException - Signals that an I/O exception has occurred.Copyright © 2005–2018 Alfresco Software. All rights reserved.