Class AuthToServiceHelper


  • public class AuthToServiceHelper
    extends Object
    Helper class for authenticate to service (add and edit) view bean.
    • 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.