示例:通用事件工厂接口

此接口用于处理通用审计事件。可以定义对此接口进行扩展的其他接口,以处理特定审计事件组,如安全性事件、事务事件或某些其他定制组。

通用事件工厂接口

/**
* GenericEventFactory is the interface that is used to generate audit events.
* This interface may be extended to generate application specific audit events.
* 
* One or more GenericEventFactory implementations each with a unique name can be defined in the
* security configuration and be used by WebSphere Application Server security auditing service.
* @author IBM Corporation
* @version WAS 7.0
* @since WAS 7.0
*/
public interface GenericEventFactory {
/**
* The init method allows a GenericEventFactory implementation to
* initialize its internal auditing configuration using the properties and context object.
* 
* The properties and context objects are treated as read-only and must not be modified by the
* GenericEventFactory implementation.
* 
* @param A String object represents the name of this GenericEventFactory.
* @param A Map properties object that contains the custom properties that can be defined in the
* the admin console or by using wsadmin scripting tool.
* @param A Map object that contains the context that includes cell name, node name, and server name.
* @exception ProviderFailureException might occur if the audit factory does not initialize
*/
public void init(String name, Map properties, Map context) throws ProviderFailureException;
/**
* 
* The terminate method gracefully quiesces the event factory implementation.
*/
public void terminate();
/**
* 
* The refresh method allows a GenericEventFactory implementation to
* update its internal auditing configuration using the properties object.
* 
* The properties object is treated as read-only and must not be modified by the
* GenericEventFactory implementation.
* 
* @param A Map object that contains the custom properties
* @exception ProviderFailureException might occur if the factory does not refresh
*/
public void refresh(java.util.Map properties) throws ProviderFailureException;
/**
* 
* The getName method returns the name of this GenericEventFactory.
* 
* @param None
* @return a String object represents the name of the GenericEventFactory.
*/
public String getName();
/**
* 
* The sendEvent method determines whether the specified audit event is generated by this
* GenericEventFactory.
* 
* @param a String object represents an audit event
* @param a OutcomeType object represents the audit outcome value
* @exception ProviderFailureException might occur if the audit factory does not initialize
* @return a boolean success/failure
* @exception ProviderFailureException might occur if the audit factory does not send the event.
*/
public boolean sendEvent(String auditEventType, OutcomeType auditOutcome) throws
ProviderFailureException;
*
}

指示主题类型的图标 参考主题



时间戳记图标 最近一次更新时间: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=rsec_sa_event_factory_interface
文件名:rsec_sa_event_factory_interface.html