Class Configuration
- java.lang.Object
-
- org.gcube.contentmanager.storageserver.startup.Configuration
-
public class Configuration extends Object
-
-
Constructor Summary
Constructors Constructor Description Configuration(String scope, boolean dtsFilter)Configuration(String scope, String user, String password, boolean dtsFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetAccountingPassword(List<org.gcube.common.resources.gcore.ServiceEndpoint> resources)The accounting password is retrieved from the first serviceEndpoint found in the scope and the first accessPoint inside the serviceEndpointprotected StringgetAccountingUser(List<org.gcube.common.resources.gcore.ServiceEndpoint> resources)The accounting user is retrieved from the first serviceEndpoint found in the scope and the first accessPoint inside the serviceEndpointStringgetBackendType()StringgetClientId()ArrayList<String>getDtsHosts()StringgetHosts(String serviceClass, String serviceName)StringgetHosts(String serviceClass, String serviceName, String scope)StringgetPassword()StringgetScope()StringgetSecret()String[]getServer()String[]getServerAccess(List<org.gcube.common.resources.gcore.ServiceEndpoint> resources)String[]getServerRRFws(List<org.gcube.common.resources.gcore.ServiceEndpoint> resources)protected List<org.gcube.common.resources.gcore.ServiceEndpoint>getStorageServiceEndpoint()protected org.gcube.common.resources.gcore.ServiceEndpointgetSystemServiceEndpoint()StringgetUsername()booleanisActiveDTSFilter()List<String>retrieveDTSHosts()voidsetActiveDTSFilter(boolean activeDTSFilter)voidsetBackendType(String backendType)voidsetClientId(String clientId)voidsetDtsHosts(ArrayList<String> dtsHosts)voidsetPassword(String password)voidsetScope(String scope)voidsetSecret(String secret)protected voidsetSecrets(org.gcube.common.resources.gcore.ServiceEndpoint se)voidsetServer(String[] server)voidsetUsername(String username)
-
-
-
Method Detail
-
getServerAccess
public String[] getServerAccess(List<org.gcube.common.resources.gcore.ServiceEndpoint> resources)
-
getServerRRFws
public String[] getServerRRFws(List<org.gcube.common.resources.gcore.ServiceEndpoint> resources)
-
getAccountingUser
protected String getAccountingUser(List<org.gcube.common.resources.gcore.ServiceEndpoint> resources)
The accounting user is retrieved from the first serviceEndpoint found in the scope and the first accessPoint inside the serviceEndpoint- Parameters:
resources- the serviceEndpoint list- Returns:
- accounting username
-
setSecrets
protected void setSecrets(org.gcube.common.resources.gcore.ServiceEndpoint se) throws Exception- Throws:
Exception
-
getAccountingPassword
protected String getAccountingPassword(List<org.gcube.common.resources.gcore.ServiceEndpoint> resources)
The accounting password is retrieved from the first serviceEndpoint found in the scope and the first accessPoint inside the serviceEndpoint- Parameters:
resources- the serviceEndpoint list- Returns:
- accounting password
-
getStorageServiceEndpoint
protected List<org.gcube.common.resources.gcore.ServiceEndpoint> getStorageServiceEndpoint()
-
getSystemServiceEndpoint
protected org.gcube.common.resources.gcore.ServiceEndpoint getSystemServiceEndpoint()
-
getScope
public String getScope()
-
setScope
public void setScope(String scope)
-
getServer
public String[] getServer()
-
setServer
public void setServer(String[] server)
-
getBackendType
public String getBackendType()
-
setBackendType
public void setBackendType(String backendType)
-
isActiveDTSFilter
public boolean isActiveDTSFilter()
-
setActiveDTSFilter
public void setActiveDTSFilter(boolean activeDTSFilter)
-
getUsername
public String getUsername()
-
setUsername
public void setUsername(String username)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
getClientId
public String getClientId()
-
setClientId
public void setClientId(String clientId)
-
getSecret
public String getSecret()
-
setSecret
public void setSecret(String secret)
-
-