blob: 8e24a69c2b22619b293853afa80531e95d4358cd [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.syncope.client.ui.commons;
import java.util.HashMap;
import java.util.Map;
import org.apache.syncope.common.lib.SyncopeProperties;
public abstract class CommonUIProperties extends SyncopeProperties {
private String adminUser = "admin";
private boolean xForward = true;
private String xForwardProtocolHeader = "X-Forwarded-Proto";
private int xForwardHttpPort = 80;
private int xForwardHttpsPort = 443;
private boolean csrf = true;
private int maxUploadFileSizeMB = 5;
private long maxWaitTimeOnApplyChanges = 30L;
private final Map<String, String> securityHeaders = new HashMap<>();
public String getAdminUser() {
return adminUser;
}
public void setAdminUser(final String adminUser) {
this.adminUser = adminUser;
}
public boolean isxForward() {
return xForward;
}
public void setxForward(final boolean xForward) {
this.xForward = xForward;
}
public String getxForwardProtocolHeader() {
return xForwardProtocolHeader;
}
public void setxForwardProtocolHeader(final String xForwardProtocolHeader) {
this.xForwardProtocolHeader = xForwardProtocolHeader;
}
public int getxForwardHttpPort() {
return xForwardHttpPort;
}
public void setxForwardHttpPort(final int xForwardHttpPort) {
this.xForwardHttpPort = xForwardHttpPort;
}
public int getxForwardHttpsPort() {
return xForwardHttpsPort;
}
public void setxForwardHttpsPort(final int xForwardHttpsPort) {
this.xForwardHttpsPort = xForwardHttpsPort;
}
public boolean isCsrf() {
return csrf;
}
public void setCsrf(final boolean csrf) {
this.csrf = csrf;
}
public int getMaxUploadFileSizeMB() {
return maxUploadFileSizeMB;
}
public void setMaxUploadFileSizeMB(final int maxUploadFileSizeMB) {
this.maxUploadFileSizeMB = maxUploadFileSizeMB;
}
public long getMaxWaitTimeOnApplyChanges() {
return maxWaitTimeOnApplyChanges;
}
public void setMaxWaitTimeOnApplyChanges(final long maxWaitTimeOnApplyChanges) {
this.maxWaitTimeOnApplyChanges = maxWaitTimeOnApplyChanges;
}
public Map<String, String> getSecurityHeaders() {
return securityHeaders;
}
}