2019-03-25 12:55:34 +01:00
|
|
|
package org.gcube.data.publishing.gCatFeeder.service.engine;
|
|
|
|
|
2019-04-02 17:46:32 +02:00
|
|
|
import java.util.Map;
|
|
|
|
|
2019-03-26 19:05:06 +01:00
|
|
|
import org.gcube.data.publishing.gCatFeeder.service.engine.impl.persistence.DatabaseConnectionDescriptor;
|
|
|
|
|
2019-03-25 12:55:34 +01:00
|
|
|
public interface Infrastructure {
|
|
|
|
|
|
|
|
public String getCurrentToken();
|
|
|
|
public String getCurrentContext();
|
|
|
|
public String getCurrentContextName();
|
|
|
|
public String getClientID(String token);
|
|
|
|
public void setToken(String token);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
public String encrypt(String toEncrypt);
|
|
|
|
public String decrypt(String toDecrypt);
|
2019-03-26 19:05:06 +01:00
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
public DatabaseConnectionDescriptor queryForDatabase(String category,String name) throws InternalError;
|
2019-04-02 17:46:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
public Map<String,String> getEnvironmentConfigurationParameters();
|
2019-03-25 12:55:34 +01:00
|
|
|
}
|