Package com.sun.identity.console.policy
Class AuthLevelHelper
- java.lang.Object
-
- com.sun.identity.console.policy.AuthLevelHelper
-
public class AuthLevelHelper extends Object
Helper class for authentication level (add and edit) view bean.
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_AUTH_LEVELName of authentication level textbox.static StringATTR_FILTERName of search filter text field.static StringATTR_REALMName of realm list box.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MapgetConditionValues(PolicyModel model, AMPropertySheetModel propertySheetModel)Returns condition values by concatentating realm and authentication level.static AuthLevelHelpergetInstance()Returns an instance of authentication level helper object.SetgetRealmNames(String filter, PolicyModel model)Returns a set of realm namesvoidsetPropertiesValues(Map values, AMPropertySheetModel propertySheetModel)Set the condition values to property sheet model.
-
-
-
Field Detail
-
ATTR_FILTER
public static final String ATTR_FILTER
Name of search filter text field.- See Also:
- Constant Field Values
-
ATTR_REALM
public static final String ATTR_REALM
Name of realm list box.- See Also:
- Constant Field Values
-
ATTR_AUTH_LEVEL
public static final String ATTR_AUTH_LEVEL
Name of authentication level textbox.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static AuthLevelHelper getInstance()
Returns an instance of authentication level helper object.- Returns:
- an instance of authentication level helper object.
-
setPropertiesValues
public void setPropertiesValues(Map values, AMPropertySheetModel propertySheetModel)
Set the condition values to property sheet model.- Parameters:
values- Values which contains realm name and authentication level.propertySheetModel- Property sheet model.
-
getConditionValues
public Map getConditionValues(PolicyModel model, AMPropertySheetModel propertySheetModel) throws AMConsoleException
Returns condition values by concatentating realm and authentication level.- Parameters:
model- Policy Model.propertySheetModel- Property Sheet Model for extract realm and authentication level values.- Returns:
- condition values.
- Throws:
AMConsoleException- if realm or authentication level is blank.
-
getRealmNames
public Set getRealmNames(String filter, PolicyModel model) throws AMConsoleException
Returns a set of realm names- Parameters:
filter- Search filter.model- Policy Model.- Returns:
- a set of realm names
- Throws:
AMConsoleException- if search operation failed.
-
-