インターフェース MethodSecurityExpressionHandler
- すべてのスーパーインターフェース:
org.springframework.aop.framework.AopInfrastructureBean,SecurityExpressionHandler<org.aopalliance.intercept.MethodInvocation>
- すべての既知の実装クラス:
DefaultMethodSecurityExpressionHandler
public interface MethodSecurityExpressionHandler extends SecurityExpressionHandler<org.aopalliance.intercept.MethodInvocation>
メソッド呼び出しの保護に固有のメソッドを追加する拡張式ハンドラーファサード。- 導入:
- 3.0
方法の概要
すべてのメソッド インスタンスメソッド 抽象メソッド 修飾子と型 メソッド 説明 java.lang.Objectfilter(java.lang.Object filterTarget, org.springframework.expression.Expression filterExpression, org.springframework.expression.EvaluationContext ctx)ターゲットのコレクションまたは配列をフィルタリングします。voidsetReturnObject(java.lang.Object returnObject, org.springframework.expression.EvaluationContext ctx)指定された評価コンテキストの戻りオブジェクトを式システムに通知するために使用されます。インターフェース org.springframework.security.access.expression.SecurityExpressionHandler から継承されたメソッド
createEvaluationContext, getExpressionParser
メソッドの詳細
filter
java.lang.Object filter(java.lang.Object filterTarget, org.springframework.expression.Expression filterExpression, org.springframework.expression.EvaluationContext ctx)ターゲットのコレクションまたは配列をフィルタリングします。メソッド呼び出しにのみ適用されます。- パラメーター:
filterTarget- フィルタリングする配列またはコレクション。filterExpression- フィルター条件として使用される式。評価時に false を返す場合、オブジェクトは返されたコレクションから削除されますctx- 現在の評価コンテキスト(SecurityExpressionHandler.createEvaluationContext(org.springframework.security.core.Authentication, Object)の呼び出しを通じて作成されたもの)- 戻り値:
- フィルタリングされたコレクションまたは配列
setReturnObject
void setReturnObject(java.lang.Object returnObject, org.springframework.expression.EvaluationContext ctx)指定された評価コンテキストの戻りオブジェクトを式システムに通知するために使用されます。メソッド呼び出しにのみ適用されます。- パラメーター:
returnObject- 戻りオブジェクト値ctx- オブジェクトを設定するコンテキスト(SecurityExpressionHandler.createEvaluationContext(org.springframework.security.core.Authentication, Object)の呼び出しで作成されたもの)