com.sun.identity.policy
クラス ConditionTypeManager

java.lang.Object
  上位を拡張 com.sun.identity.policy.ConditionTypeManager

public class ConditionTypeManager
extends Object

The class ConditionTypeManager provides methods to get a list of configured Condition objects, and to obtain a factory object for it.


メソッドの概要
 Condition getCondition(String conditionType)
          Returns an instance of the Condition given the condition type name.
 String getConditionTypeName(Condition condition)
          Returns the type of the Condition implementation.
 Set getConditionTypeNames()
          Returns a Set of all valid condition type names defined by the policy service.
 String getDisplayName(String conditionType)
          Gets the display name for the condition type
 String getI18NKey(String conditionType)
          Returns the I18N key to be used to localize the display name for the condition type name.
protected  String getI18NPropertiesFileName(String conditionType)
          Returns the I18N properties file name that should be used to localize display names for the given condition type.
 Set getSelectedConditionTypeNames()
          Returns a Set of valid condition type names configured for the organization.
 String getViewBeanURL(Condition condition)
          Gets the view bean URL given the Condition
 

メソッドの詳細

getConditionTypeNames

public Set getConditionTypeNames()
                          throws SSOException,
                                 PolicyException
Returns a Set of all valid condition type names defined by the policy service. Examples are AuthLevelCondition, IPCondition.

戻り値:
a Set of all valid condition type names defined by the policy service.
例外:
SSOException - if the SSOToken used to create the PolicyManager has become invalid
PolicyException - for any other abnormal condition

getSelectedConditionTypeNames

public Set getSelectedConditionTypeNames()
                                  throws SSOException,
                                         PolicyException
Returns a Set of valid condition type names configured for the organization. Examples are AuthLevelCondition, IPCondition.

戻り値:
a Set of valid condition type names configured for the organization.
例外:
SSOException - if the SSOToken used to create the PolicyManager has become invalid
PolicyException - for any other abnormal condition

getConditionTypeName

public String getConditionTypeName(Condition condition)
Returns the type of the Condition implementation. For example TimeCondition, DayTimeCondition, IPCondition.

パラメータ:
condition - condition object for which this method will return its associated type
戻り値:
type of the condition, e.g. AuthLevelConditon, IPCondition. Returns null if not present.

getI18NPropertiesFileName

protected String getI18NPropertiesFileName(String conditionType)
Returns the I18N properties file name that should be used to localize display names for the given condition type.

パラメータ:
conditionType - condition type name
戻り値:
String representing i18n properties file name

getI18NKey

public String getI18NKey(String conditionType)
Returns the I18N key to be used to localize the display name for the condition type name.

パラメータ:
conditionType - condition type name
戻り値:
String representing i18n key to obtain the display name

getDisplayName

public String getDisplayName(String conditionType)
Gets the display name for the condition type

パラメータ:
conditionType - condition type
戻り値:
display name for the condition type

getCondition

public Condition getCondition(String conditionType)
                       throws NameNotFoundException,
                              PolicyException
Returns an instance of the Condition given the condition type name.

パラメータ:
conditionType - condition type name.
戻り値:
an instance of the Condition given the condition type name.
例外:
NameNotFoundException - if the Condition for the conditionType name is not found
PolicyException - for any other abnormal condition

getViewBeanURL

public String getViewBeanURL(Condition condition)
Gets the view bean URL given the Condition

パラメータ:
condition - condition for which to get the view bean URL
戻り値:
view bean URL defined for the condition plugin in the policy service PluginSchema.