mirror of https://github.com/MISP/misp-bump
242 lines
5.8 KiB
Java
242 lines
5.8 KiB
Java
package lu.circl.mispbump.models.restModels;
|
|
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
|
|
public class Server {
|
|
|
|
private Integer id;
|
|
private String name;
|
|
private String url;
|
|
private String authkey;
|
|
private Integer org_id;
|
|
private Boolean push = false;
|
|
private Boolean pull = false;
|
|
private Object lastpulledid;
|
|
private Object lastpushedid;
|
|
private Object organization;
|
|
private Integer remote_org_id;
|
|
private Boolean publish_without_email = false;
|
|
private Boolean unpublish_event = false;
|
|
private Boolean self_signed = false;
|
|
private String pull_rules;
|
|
private String push_rules;
|
|
private Object cert_file;
|
|
private Object client_cert_file;
|
|
private Boolean internal;
|
|
private Boolean skip_proxy;
|
|
private Boolean caching_enabled = false;
|
|
private Boolean cache_timestamp;
|
|
|
|
|
|
public Server(String url) {
|
|
this.url = url;
|
|
}
|
|
|
|
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getUrl() {
|
|
return url;
|
|
}
|
|
|
|
public void setUrl(String url) {
|
|
this.url = url;
|
|
}
|
|
|
|
public String getAuthkey() {
|
|
return authkey;
|
|
}
|
|
|
|
public void setAuthkey(String authkey) {
|
|
this.authkey = authkey;
|
|
}
|
|
|
|
public Integer getOrg_id() {
|
|
return org_id;
|
|
}
|
|
|
|
public void setOrg_id(Integer org_id) {
|
|
this.org_id = org_id;
|
|
}
|
|
|
|
public Boolean getPush() {
|
|
return push;
|
|
}
|
|
|
|
public void setPush(Boolean push) {
|
|
this.push = push;
|
|
}
|
|
|
|
public Boolean getPull() {
|
|
return pull;
|
|
}
|
|
|
|
public void setPull(Boolean pull) {
|
|
this.pull = pull;
|
|
}
|
|
|
|
public Object getLastpulledid() {
|
|
return lastpulledid;
|
|
}
|
|
|
|
public void setLastpulledid(Object lastpulledid) {
|
|
this.lastpulledid = lastpulledid;
|
|
}
|
|
|
|
public Object getLastpushedid() {
|
|
return lastpushedid;
|
|
}
|
|
|
|
public void setLastpushedid(Object lastpushedid) {
|
|
this.lastpushedid = lastpushedid;
|
|
}
|
|
|
|
public Object getOrganization() {
|
|
return organization;
|
|
}
|
|
|
|
public void setOrganization(Object organization) {
|
|
this.organization = organization;
|
|
}
|
|
|
|
public Integer getRemote_org_id() {
|
|
return remote_org_id;
|
|
}
|
|
|
|
public void setRemote_org_id(Integer remote_org_id) {
|
|
this.remote_org_id = remote_org_id;
|
|
}
|
|
|
|
public Boolean getPublish_without_email() {
|
|
return publish_without_email;
|
|
}
|
|
|
|
public void setPublish_without_email(Boolean publish_without_email) {
|
|
this.publish_without_email = publish_without_email;
|
|
}
|
|
|
|
public Boolean getUnpublish_event() {
|
|
return unpublish_event;
|
|
}
|
|
|
|
public void setUnpublish_event(Boolean unpublish_event) {
|
|
this.unpublish_event = unpublish_event;
|
|
}
|
|
|
|
public Boolean getSelf_signed() {
|
|
return self_signed;
|
|
}
|
|
|
|
public void setSelf_signed(Boolean self_signed) {
|
|
this.self_signed = self_signed;
|
|
}
|
|
|
|
public String getPull_rules() {
|
|
return pull_rules;
|
|
}
|
|
|
|
public void setPull_rules(String pull_rules) {
|
|
this.pull_rules = pull_rules;
|
|
}
|
|
|
|
public String getPush_rules() {
|
|
return push_rules;
|
|
}
|
|
|
|
public void setPush_rules(String push_rules) {
|
|
this.push_rules = push_rules;
|
|
}
|
|
|
|
public Object getCert_file() {
|
|
return cert_file;
|
|
}
|
|
|
|
public void setCert_file(Object cert_file) {
|
|
this.cert_file = cert_file;
|
|
}
|
|
|
|
public Object getClient_cert_file() {
|
|
return client_cert_file;
|
|
}
|
|
|
|
public void setClient_cert_file(Object client_cert_file) {
|
|
this.client_cert_file = client_cert_file;
|
|
}
|
|
|
|
public Boolean getInternal() {
|
|
return internal;
|
|
}
|
|
|
|
public void setInternal(Boolean internal) {
|
|
this.internal = internal;
|
|
}
|
|
|
|
public Boolean getSkip_proxy() {
|
|
return skip_proxy;
|
|
}
|
|
|
|
public void setSkip_proxy(Boolean skip_proxy) {
|
|
this.skip_proxy = skip_proxy;
|
|
}
|
|
|
|
public Boolean getCaching_enabled() {
|
|
return caching_enabled;
|
|
}
|
|
|
|
public void setCaching_enabled(Boolean caching_enabled) {
|
|
this.caching_enabled = caching_enabled;
|
|
}
|
|
|
|
public Boolean getCache_timestamp() {
|
|
return cache_timestamp;
|
|
}
|
|
|
|
public void setCache_timestamp(Boolean cache_timestamp) {
|
|
this.cache_timestamp = cache_timestamp;
|
|
}
|
|
|
|
@NonNull
|
|
@Override
|
|
public String toString() {
|
|
return "Server: \n" +
|
|
"\t id = " + id + '\n' +
|
|
"\t name = " + name + '\n' +
|
|
"\t url = " + url + '\n' +
|
|
"\t authkey = " + authkey + '\n' +
|
|
"\t org_id = " + org_id + '\n' +
|
|
"\t push = " + push + '\n' +
|
|
"\t pull = " + pull + '\n' +
|
|
"\t lastpulledid = " + lastpulledid + '\n' +
|
|
"\t lastpushedid = " + lastpushedid + '\n' +
|
|
"\t organization = " + organization + '\n' +
|
|
"\t remote_org_id = " + remote_org_id + '\n' +
|
|
"\t publish_without_email = " + publish_without_email + '\n' +
|
|
"\t unpublish_event = " + unpublish_event + '\n' +
|
|
"\t self_signed = " + self_signed + '\n' +
|
|
"\t pull_rules = " + pull_rules + '\n' +
|
|
"\t push_rules = " + push_rules + '\n' +
|
|
"\t cert_file = " + cert_file + '\n' +
|
|
"\t client_cert_file = " + client_cert_file + '\n' +
|
|
"\t internal = " + internal + '\n' +
|
|
"\t skip_proxy = " + skip_proxy + '\n' +
|
|
"\t caching_enabled = " + caching_enabled + '\n' +
|
|
"\t cache_timestamp = " + cache_timestamp;
|
|
}
|
|
}
|