Class Configuration


  • public class Configuration
    extends Object
    • Field Detail

      • clientId

        protected String clientId
      • secret

        protected String secret
    • Constructor Detail

      • Configuration

        public Configuration​(String scope,
                             String user,
                             String password,
                             boolean dtsFilter)
      • Configuration

        public Configuration​(String scope,
                             boolean dtsFilter)
    • 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()
      • retrieveDTSHosts

        public List<String> retrieveDTSHosts()
      • 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)