Class ScriptingAccountNotificationListenerDefinition

  • All Implemented Interfaces:
    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;
         :
         :
     }
     
    See Also:
    Serialized Form
    • Constructor Detail

      • ScriptingAccountNotificationListenerDefinition

        public ScriptingAccountNotificationListenerDefinition()
    • Method Detail

      • getScript

        public java.lang.String getScript()
        GroovyScriptのコード。
        Returns:
      • setScript

        public void setScript​(java.lang.String script)
        Parameters:
        script -
      • getListenNotification

        public java.util.List<NotificationType> getListenNotification()
        通知を受け取るNotificationType。 ここで指定された通知のみScriptのロジックが呼び出される。
        Returns: