クラス ScriptingAccountNotificationListenerDefinition

java.lang.Object
org.iplass.mtp.auth.policy.definition.AccountNotificationListenerDefinition
org.iplass.mtp.auth.policy.definition.listeners.ScriptingAccountNotificationListenerDefinition
すべての実装されたインタフェース:
java.io.Serializable

public class ScriptingAccountNotificationListenerDefinition
extends AccountNotificationListenerDefinition

GroovyScriptによるAccountNotificationListener定義。

Script記述の方式として2パターンある。

public static final String NOTIFICATION_BINDING_NAME = "notification"; Script形式での記述の場合、notificationの変数名でAccountNotificationのインスタンスが あらかじめバインドされている。 また、listenNotificationにてあらかじめ指定されている通知のみScriptが呼び出される。

Script形式での記述例:
 if (notification.type == NotificationType.CREATED) {
     println "create user:" + notification.userOid;
     :
     :
 }
 
関連項目:
直列化された形式