edu.internet2.middleware.grouper.app.genericProvisioner.GenericProvisionerConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grouper Show documentation
Show all versions of grouper Show documentation
Internet2 Groups Management Toolkit
package edu.internet2.middleware.grouper.app.genericProvisioner;
import org.apache.commons.lang3.StringUtils;
import edu.internet2.middleware.grouper.app.provisioning.ProvisioningConfiguration;
import edu.internet2.middleware.grouper.cfg.dbConfig.ConfigFileName;
/**
*
* @author mchyzer
*
*/
public class GenericProvisionerConfiguration extends ProvisioningConfiguration {
@Override
public ConfigFileName getConfigFileName() {
return ConfigFileName.GROUPER_LOADER_PROPERTIES;
}
@Override
public String getConfigItemPrefix() {
if (StringUtils.isBlank(this.getConfigId())) {
throw new RuntimeException("Must have configId!");
}
return "provisioner." + this.getConfigId() + ".";
}
@Override
public String getConfigIdRegex() {
return "^(provisioner)\\.([^.]+)\\.(.*)$";
}
@Override
public String getPropertySuffixThatIdentifiesThisConfig() {
return "class";
}
@Override
public String getPropertyValueThatIdentifiesThisConfig() {
return GrouperGenericProvisioner.class.getName();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy