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 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(String key)Gets an audit application by key.AuditApplicationgetAuditApplicationByName(String applicationName)Gets an audit application by name.Map<String,AuditApplication>getAuditApplications()Gets all audit applications keyed by name.PathMappergetAuditPathMapper()Gets the audit path mapper.StringgetProperty(String name)Gets a property value.Set<String>getPropertyNames()Gets the names of all properties.voidregisterModel(URL auditModelUrl)Register an audit model at a given URL.voidremoveProperty(String name)Removes a property.voidsetProperty(String name, 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(URL auditModelUrl)
Register an audit model at a given URL.- Parameters:
auditModelUrl- the source of the model
-
getProperty
public String getProperty(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 Set<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(String name, 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(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 Map<String,AuditApplication> getAuditApplications()
Gets all audit applications keyed by name.
-
getAuditApplicationByKey
public AuditApplication getAuditApplicationByKey(String key)
Gets an audit application by key.
-
getAuditApplicationByName
public AuditApplication getAuditApplicationByName(String applicationName)
Gets an audit application by name.
-
getAuditPathMapper
public PathMapper getAuditPathMapper()
Gets the audit path mapper.- Returns:
- the audit path mapper
- See Also:
AuditModelRegistry.getAuditPathMapper()
-
-