Class RepoConfigHelper


  • public class RepoConfigHelper
    extends Object
    Copied some methods from com.sun.identity.idm.plugins.ldapv3.LDAPv3Repo.java which help to get attributes from the idRepoSevices.xml These help in the initialize method of a plugin Probably these could be moved to a common utility since they help any idRepo plugin process the configuration map built from idRepoSevices.xml attributes sets for a plugin.
    • Constructor Detail

      • RepoConfigHelper

        public RepoConfigHelper​(Debug debug)
    • Method Detail

      • getPropertyIntValue

        public int getPropertyIntValue​(Map configParams,
                                       String key,
                                       int defaultValue)
      • getPropertyStringValue

        public String getPropertyStringValue​(Map configParams,
                                             String key,
                                             String defaultVal)
      • getPropertyStringValue

        public String getPropertyStringValue​(Map configParams,
                                             String key)
      • getPropertyBooleanValue

        public boolean getPropertyBooleanValue​(Map configParams,
                                               String key)
      • parsedUserSpecifiedOps

        public Map parsedUserSpecifiedOps​(Set userSpecifiedOpsSet)
        ******************************************** parsedUserSpecifiedOps and parseInputedOps methods are copied from LDAPv3Repo.java and changed a bit to be reuseable. Changed are: parsedUserSpecifiedOps --changed method to public to make accessible --changed to return a Map supportedOps INSTEAD of operate on a local field --changed debug print out --commented out dead code line Map oldSupportedOps = new HashMap(supportedOps); --commented out some code at the end which was always adding Realm support, since I dont think it is needed parseInputedOps --changed method to public to make accessible --changed debug print out
      • parseInputedOps

        public Set parseInputedOps​(StringTokenizer st,
                                   boolean supportService)