public void initialize(Map configParams){
  String delimiterConfig=(String)configParams.get(PolicyConfig.RESOURCE_COMPARATOR_DELIMITER);
  if (delimiterConfig != null) {
    this.delimiter=delimiterConfig;
  }
  String caseConfig=(String)configParams.get(PolicyConfig.RESOURCE_COMPARATOR_CASE_SENSITIVE);
  if (caseConfig != null) {
    if (caseConfig.equals("true")) {
      this.caseSensitive=true;
    }
 else     if (caseConfig.equals("false")) {
      this.caseSensitive=false;
    }
 else {
      this.caseSensitive=true;
    }
  }
  String wildcardConfig=(String)configParams.get(PolicyConfig.RESOURCE_COMPARATOR_WILDCARD);
  if (wildcardConfig != null) {
    this.wildcard=wildcardConfig;
  }
  String oneLevelWildcardConfig=(String)configParams.get(PolicyConfig.RESOURCE_COMPARATOR_ONE_LEVEL_WILDCARD);
  if (oneLevelWildcardConfig != null) {
    this.oneLevelWildcard=oneLevelWildcardConfig;
  }
  if (debug.messageEnabled()) {
    debug.message("PrefixResourceName:initialize():" + " delimiter = " + delimiter + " wildcard = "+ wildcard+ " oneLevelWildcard = "+ oneLevelWildcard+ " case = "+ caseConfig);
  }
  oneLevelWildcardLength=oneLevelWildcard.length();
  wildcardLength=wildcard.length();
  if (oneLevelWildcard.indexOf(wildcard) != -1) {
    wildcardEmbedded=true;
  }
 else {
    wildcardEmbedded=false;
  }
  if (wildcard.indexOf(oneLevelWildcard) != -1) {
    oneLevelWildcardEmbedded=true;
  }
 else {
    oneLevelWildcardEmbedded=false;
  }
  if (debug.messageEnabled()) {
    debug.message("wildcardEmbedded,oneLevelWildcardEmbedded" + wildcardEmbedded + ","+ oneLevelWildcardEmbedded);
  }
  return;
}

public void initialize ( Map configParams ) { String delimiterConfig = ( String ) configParams . get ( PolicyConfig . RESOURCE_COMPARATOR_DELIMITER ) ; if ( delimiterConfig != null ) { this . delimiter = delimiterConfig ; } String caseConfig = ( String ) configParams . get ( PolicyConfig . RESOURCE_COMPARATOR_CASE_SENSITIVE ) ; if ( caseConfig != null ) { if ( caseConfig . equals ( "true" ) ) { this . caseSensitive = true ; } else if ( caseConfig . equals ( "false" ) ) { this . caseSensitive = false ; } else { this . caseSensitive = true ; } } String wildcardConfig = ( String ) configParams . get ( PolicyConfig . RESOURCE_COMPARATOR_WILDCARD ) ; if ( wildcardConfig != null ) { this . wildcard = wildcardConfig ; } String oneLevelWildcardConfig = ( String ) configParams . get ( PolicyConfig . RESOURCE_COMPARATOR_ONE_LEVEL_WILDCARD ) ; if ( oneLevelWildcardConfig != null ) { this . oneLevelWildcard = oneLevelWildcardConfig ; } if ( debug . messageEnabled ( ) ) { debug . message ( "PrefixResourceName:initialize():" + " delimiter = " + delimiter + " wildcard = " + wildcard + " oneLevelWildcard = " + oneLevelWildcard + " case = " + caseConfig ) ; } oneLevelWildcardLength = oneLevelWildcard . length ( ) ; wildcardLength = wildcard . length ( ) ; if ( oneLevelWildcard . indexOf ( wildcard ) != - 1 ) { wildcardEmbedded = true ; } else { wildcardEmbedded = false ; } if ( wildcard . indexOf ( oneLevelWildcard ) != - 1 ) { oneLevelWildcardEmbedded = true ; } else { oneLevelWildcardEmbedded = false ; } if ( debug . messageEnabled ( ) ) { debug . message ( "wildcardEmbedded,oneLevelWildcardEmbedded" + wildcardEmbedded + "," + oneLevelWildcardEmbedded ) ; } return ; }
initializes the resource name with configuration information , usally set by the administrators . the main configration information retrived is mainly like wild card pattern used , one level wild card pattern used , case sensitivity etc .
