public class ConditionTypeManager extends Object
ConditionTypeManager
provides
methods to get a list of configured Condition
objects, and to obtain a factory object for it.Modifier and Type | Method and Description |
---|---|
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
|
public Set getConditionTypeNames() throws SSOException, PolicyException
Set
of all valid condition type names defined
by the policy service. Examples are AuthLevelCondition
,
IPCondition
.Set
of all valid condition type names defined
by the policy service.SSOException
- if the SSOToken
used to create
the PolicyManager
has become invalidPolicyException
- for any other abnormal conditionpublic Set getSelectedConditionTypeNames() throws SSOException, PolicyException
Set
of valid condition type names configured for
the organization. Examples are AuthLevelCondition
,
IPCondition
.Set
of valid condition type names configured for
the organization.SSOException
- if the SSOToken
used to create
the PolicyManager
has become invalidPolicyException
- for any other abnormal conditionpublic String getConditionTypeName(Condition condition)
Condition
implementation.
For example TimeCondition
, DayTimeCondition
,
IPCondition
.condition
- condition object for which this method will
return its associated typeAuthLevelConditon
,
IPCondition
. Returns null
if not
present.protected String getI18NPropertiesFileName(String conditionType)
conditionType
- condition type nameString
representing i18n properties file namepublic String getI18NKey(String conditionType)
conditionType
- condition type nameString
representing i18n key to obtain the display
namepublic String getDisplayName(String conditionType)
conditionType
- condition typepublic Condition getCondition(String conditionType) throws NameNotFoundException, PolicyException
Condition
given the condition type name.conditionType
- condition type name.Condition
given the condition type name.NameNotFoundException
- if the Condition
for the
conditionType
name is not foundPolicyException
- for any other abnormal conditionpublic String getViewBeanURL(Condition condition)
condition
- condition for which to get the view bean URLPluginSchema
.Copyright © 2010-2013, ForgeRock All Rights Reserved.