Class FrontendServerBean

    • Constructor Detail

      • FrontendServerBean

        public FrontendServerBean()
    • 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()
      • addCustomHttpHeaderFrontend

        public void addCustomHttpHeaderFrontend()
      • 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 - true for forms (frontend), false for the backend
        urlValue - 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 EFrameIntegrationMode for 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 the EFrameIntegrationMode for 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 - true for forms (frontend), false for 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 - true for forms (frontend), false for 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 - true for forms (frontend), false for the backend
        idx - 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()
      • cleanupSelectedFS

        public void cleanupSelectedFS()
      • connectToSelectedFS

        public void connectToSelectedFS()
      • deleteMarked

        public void deleteMarked()
      • 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.
      • setPublicRestApiCorsOrigins

        public void setPublicRestApiCorsOrigins​(List<RestApiCorsOrigins> publicRestApiCorsOrigins)
      • 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()