Commit e9e50275 authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

add not nulls to configruation

parent c4d4a730
......@@ -9,6 +9,8 @@ dbHost: 92f653f4-cf83-4801-8475-cd748954c3b6.node.dockerapp.io
dbPort: 27017
dbName: db
digestMethod: "MD5"
admins:
- name: "gpietrus_admin"
password: "41b450e73c974fca46911eba84e114f2" #gpietrus md5
......
......@@ -6,17 +6,33 @@ import com.telephoners.krakyournet.ctf.beans.tasks.TextTask;
import com.telephoners.krakyournet.ctf.beans.tasks.WebTask;
import io.dropwizard.Configuration;
import javax.validation.constraints.NotNull;
import java.util.List;
public class ApplicationConfiguration extends Configuration
{
@NotNull
private String dbHost;
@NotNull
private int dbPort;
@NotNull
private String dbName;
@NotNull
private String digestMethod;
@NotNull
private List<Team> teams;
@NotNull
private List<TextTask> textTasks;
@NotNull
private List<WebTask> webTasks;
@NotNull
private List<User> admins;
public List<User> getAdmins()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment