All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.internet2.middleware.grouper.app.subectSource.SqlSubjectSourceConfiguration Maven / Gradle / Ivy

There is a newer version: 5.12.2
Show newest version
package edu.internet2.middleware.grouper.app.subectSource;

import java.util.List;
import java.util.Map;

import org.apache.commons.lang3.StringUtils;

import edu.internet2.middleware.grouper.cfg.dbConfig.ConfigFileName;
import edu.internet2.middleware.grouper.subj.GrouperJdbcSourceAdapter2_5;

public class SqlSubjectSourceConfiguration extends SubjectSourceConfiguration {

  
  @Override
  public ConfigFileName getConfigFileName() {
    return ConfigFileName.SUBJECT_PROPERTIES;
  }

  @Override
  public String getConfigItemPrefix() {
    if (StringUtils.isBlank(this.getConfigId())) {
      throw new RuntimeException("Must have configId!");
    }
    return "subjectApi.source." + this.getConfigId() + ".";
  }

  @Override
  public String getConfigIdRegex() {
    return "^(subjectApi.source)\\.([^.]+)\\.(.*)$";
  }
  
  @Override
  public String getPropertySuffixThatIdentifiesThisConfig() {
    return "adapterClass";
  }

  @Override
  public String getPropertyValueThatIdentifiesThisConfig() {
    return GrouperJdbcSourceAdapter2_5.class.getName();
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy