Package org.alfresco.repo.audit.model
Class AuditModelRegistryImpl.AuditModelRegistryState
- java.lang.Object
-
- org.alfresco.repo.audit.model.AuditModelRegistryImpl.AuditModelRegistryState
-
- All Implemented Interfaces:
PropertyBackedBeanState
- Enclosing class:
- AuditModelRegistryImpl
public class AuditModelRegistryImpl.AuditModelRegistryState extends java.lang.Object implements PropertyBackedBeanState
A class encapsulating the disposable/resettable state of the audit model registry.
-
-
Constructor Summary
Constructors Constructor Description AuditModelRegistryState()Instantiates a new audit model registry state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuditApplicationgetAuditApplicationByKey(java.lang.String key)Gets an audit application by key.AuditApplicationgetAuditApplicationByName(java.lang.String applicationName)Gets an audit application by name.java.util.Map<java.lang.String,AuditApplication>getAuditApplications()Gets all audit applications keyed by name.org.alfresco.util.PathMappergetAuditPathMapper()Gets the audit path mapper.java.lang.StringgetProperty(java.lang.String name)Gets a property value.java.util.Set<java.lang.String>getPropertyNames()Gets the names of all properties.voidregisterModel(java.net.URL auditModelUrl)Register an audit model at a given URL.voidremoveProperty(java.lang.String name)Removes a property.voidsetProperty(java.lang.String name, java.lang.String value)Sets the value of a property.voidstart()Starts up the component, using its new property values.voidstop()Stops the component, so that its property values can be changed.
-
-
-
Method Detail
-
registerModel
public void registerModel(java.net.URL auditModelUrl)
Register an audit model at a given URL.- Parameters:
auditModelUrl- the source of the model
-
getProperty
public java.lang.String getProperty(java.lang.String name)
Description copied from interface:PropertyBackedBeanStateGets a property value.- Specified by:
getPropertyin interfacePropertyBackedBeanState- Parameters:
name- the name- Returns:
- the property value
- See Also:
PropertyBackedBeanState.getProperty(java.lang.String)
-
getPropertyNames
public java.util.Set<java.lang.String> getPropertyNames()
Description copied from interface:PropertyBackedBeanStateGets the names of all properties.- Specified by:
getPropertyNamesin interfacePropertyBackedBeanState- Returns:
- the property names
- See Also:
PropertyBackedBeanState.getPropertyNames()
-
setProperty
public void setProperty(java.lang.String name, java.lang.String value)Description copied from interface:PropertyBackedBeanStateSets the value of a property. This may only be called afterPropertyBackedBeanState.stop().- Specified by:
setPropertyin interfacePropertyBackedBeanState- Parameters:
name- the property namevalue- the property value- See Also:
PropertyBackedBeanState.setProperty(java.lang.String, java.lang.String)
-
removeProperty
public void removeProperty(java.lang.String name)
Description copied from interface:PropertyBackedBeanStateRemoves a property. This may only be called afterPropertyBackedBeanState.stop().- Specified by:
removePropertyin interfacePropertyBackedBeanState- Parameters:
name- the property name
-
start
public void start()
Description copied from interface:PropertyBackedBeanStateStarts up the component, using its new property values.- Specified by:
startin interfacePropertyBackedBeanState- See Also:
PropertyBackedBeanState.start()
-
stop
public void stop()
Stops the component, so that its property values can be changed.- Specified by:
stopin interfacePropertyBackedBeanState
-
getAuditApplications
public java.util.Map<java.lang.String,AuditApplication> getAuditApplications()
Gets all audit applications keyed by name.
-
getAuditApplicationByKey
public AuditApplication getAuditApplicationByKey(java.lang.String key)
Gets an audit application by key.
-
getAuditApplicationByName
public AuditApplication getAuditApplicationByName(java.lang.String applicationName)
Gets an audit application by name.
-
getAuditPathMapper
public org.alfresco.util.PathMapper getAuditPathMapper()
Gets the audit path mapper.- Returns:
- the audit path mapper
- See Also:
AuditModelRegistry.getAuditPathMapper()
-
-