Package de.xima.fc.gui.bean.settings
Class FrontendServerBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class FrontendServerBean extends FCContextBean
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classFrontendServerBean.EntityListModelImpl-
Nested classes/interfaces inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
-
-
Field Summary
-
Fields inherited from class de.xima.fc.gui.bean.FCContextBean
systemUC
-
Fields inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
localeBean
-
-
Constructor Summary
Constructors Constructor Description FrontendServerBean()
-
Method Summary
-
Methods inherited from class de.xima.fc.gui.bean.FCContextBean
getNavigationBean, getSessionBean, isSetupUser, redirectToDashboard, setNavigationBean, setSessionBean, switchMainView, switchMainView, switchSubView, switchSubView
-
Methods inherited from class de.xima.fc.gui.bean.ABackendJSFContext
ec, findEntityContext, isDetached, isHasDB
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
destroySessionBean, encodeURL, findBean, findBean, findBean, findBean, findBean, findBean, findBean, findCurrentView, findUserContext, getBeanName, getBeanName, getContext, getCurrentViewBean, getLocaleBean, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, redirectToDashboard, setLocaleBean, setSessionAttribute, uc
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, errorMsg, errorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg, msg
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefault
-
-
-
-
Method Detail
-
addPublicRestApiCorsOrigin
public void addPublicRestApiCorsOrigin()
-
getContentSecurityPolicyBackend
public String getContentSecurityPolicyBackend()
-
setContentSecurityPolicyBackend
public void setContentSecurityPolicyBackend(String csp)
-
getContentSecurityPolicyPlaceholderBackend
public String getContentSecurityPolicyPlaceholderBackend()
-
getContentSecurityPolicyFrontend
public String getContentSecurityPolicyFrontend()
-
setContentSecurityPolicyFrontend
public void setContentSecurityPolicyFrontend(String csp)
-
getContentSecurityPolicyPlaceholderFrontend
public String getContentSecurityPolicyPlaceholderFrontend()
-
getRefererPolicy
public String getRefererPolicy()
-
setRefererPolicy
public void setRefererPolicy(String value)
-
getStrictTransportSecurity
public String getStrictTransportSecurity()
-
setStrictTransportSecurity
public void setStrictTransportSecurity(String hsts)
-
getStrictTransportSecurityPlaceholder
public String getStrictTransportSecurityPlaceholder()
-
getContentSecurityPolicyReportOnlyBackend
public String getContentSecurityPolicyReportOnlyBackend()
-
setContentSecurityPolicyReportOnlyBackend
public void setContentSecurityPolicyReportOnlyBackend(String cspRo)
-
getContentSecurityPolicyReportOnlyPlaceholderBackend
public String getContentSecurityPolicyReportOnlyPlaceholderBackend()
-
getContentSecurityPolicyReportOnlyFrontend
public String getContentSecurityPolicyReportOnlyFrontend()
-
setContentSecurityPolicyReportOnlyFrontend
public void setContentSecurityPolicyReportOnlyFrontend(String cspRo)
-
getContentSecurityPolicyReportOnlyPlaceholderFrontend
public String getContentSecurityPolicyReportOnlyPlaceholderFrontend()
-
addCustomHttpHeaderBackend
public void addCustomHttpHeaderBackend()
-
getCustomHttpHeadersBackend
public List<DeactivatableSettingsParam<SettingsNamedParam>> getCustomHttpHeadersBackend()
-
removeCustomHttpHeaderBackend
public void removeCustomHttpHeaderBackend(DeactivatableSettingsParam<SettingsNamedParam> header)
-
addCustomHttpHeaderFrontend
public void addCustomHttpHeaderFrontend()
-
getCustomHttpHeadersFrontend
public List<DeactivatableSettingsParam<SettingsNamedParam>> getCustomHttpHeadersFrontend()
-
removeCustomHttpHeaderFrontend
public void removeCustomHttpHeaderFrontend(DeactivatableSettingsParam<SettingsNamedParam> header)
-
isInheritedBackendCustomHeader
public boolean isInheritedBackendCustomHeader(DeactivatableSettingsParam<SettingsNamedParam> header)
-
isInheritedFrontendCustomHeader
public boolean isInheritedFrontendCustomHeader(DeactivatableSettingsParam<SettingsNamedParam> header)
-
getDefaultBackendCustomHeaderValue
public String getDefaultBackendCustomHeaderValue(String headerName)
-
getDefaultFrontendCustomHeaderValue
public String getDefaultFrontendCustomHeaderValue(String headerName)
-
getHeaderPermissionsPolicyBackend
public String getHeaderPermissionsPolicyBackend()
-
setHeaderPermissionsPolicyBackend
public void setHeaderPermissionsPolicyBackend(String policy)
-
getHeaderPermissionsPolicyPlaceholderBackend
public String getHeaderPermissionsPolicyPlaceholderBackend()
-
getHeaderPermissionsPolicyFrontend
public String getHeaderPermissionsPolicyFrontend()
-
setHeaderPermissionsPolicyFrontend
public void setHeaderPermissionsPolicyFrontend(String policy)
-
getHeaderPermissionsPolicyPlaceholderFrontend
public String getHeaderPermissionsPolicyPlaceholderFrontend()
-
isInheritedFrameUrl
public boolean isInheritedFrameUrl(boolean frontend, String urlValue)- Parameters:
frontend-truefor forms (frontend),falsefor the backendurlValue- the URL to check- Returns:
- whether the URL is inherited from the general settings; only backend URLs can be inherited, forms use either the inherited or their own URLs
- Since:
- 8.6.2
-
getIframeIntegrationAllowedForUrls
public Boolean getIframeIntegrationAllowedForUrls()
-
setIframeIntegrationAllowedForUrls
public void setIframeIntegrationAllowedForUrls(Boolean allowed)
-
getFrameIntegrationModeFrontend
public String getFrameIntegrationModeFrontend()
- Returns:
- the name of the
EFrameIntegrationModefor forms (frontend) of the selected frontend server, or the value of the inherited option if the mode is inherited from the general settings - Since:
- 8.6.2
-
setFrameIntegrationModeFrontend
public void setFrameIntegrationModeFrontend(String mode)
- Parameters:
mode- the name of theEFrameIntegrationModefor forms (frontend) of the selected frontend server, or the value of the inherited option to inherit the mode from the general settings- Since:
- 8.6.2
-
isFrameIntegrationUrlsFrontend
public boolean isFrameIntegrationUrlsFrontend()
- Returns:
- whether forms (frontend) may be embedded on the own URLs of the selected frontend server, so that the URL list is shown. It is not shown when the mode is inherited, the URLs of the general settings are used then.
- Since:
- 8.6.2
-
isFrameIntegrationRestrictedFrontend
public boolean isFrameIntegrationRestrictedFrontend()
- Returns:
- whether the embedding of forms (frontend) is restricted to their own origin and possibly further URLs
- Since:
- 8.6.2
-
getFrameIntegrationModeOptions
public List<javax.faces.model.SelectItem> getFrameIntegrationModeOptions()
- Returns:
- the options of the menu for the iframe integration of forms (frontend)
- Since:
- 8.6.2
-
getFrameIntegrationUrls
public List<DeactivatableSettingsParam<SettingsParam>> getFrameIntegrationUrls(boolean frontend)
- Parameters:
frontend-truefor forms (frontend),falsefor the backend- Returns:
- the allowed iframe URLs of the selected frontend server, including the inherited backend URLs
- Since:
- 8.6.2
-
addFrameIntegrationUrl
public void addFrameIntegrationUrl(boolean frontend)
Adds an empty row to the allowed iframe URLs of the selected frontend server.- Parameters:
frontend-truefor forms (frontend),falsefor the backend- Since:
- 8.6.2
-
removeFrameIntegrationUrl
public void removeFrameIntegrationUrl(boolean frontend, int idx)Removes a row from the allowed iframe URLs of the selected frontend server.- Parameters:
frontend-truefor forms (frontend),falsefor the backendidx- index of the row; ignored if out of range- Since:
- 8.6.2
-
setDefaultsHeaderHTTPStrictTransportSecuritySubdomain
public void setDefaultsHeaderHTTPStrictTransportSecuritySubdomain(boolean value)
-
getDefaultsHeaderHTTPStrictTransportSecuritySubdomain
public boolean getDefaultsHeaderHTTPStrictTransportSecuritySubdomain()
-
checkConnection
public void checkConnection()
-
cleanup
public void cleanup(FrontendServer fs)
-
cleanupSelectedFS
public void cleanupSelectedFS()
-
connect
public void connect(FrontendServer fs)
-
connectToSelectedFS
public void connectToSelectedFS()
-
delete
public void delete(FrontendServer server)
-
deleteMarked
public void deleteMarked()
-
disconnect
public void disconnect(FrontendServer fs)
-
disconnectFromSelectedFS
public void disconnectFromSelectedFS()
-
getFsConfigurableProperties
public FSConfigurableProperties getFsConfigurableProperties()
Gets the configuration for the frontend server. Pulled from the frontend server and can be edited via the backend UI.- Returns:
- The error pages configuration.
-
getModel
public IEntityListModelSelectByView<FrontendServer> getModel()
- Returns:
- the model
-
setModel
public void setModel(IEntityListModelSelectByView<FrontendServer> model)
- Parameters:
model- the model to set
-
getPublicRestApiCorsOrigins
public List<RestApiCorsOrigins> getPublicRestApiCorsOrigins()
-
setPublicRestApiCorsOrigins
public void setPublicRestApiCorsOrigins(List<RestApiCorsOrigins> publicRestApiCorsOrigins)
-
getStatus
public EConnectionStatus getStatus(FrontendServer fs)
-
getUserPortalOptions
public List<UserPortal> getUserPortalOptions()
-
hasFrontendServer
public boolean hasFrontendServer()
-
hasReachedLicenseLimit
public boolean hasReachedLicenseLimit()
-
init
@PostConstruct public void init()
-
isInboxSelected
public boolean isInboxSelected()
-
setInboxSelected
public void setInboxSelected(boolean inboxSelected)
-
isRestApiSelected
public boolean isRestApiSelected()
-
setRestApiSelected
public void setRestApiSelected(boolean restApiSelected)
-
isUserPortalsDisabled
public boolean isUserPortalsDisabled()
-
recreateCertificate
public void recreateCertificate(FrontendServer fs)
-
removePublicRestApiCorsOrigin
public void removePublicRestApiCorsOrigin(int idx)
-
testConnection
public boolean testConnection(FrontendServer fs)
-
testSelected
public boolean testSelected()
-
updateModel
public void updateModel()
-
validateUniqFrameIntegrationUrl
public void validateUniqFrameIntegrationUrl(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
-
validateUniqCustomHttpHeaderBackend
public void validateUniqCustomHttpHeaderBackend(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
-
validateUniqCustomHttpHeaderFrontend
public void validateUniqCustomHttpHeaderFrontend(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
-
validateCustomHeaderValue
public void validateCustomHeaderValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
-
getSessionCookieTimeoutMinutes
public int getSessionCookieTimeoutMinutes()
-
setSessionCookieTimeoutMinutes
public void setSessionCookieTimeoutMinutes(int sessionCookieTimeoutMinutes)
-
getAvailableReferrerPolicies
public List<javax.faces.model.SelectItem> getAvailableReferrerPolicies()
-
-