Skip to content
Snippets Groups Projects

credentialsAsInput: adding credentials as input parameters

Merged Petr Bainar requested to merge credentialsAsInput into master
3 files
+ 39
19
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -2,40 +2,46 @@ package cz.it4i.fiji.haas_spim_benchmark.commands;
import java.nio.file.Path;
import cz.it4i.fiji.haas_java_client.Configuration;
import cz.it4i.fiji.haas_spim_benchmark.core.BenchmarkSPIMParameters;
class BenchmarkSPIMParametersImpl extends Configuration implements BenchmarkSPIMParameters{
class BenchmarkSPIMParametersImpl implements BenchmarkSPIMParameters{
private String userName;
private String password;
private String phone;
private String email;
private Path workingDirectory;
public BenchmarkSPIMParametersImpl(Path workingDirectory) {
super("configuration.properties");
public BenchmarkSPIMParametersImpl(String userName, String password, String phone, String email, Path workingDirectory) {
this.userName = userName;
this.password = password;
this.phone = phone;
this.email = email;
this.workingDirectory = workingDirectory;
}
@Override
public Path workingDirectory() {
return workingDirectory;
}
@Override
public String username() {
return getValue("USER_NAME");
return userName;
}
@Override
public String password() {
return getValue("PASSWORD");
return password;
}
@Override
public String phone() {
return getValue("PHONE");
return phone;
}
@Override
public String email() {
return getValue("EMAIL");
return email;
}
@Override
public Path workingDirectory() {
return workingDirectory;
}
}
Loading