Class InfrastructureUtilsImpl
- java.lang.Object
-
- org.gcube.data.publishing.gCatFeeder.service.engine.impl.InfrastructureUtilsImpl
-
- All Implemented Interfaces:
Infrastructure
public class InfrastructureUtilsImpl extends Object implements Infrastructure
-
-
Constructor Summary
Constructors Constructor Description InfrastructureUtilsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdecrypt(String toDecrypt)Stringencrypt(String toEncrypt)StringgetClientID(String token)StringgetCurrentContext()StringgetCurrentContextName()StringgetCurrentToken()Map<String,String>getEnvironmentConfigurationParameters()DatabaseConnectionDescriptorqueryForDatabase(String category, String name)voidsetToken(String token)
-
-
-
Method Detail
-
getCurrentToken
public String getCurrentToken()
- Specified by:
getCurrentTokenin interfaceInfrastructure
-
getCurrentContext
public String getCurrentContext()
- Specified by:
getCurrentContextin interfaceInfrastructure
-
getClientID
public String getClientID(String token)
- Specified by:
getClientIDin interfaceInfrastructure
-
setToken
public void setToken(String token)
- Specified by:
setTokenin interfaceInfrastructure
-
getCurrentContextName
public String getCurrentContextName()
- Specified by:
getCurrentContextNamein interfaceInfrastructure
-
decrypt
public String decrypt(String toDecrypt)
- Specified by:
decryptin interfaceInfrastructure
-
encrypt
public String encrypt(String toEncrypt)
- Specified by:
encryptin interfaceInfrastructure
-
queryForDatabase
public DatabaseConnectionDescriptor queryForDatabase(String category, String name) throws InternalError
- Specified by:
queryForDatabasein interfaceInfrastructure- Throws:
InternalError
-
getEnvironmentConfigurationParameters
public Map<String,String> getEnvironmentConfigurationParameters()
- Specified by:
getEnvironmentConfigurationParametersin interfaceInfrastructure
-
-