...
The Web Operator Client configuration can be used to customize the look and feel of a Web OC. The configuration will be used by the PI REST Service: https://fewsdocs.deltares.nl/webservices/rest-api/v1/#get-/weboc/config. It is possible to specify multiple webOperatorClient.xml files by using a custom FEWS WebServices Configuration File. In this configuration file a custom webOperatorClient.xml can be configured. For example:
...
...
<webOperatorClientConfiguration>
<configFile>MyCustomWebOperatorClient</configFile>
</webOperatorClientConfiguration>
general
In the general section some web oc wide configurations can be set among which the title, logo etc.
...
Code Block |
---|
<?xml version="1.0" encoding="utf-8"?> <webOperatorClient xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews https://fewsdocs.deltares.nl/schemas/version1.0/webOperatorClient.xsd"> <!--Optional:--> <general> <title>Delft-FEWS Web OC</title> <icons> <logo>resources/images/my-logo.png</logo> <favicon>resources/images/favicon.ico</favicon> </icons> </general> <components> <dataViewer enabled="true"> <title>My Data Viewer</title> <viewPermission>Forecaster</viewPermission> </dataViewer> <timeSeriesDisplay enabled="true"> <title>My Time Series Display</title> </timeSeriesDisplay> <spatialDisplay enabled="true"> <title>My Spatial Display</title> </spatialDisplay> <systemMonitor enabled="true"> <title>My System Monitor</title> <viewPermission>Operator</viewPermission> </systemMonitor> <archiveDisplay enabled="true"> <title>My Archive Display</title> </archiveDisplay> </components> </webOperatorClient> |
Multiple Web OC Configurations
It is possible to specify multiple webOperatorClient.xml files by using a custom FEWS WebServices Configuration File. In this configuration file a custom webOperatorClient.xml can be configured. For example:
Code Block | ||||
---|---|---|---|---|
| ||||
<webOperatorClientConfiguration>
<configFile>MyCustomWebOperatorClient</configFile>
</webOperatorClientConfiguration> |