package sg.ncl.adapter.deterlab;

import org.springframework.boot.context.properties.ConfigurationProperties;

import static sg.ncl.adapter.deterlab.ConnectionProperties.PREFIX;

/**
 * Created by Te Ye
 */
@ConfigurationProperties(prefix = PREFIX)
public class ConnectionProperties {

    public static final String PREFIX = "ncl.deterlab.adapter";

    private String ip;
    private String port;
    private String userIp;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getUserIp() {
        return userIp;
    }

    public void setUserIp(String userIp) {
        this.userIp = userIp;
    }

    public String getAddUsersUri() {
        return "http://" + ip + ":" + port + "/addUsers";
    }

    public String getApplyProjectNewUsers() {
        return "http://" + ip + ":" + port + "/applyProjectNewUsers";
    }

    public String getCreateExperimentUri() {
        return "http://" + ip + ":" + port + "/createExperiment";
    }

//    public void setAddUsersUri(String addUsersUri) {
//         not implemented
//    }
}


@@ -1153,16 +1153,130 @@
 %0A    %7D%0A%0A
+    public String getUpdateCredentials() %7B%0A        return %22http://%22 + ip + %22:%22 + port + %22/changePassword%22;%0A    %7D%0A%0A
 //    pu

Fix error