intra-mart 6.1.14

jp.co.intra_mart.foundation.service.client.application
クラス GroupSecurityHTTPActionEventFilterHandler

java.lang.Object
  拡張jp.co.intra_mart.foundation.service.client.application.HTTPActionEventHandler
      拡張jp.co.intra_mart.foundation.service.client.application.HTTPActionEventFilterHandler
          拡張jp.co.intra_mart.foundation.service.client.application.GroupSecurityHTTPActionEventFilterHandler
直系の既知のサブクラス:
AccountSecurityHTTPActionEventFilterHandler

public class GroupSecurityHTTPActionEventFilterHandler
extends HTTPActionEventFilterHandler

ログイン認証を行って、ログインセッション環境でイベントを実行するためのフィルタ実装です。

このフィルタを利用する事により、任意のログイングループによる ログインセッション環境を作る事ができます。 このフィルタを利用する事により、 イベントプログラム中でログイングループを自動解決するAPIを 利用可能になります。

実在しないグループを指定した場合、 未来の予測できないエラーを回避するために、 フィルタ処理の途中で即座に例外がスローされてます。 結果として、イベント実行はエラー終了します。
フィルタがエラー終了した場合、セキュリティホールとならないために セッションを破棄(javax.servlet.http.HttpSession#invalidate())します。 したがって、認証前にセッションに保存した情報にはアクセスできなくなります。 認証エラー後にセッション内の情報が必要な場合は、 事前に取得して別な場所へ保管するなどの対策が必要です。

導入されたバージョン:
version 4.3

フィールドの概要
protected static String ID_SECURITY_GROUP
           
 
コンストラクタの概要
GroupSecurityHTTPActionEventFilterHandler(HTTPActionEventHandler handler, String groupId)
          ログイングループセッション環境下で HTTPActionEvent を実行するためのフィルタハンドラを作成します。
 
メソッドの概要
 String getGroup()
          設定されているグループIDを返します。
 String getName()
          フィルタイベント名を返します。
protected  void setGroup(String groupId)
          グループIDを設定します。
 
クラス jp.co.intra_mart.foundation.service.client.application.HTTPActionEventFilterHandler から継承したメソッド
getEventRequestParameterMap, getFilterParameter, getFilterParameterMap, getParameter, getParameterKeySet, getParameterMap, getParent, hasParameter, removeFilterParameter, removeParameter, setFilterParameter, setParameter
 
クラス jp.co.intra_mart.foundation.service.client.application.HTTPActionEventHandler から継承したメソッド
execute, execute, execute, getCharacterEncoding, setCharacterEncoding, setHostnameVerifier, setSSLContext
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

ID_SECURITY_GROUP

protected static final String ID_SECURITY_GROUP
関連項目:
定数フィールド値
コンストラクタの詳細

GroupSecurityHTTPActionEventFilterHandler

public GroupSecurityHTTPActionEventFilterHandler(HTTPActionEventHandler handler,
                                                 String groupId)
ログイングループセッション環境下で HTTPActionEvent を実行するためのフィルタハンドラを作成します。

パラメータ:
handler - フィルタリングするハンドラ
groupId - グループID
例外:
NullPointerException - 引数が null の場合
メソッドの詳細

getName

public String getName()
フィルタイベント名を返します。

実際には、Application Runtime で実行される FilterHTTPActionEvent を 実装したクラスのクラス名を返します。

定義:
クラス HTTPActionEventFilterHandler 内の getName
戻り値:
イベント名

setGroup

protected void setGroup(String groupId)
グループIDを設定します。

パラメータ:
groupId - グループID

getGroup

public String getGroup()
設定されているグループIDを返します。

戻り値:
グループID

intra-mart 6.1.14

Copyright © 2000-2010 NTT DATA INTRAMART CO.,LTD.. All Rights Reserved.