Class AuthLevelHelper


  • public class AuthLevelHelper
    extends Object
    Helper class for authentication level (add and edit) view bean.
    • 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.