com.sun.identity.policy
Class ConditionTypeManager

java.lang.Object
  |
  +--com.sun.identity.policy.ConditionTypeManager

public class ConditionTypeManager
extends java.lang.Object

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


Method Summary
 Condition getCondition(java.lang.String conditionType)
          Returns an instance of the Condition given the condition type name.
 java.lang.String getConditionTypeName(Condition condition)
          Returns the type of the Condition implementation.
 java.util.Set getConditionTypeNames()
          Returns a set of all valid condition type names defined by the policy service.
 java.lang.String getDisplayName(java.lang.String conditionType)
          Gets the display name for the condition type
 java.lang.String getI18NKey(java.lang.String conditionType)
          Returns the I18N key to be used to localize the display name for the condition type name.
 java.util.Set getSelectedConditionTypeNames()
          Returns a set of valid condition type names configured for the organization.
 java.lang.String getViewBeanURL(Condition condition)
          Gets the view bean URL given the Condition
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConditionTypeNames

public java.util.Set getConditionTypeNames()
                                    throws SSOException,
                                           PolicyException
Returns a set of all valid condition type names defined by the policy service. Examples are AuthLevelCondition, IPCondition.
Returns:
a set of all valid condition type names defined by the policy service.
Throws:
SSOException - if the SSOToken used to create the PolicyManager has become invalid
PolicyException - for any other abnormal condition

getSelectedConditionTypeNames

public java.util.Set getSelectedConditionTypeNames()
                                            throws SSOException,
                                                   PolicyException
Returns a set of valid condition type names configured for the organization. Examples are AuthLevelCondition, IPCondition.
Returns:
a set of valid condition type names configured for the organization.
Throws:
SSOException - if the SSOToken used to create the PolicyManager has become invalid
PolicyException - for any other abnormal condition

getConditionTypeName

public java.lang.String getConditionTypeName(Condition condition)
Returns the type of the Condition implementation. For example TimeCondition, DayTimeCondition, IPCondition.
Parameters:
condition - condition object for which this method will return its associated type
Returns:
type of the condition, e.g. AuthLevelConditon, IPCondition. Returns null if not present.

getI18NKey

public java.lang.String getI18NKey(java.lang.String conditionType)
Returns the I18N key to be used to localize the display name for the condition type name.
Parameters:
conditionType - condition type name
Returns:
i18n key to obtain the display name

getDisplayName

public java.lang.String getDisplayName(java.lang.String conditionType)
Gets the display name for the condition type
Parameters:
conditionType - condition type
Returns:
display name for the condition type

getCondition

public Condition getCondition(java.lang.String conditionType)
                       throws NameNotFoundException,
                              PolicyException
Returns an instance of the Condition given the condition type name.
Parameters:
conditionType - condition type name.
Returns:
an instance of the Condition given the condition type name.
Throws:
NameNotFoundException - if the Condition for the conditionType name is not found
PolicyException - for any other abnormal condition

getViewBeanURL

public java.lang.String getViewBeanURL(Condition condition)
Gets the view bean URL given the Condition
Parameters:
condition - condition for which to get the view bean URL
Returns:
view bean URL defined for the condition plugin in the policy service PluginSchema.