EASP Audit Plugin 7.13.0

net.juniper.smgt.ent.plugin
Class DefaultAuditEventListener

java.lang.Object
  extended by net.juniper.smgt.ent.plugin.DefaultAuditEventListener
All Implemented Interfaces:
AuditPluginEventListener, net.juniper.smgt.sae.plugin.PluginEventListener

public class DefaultAuditEventListener
extends java.lang.Object
implements AuditPluginEventListener

This is an implmentation of AuditPluginEventListener presented as a sample of using IT manager Audit plugin. The listener logs all the events to a log file.


Field Summary
 
Fields inherited from interface net.juniper.smgt.ent.plugin.AuditPluginEventListener
PLUGINNAME
 
Constructor Summary
DefaultAuditEventListener()
           
 
Method Summary
 void export(ExportAuditEvent e)
          Called after an IT manager export a VPN.
 net.juniper.smgt.sae.plugin.PluginEventListener init(java.lang.String name, java.util.Properties prop)
          init is called to initialize the PluginEventListener.
 void managerLogin(ManagerLoginAuditEvent e)
          Called after an IT manager logs into the ESP.
 void managerLogout(ManagerLogoutAuditEvent e)
          Called after an IT manager logs out from the ESP.
 void shutdown()
          Shutdown will be called when administrator disables the ESPAudit plugin by removing the Plugin.ESPAudit.class property from ESP configuration in directory
 void subscribe(SubscribeAuditEvent e)
          Called after an IT manager subscribes a service.
 void unexport(UnexportAuditEvent e)
          Called after an IT manager unexport a VPN.
 void unsubscribe(UnsubscribeAuditEvent e)
          Called after an IT manager unsubscribes a service.
 void updateServiceOpState(ServiceOpStateAuditEvent e)
          Called after an IT manager changes the operational state of a
 void updateSubscriber(SubscriberUpdateAuditEvent e)
          Called after an IT manager changes parameter substitutions of a subscriber object.
 void updateSubscription(SubscriptionUpdateAuditEvent e)
          Called after an IT manager updates a subscription, including changing parameter substitutions, changing the administrative state or suspending/resuming the subscription
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAuditEventListener

public DefaultAuditEventListener()
Method Detail

managerLogin

public void managerLogin(ManagerLoginAuditEvent e)
Description copied from interface: AuditPluginEventListener
Called after an IT manager logs into the ESP.

Specified by:
managerLogin in interface AuditPluginEventListener
Parameters:
e - a ManagerLoginAuditEvent
See Also:
AuditPluginEventListener.managerLogin(ManagerLoginAuditEvent)

managerLogout

public void managerLogout(ManagerLogoutAuditEvent e)
Description copied from interface: AuditPluginEventListener
Called after an IT manager logs out from the ESP.

Specified by:
managerLogout in interface AuditPluginEventListener
Parameters:
e - a ManagerLogoutAuditEvent
See Also:
AuditPluginEventListener.managerLogout(ManagerLogoutAuditEvent)

subscribe

public void subscribe(SubscribeAuditEvent e)
Description copied from interface: AuditPluginEventListener
Called after an IT manager subscribes a service.

Specified by:
subscribe in interface AuditPluginEventListener
Parameters:
e - a SubscribeAuditEvent that contains the id of the subscribed subscription
See Also:
AuditPluginEventListener.subscribe(SubscribeAuditEvent)

unsubscribe

public void unsubscribe(UnsubscribeAuditEvent e)
Description copied from interface: AuditPluginEventListener
Called after an IT manager unsubscribes a service.

Specified by:
unsubscribe in interface AuditPluginEventListener
Parameters:
e - a UnsubscribeAuditEvent that contains the subscription id that was unsubscribed
See Also:
AuditPluginEventListener.unsubscribe(UnsubscribeAuditEvent)

export

public void export(ExportAuditEvent e)
Description copied from interface: AuditPluginEventListener
Called after an IT manager export a VPN.

Specified by:
export in interface AuditPluginEventListener
Parameters:
e - a ExportAuditEvent that contains the id of the exported vpn
See Also:
AuditPluginEventListener.export(ExportAuditEvent)

unexport

public void unexport(UnexportAuditEvent e)
Description copied from interface: AuditPluginEventListener
Called after an IT manager unexport a VPN.

Specified by:
unexport in interface AuditPluginEventListener
Parameters:
e - a UnexportAuditEvent that contains the vpn id that was unexported
See Also:
net.juniper.smgt.ent.plugin.AuditPluginEventListener#unexportAuditEvent)

updateSubscription

public void updateSubscription(SubscriptionUpdateAuditEvent e)
Description copied from interface: AuditPluginEventListener
Called after an IT manager updates a subscription, including changing parameter substitutions, changing the administrative state or suspending/resuming the subscription

Specified by:
updateSubscription in interface AuditPluginEventListener
Parameters:
e - a SubscriptionUpdateAuditEvent
See Also:
AuditPluginEventListener.updateSubscription(SubscriptionUpdateAuditEvent)

updateSubscriber

public void updateSubscriber(SubscriberUpdateAuditEvent e)
Description copied from interface: AuditPluginEventListener
Called after an IT manager changes parameter substitutions of a subscriber object.

Specified by:
updateSubscriber in interface AuditPluginEventListener
Parameters:
e - a SubscriberUpdateAuditEvent
See Also:
AuditPluginEventListener.updateSubscriber(SubscriberUpdateAuditEvent)

updateServiceOpState

public void updateServiceOpState(ServiceOpStateAuditEvent e)
Description copied from interface: AuditPluginEventListener
Called after an IT manager changes the operational state of a

Specified by:
updateServiceOpState in interface AuditPluginEventListener
Parameters:
e - a ServiceOpStateAuditEvent
See Also:
AuditPluginEventListener.updateServiceOpState(ServiceOpStateAuditEvent)

init

public net.juniper.smgt.sae.plugin.PluginEventListener init(java.lang.String name,
                                                            java.util.Properties prop)
init is called to initialize the PluginEventListener. This method will be called at the time the plugin is created or reconfigured when its configuration is changed.

Specified by:
init in interface net.juniper.smgt.sae.plugin.PluginEventListener
See Also:
PluginEventListener.init(String, Properties)

shutdown

public void shutdown()
Shutdown will be called when administrator disables the ESPAudit plugin by removing the Plugin.ESPAudit.class property from ESP configuration in directory

Specified by:
shutdown in interface net.juniper.smgt.sae.plugin.PluginEventListener
See Also:
PluginEventListener.shutdown()

EASP Audit Plugin 7.13.0