public class Configuration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
clientId |
protected String |
secret |
| Constructor and Description |
|---|
Configuration(String scope,
boolean dtsFilter) |
Configuration(String scope,
String user,
String password,
boolean dtsFilter) |
| Modifier and Type | Method and Description |
|---|---|
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
|
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
|
String |
getBackendType() |
String |
getClientId() |
ArrayList<String> |
getDtsHosts() |
String |
getHosts(String serviceClass,
String serviceName) |
String |
getHosts(String serviceClass,
String serviceName,
String scope) |
String |
getPassword() |
String |
getScope() |
String |
getSecret() |
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.ServiceEndpoint |
getSystemServiceEndpoint() |
String |
getUsername() |
boolean |
isActiveDTSFilter() |
List<String> |
retrieveDTSHosts() |
void |
setActiveDTSFilter(boolean activeDTSFilter) |
void |
setBackendType(String backendType) |
void |
setClientId(String clientId) |
void |
setDtsHosts(ArrayList<String> dtsHosts) |
void |
setPassword(String password) |
void |
setScope(String scope) |
void |
setSecret(String secret) |
protected void |
setSecrets(org.gcube.common.resources.gcore.ServiceEndpoint se) |
void |
setServer(String[] server) |
void |
setUsername(String username) |
public Configuration(String scope, boolean dtsFilter)
public String[] getServerAccess(List<org.gcube.common.resources.gcore.ServiceEndpoint> resources)
public String[] getServerRRFws(List<org.gcube.common.resources.gcore.ServiceEndpoint> resources)
protected String getAccountingUser(List<org.gcube.common.resources.gcore.ServiceEndpoint> resources)
resources - the serviceEndpoint listprotected void setSecrets(org.gcube.common.resources.gcore.ServiceEndpoint se)
throws Exception
Exceptionprotected String getAccountingPassword(List<org.gcube.common.resources.gcore.ServiceEndpoint> resources)
resources - the serviceEndpoint listprotected List<org.gcube.common.resources.gcore.ServiceEndpoint> getStorageServiceEndpoint()
protected org.gcube.common.resources.gcore.ServiceEndpoint getSystemServiceEndpoint()
public String getScope()
public void setScope(String scope)
public String[] getServer()
public void setServer(String[] server)
public String getBackendType()
public void setBackendType(String backendType)
public boolean isActiveDTSFilter()
public void setActiveDTSFilter(boolean activeDTSFilter)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public String getClientId()
public void setClientId(String clientId)
public String getSecret()
public void setSecret(String secret)
Copyright © 2022. All Rights Reserved.