Package com.sun.identity.console.policy
Class AuthToServiceHelper
- java.lang.Object
-
- com.sun.identity.console.policy.AuthToServiceHelper
-
public class AuthToServiceHelper extends Object
Helper class for authenticate to service (add and edit) view bean.
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_FILTERName of search filter text field.static StringATTR_REALMName of realm list box.static StringATTR_SERVICEName of service list box.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SetgetAssignedServiceNamesInRealm(String base, PolicyModel model)Returns service names that are registered in the realm.MapgetConditionValues(PolicyModel model, AMPropertySheetModel propertySheetModel)Returns condition values (realm concatenate service).static AuthToServiceHelpergetInstance()Returns an instance of this singleton.SetgetRealmNames(String filter, PolicyModel model)Returns a set of realm names.voidsetPropertiesValues(Map values, AMPropertySheetModel propertySheetModel)Set properties 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_SERVICE
public static final String ATTR_SERVICE
Name of service list box.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static AuthToServiceHelper getInstance()
Returns an instance of this singleton.- Returns:
- an instance of this singleton.
-
setPropertiesValues
public void setPropertiesValues(Map values, AMPropertySheetModel propertySheetModel)
Set properties to property sheet model.- Parameters:
values- Values (realm concatenate service).propertySheetModel- Property Sheet Model.
-
getConditionValues
public Map getConditionValues(PolicyModel model, AMPropertySheetModel propertySheetModel) throws AMConsoleException
Returns condition values (realm concatenate service).- Parameters:
model- Policy Model.propertySheetModel- Property Sheet Model.- Returns:
- condition values.
- Throws:
AMConsoleException- if values are invalid.
-
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.
-
getAssignedServiceNamesInRealm
public Set getAssignedServiceNamesInRealm(String base, PolicyModel model) throws AMConsoleException
Returns service names that are registered in the realm.- Parameters:
base- Base realm name for this search. null indicates root suffix.- Returns:
- service names that are registered in the realm.
- Throws:
AMConsoleException- if search fails.
-
-