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;
@@ -2,40 +2,46 @@ package cz.it4i.fiji.haas_spim_benchmark.commands;
import java.nio.file.Path;
import java.nio.file.Path;
import cz.it4i.fiji.haas_java_client.Configuration;
import cz.it4i.fiji.haas_spim_benchmark.core.BenchmarkSPIMParameters;
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;
private Path workingDirectory;
public BenchmarkSPIMParametersImpl(Path workingDirectory) {
public BenchmarkSPIMParametersImpl(String userName, String password, String phone, String email, Path workingDirectory) {
super("configuration.properties");
this.userName = userName;
 
this.password = password;
 
this.phone = phone;
 
this.email = email;
this.workingDirectory = workingDirectory;
this.workingDirectory = workingDirectory;
}
}
@Override
@Override
public Path workingDirectory() {
return workingDirectory;
}
@Override
public String username() {
public String username() {
return getValue("USER_NAME");
return userName;
}
}
@Override
@Override
public String password() {
public String password() {
return getValue("PASSWORD");
return password;
}
}
@Override
@Override
public String phone() {
public String phone() {
return getValue("PHONE");
return phone;
}
}
@Override
@Override
public String email() {
public String email() {
return getValue("EMAIL");
return email;
 
}
 
 
@Override
 
public Path workingDirectory() {
 
return workingDirectory;
}
}
}
}
Loading