33 lines
1.1 KiB
Java
33 lines
1.1 KiB
Java
package org.gcube.application.cms.implementations;
|
|
|
|
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
|
|
import org.gcube.application.geoportal.common.model.rest.DatabaseConnection;
|
|
import org.gcube.application.geoportal.common.utils.ISUtils;
|
|
import org.gcube.common.resources.gcore.ServiceEndpoint;
|
|
|
|
import java.util.List;
|
|
|
|
public class DefaultISProvider implements ISInterface{
|
|
|
|
|
|
@Override
|
|
public DatabaseConnection queryForDatabase(String category, String platform, String flagName, String flagValue) throws ConfigurationException {
|
|
return ISUtils.performQueryForDB(category, platform, flagName, flagValue);
|
|
}
|
|
|
|
@Override
|
|
public List<ServiceEndpoint.AccessPoint> performGetAP(String category, String platform, String flagName, String flagValue) {
|
|
return ISUtils.performGetAP(category, platform, flagName, flagValue);
|
|
}
|
|
|
|
@Override
|
|
public String decryptString(String toDecrypt) {
|
|
return ISUtils.decryptString(toDecrypt);
|
|
}
|
|
|
|
@Override
|
|
public String encryptString(String toEncrypt) {
|
|
return ISUtils.encryptString(toEncrypt);
|
|
}
|
|
}
|