org.alfresco.repo.audit.model
Class AuditModelRegistryImpl.AuditModelRegistryState

java.lang.Object
  extended by 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
AuditModelRegistryImpl.AuditModelRegistryState()
          Instantiates a new audit model registry state.
 
Method Summary
 AuditApplication getAuditApplicationByKey(java.lang.String key)
          Gets an audit application by key.
 AuditApplication getAuditApplicationByName(java.lang.String applicationName)
          Gets an audit application by name.
 java.util.Map getAuditApplications()
          Gets all audit applications keyed by name.
 org.alfresco.util.PathMapper getAuditPathMapper()
          Gets the audit path mapper.
 java.lang.String getProperty(java.lang.String name)
          Gets a property value.
 java.util.Set getPropertyNames()
          Gets the names of all properties.
 void registerModel(java.net.URL auditModelUrl)
          Register an audit model at a given URL.
 void setProperty(java.lang.String name, java.lang.String value)
          Sets the value of a property.
 void start()
          Starts up the component, using its new property values.
 void stop()
          Stops the component, so that its property values can be changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditModelRegistryImpl.AuditModelRegistryState

public AuditModelRegistryImpl.AuditModelRegistryState()
Instantiates a new audit model registry state.

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: PropertyBackedBeanState
Gets a property value.

Specified by:
getProperty in interface PropertyBackedBeanState
Parameters:
name - the name
Returns:
the property value
See Also:
PropertyBackedBeanState.getProperty(java.lang.String)

getPropertyNames

public java.util.Set getPropertyNames()
Description copied from interface: PropertyBackedBeanState
Gets the names of all properties.

Specified by:
getPropertyNames in interface PropertyBackedBeanState
Returns:
the property names
See Also:
PropertyBackedBeanState.getPropertyNames()

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Description copied from interface: PropertyBackedBeanState
Sets the value of a property. This may only be called after PropertyBackedBeanState.stop() and should only be called for property names for which the #isUpdateable(String) method returns true.

Specified by:
setProperty in interface PropertyBackedBeanState
Parameters:
name - the property name
value - the property value
See Also:
PropertyBackedBeanState.setProperty(java.lang.String, java.lang.String)

start

public void start()
Description copied from interface: PropertyBackedBeanState
Starts up the component, using its new property values.

Specified by:
start in interface PropertyBackedBeanState
See Also:
PropertyBackedBeanState.start()

stop

public void stop()
Stops the component, so that its property values can be changed.

Specified by:
stop in interface PropertyBackedBeanState

getAuditApplications

public java.util.Map getAuditApplications()
Gets all audit applications keyed by name.

See Also:
AuditModelRegistry.getAuditApplications()

getAuditApplicationByKey

public AuditApplication getAuditApplicationByKey(java.lang.String key)
Gets an audit application by key.

See Also:
AuditModelRegistry.getAuditApplicationByKey(java.lang.String)

getAuditApplicationByName

public AuditApplication getAuditApplicationByName(java.lang.String applicationName)
Gets an audit application by name.

See Also:
AuditModelRegistry.getAuditApplicationByName(java.lang.String)

getAuditPathMapper

public org.alfresco.util.PathMapper getAuditPathMapper()
Gets the audit path mapper.

Returns:
the audit path mapper
See Also:
AuditModelRegistry.getAuditPathMapper()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.