2013-04-05 16:31:42 +02:00
|
|
|
package com.commafeed.backend.model;
|
|
|
|
|
|
|
|
|
|
import javax.persistence.Entity;
|
|
|
|
|
import javax.persistence.Table;
|
|
|
|
|
|
|
|
|
|
@Entity
|
|
|
|
|
@Table(name = "APPLICATIONSETTINGS")
|
|
|
|
|
@SuppressWarnings("serial")
|
|
|
|
|
public class ApplicationSettings extends AbstractModel {
|
|
|
|
|
|
|
|
|
|
private String publicUrl;
|
|
|
|
|
private boolean allowRegistrations = false;
|
|
|
|
|
private String googleClientId;
|
|
|
|
|
private String googleClientSecret;
|
2013-04-12 09:56:57 +02:00
|
|
|
private int backgroundThreads = 3;
|
2013-04-05 16:31:42 +02:00
|
|
|
|
|
|
|
|
public String getPublicUrl() {
|
|
|
|
|
return publicUrl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setPublicUrl(String publicUrl) {
|
|
|
|
|
this.publicUrl = publicUrl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isAllowRegistrations() {
|
|
|
|
|
return allowRegistrations;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setAllowRegistrations(boolean allowRegistrations) {
|
|
|
|
|
this.allowRegistrations = allowRegistrations;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getGoogleClientId() {
|
|
|
|
|
return googleClientId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setGoogleClientId(String googleClientId) {
|
|
|
|
|
this.googleClientId = googleClientId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getGoogleClientSecret() {
|
|
|
|
|
return googleClientSecret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setGoogleClientSecret(String googleClientSecret) {
|
|
|
|
|
this.googleClientSecret = googleClientSecret;
|
|
|
|
|
}
|
|
|
|
|
|
2013-04-12 09:56:57 +02:00
|
|
|
public int getBackgroundThreads() {
|
|
|
|
|
return backgroundThreads;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setBackgroundThreads(int backgroundThreads) {
|
|
|
|
|
this.backgroundThreads = backgroundThreads;
|
|
|
|
|
}
|
|
|
|
|
|
2013-04-05 16:31:42 +02:00
|
|
|
}
|