クラス ScriptingAccountNotificationListenerDefinition

java.lang.Object
org.iplass.mtp.auth.policy.definition.AccountNotificationListenerDefinition
org.iplass.mtp.auth.policy.definition.listeners.ScriptingAccountNotificationListenerDefinition
すべての実装されたインタフェース:
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;
     :
     :
 }
 
関連項目:
  • コンストラクタの詳細

    • ScriptingAccountNotificationListenerDefinition

      public ScriptingAccountNotificationListenerDefinition()
  • メソッドの詳細

    • getScript

      public String getScript()
      GroovyScriptのコード。
      戻り値:
    • setScript

      public void setScript(String script)
      パラメータ:
      script -
    • getListenNotification

      public List<NotificationType> getListenNotification()
      通知を受け取るNotificationType。 ここで指定された通知のみScriptのロジックが呼び出される。
      戻り値:
    • setListenNotification

      public void setListenNotification(List<NotificationType> listenNotification)
      パラメータ:
      listenNotification -