クラス 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パターンある。
- Javaクラス指定時と同様に、
AccountNotificationListener
をimplementsしたクラスを記述。 - Script形式で記述。
public static final String NOTIFICATION_BINDING_NAME = "notification";
Script形式での記述の場合、notificationの変数名で
のインスタンスが
あらかじめバインドされている。
また、listenNotificationにてあらかじめ指定されている通知のみScriptが呼び出される。
無効な参照です
AccountNotification
Script形式での記述例:
if (notification.type == NotificationType.CREATED) {
println "create user:" + notification.userOid;
:
:
}
- 関連項目:
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明通知を受け取るNotificationType。GroovyScriptのコード。void
setListenNotification
(List<NotificationType> listenNotification) void
seegetScript()
-
コンストラクタの詳細
-
ScriptingAccountNotificationListenerDefinition
public ScriptingAccountNotificationListenerDefinition()
-
-
メソッドの詳細
-
getScript
GroovyScriptのコード。- 戻り値:
-
setScript
seegetScript()
- パラメータ:
script
-
-
getListenNotification
通知を受け取るNotificationType。 ここで指定された通知のみScriptのロジックが呼び出される。- 戻り値:
-
setListenNotification
- パラメータ:
listenNotification
-
-