| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| 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. |
| --> |
| |
| <site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xmlns="http://ofbiz.apache.org/Site-Conf" xsi:schemaLocation="http://ofbiz.apache.org/Site-Conf http://ofbiz.apache.org/dtds/site-conf.xsd"> |
| <!-- The controller elements that are common to all OFBiz components |
| can be found in the following xml file. A component can override the |
| elements found in the common-controller.xml file. --> |
| <include location="component://common/webcommon/WEB-INF/common-controller.xml"/> |
| <include location="component://common/webcommon/WEB-INF/portal-controller.xml"/> |
| |
| <description>PriCat Demo</description> |
| |
| <!-- define --> |
| <request-map uri="main"> |
| <security https="true" auth="true"/> |
| <response name="success" type="view" value="main"/> |
| <response name="error" type="view" value="login" /> |
| </request-map> |
| |
| <request-map uri="countdownreport"> |
| <security https="true" auth="true"/> |
| <event type="java" path="org.apache.ofbiz.htmlreport.sample.SampleHtmlReport" invoke="checkButton" /> |
| <response name="success" type="view" value="countdownreport"/> |
| <response name="ok" type="view" value="main"/> |
| <response name="cancel" type="view" value="main"/> |
| </request-map> |
| |
| <request-map uri="countupreport"> |
| <security https="true" auth="true"/> |
| <event type="java" path="org.apache.ofbiz.htmlreport.sample.SampleHtmlReport" invoke="checkButton" /> |
| <response name="success" type="view" value="countupreport"/> |
| <response name="ok" type="view" value="main"/> |
| <response name="cancel" type="view" value="main"/> |
| </request-map> |
| |
| <request-map uri="SamplePricat"> |
| <security https="true" auth="true"/> |
| <response name="success" type="view" value="SamplePricat"/> |
| </request-map> |
| |
| <request-map uri="downloadExcelTemplate"> |
| <security https="true" auth="true"/> |
| <event type="java" path="org.apache.ofbiz.pricat.sample.SamplePricatEvents" invoke="downloadExcelTemplate"/> |
| <response name="success" type="none" /> |
| <response name="error" type="none" /> |
| </request-map> |
| |
| <request-map uri="pricatUpload"> |
| <security https="true" auth="true"/> |
| <event type="java" path="org.apache.ofbiz.pricat.PricatEvents" invoke="pricatUpload"/> |
| <response name="success" type="view" value="main"/> |
| <response name="error" type="view" value="main"/> |
| <response name="parse_pricat" type="request" value="parseSamplePricat"/> |
| <response name="download" type="none"/> |
| </request-map> |
| |
| <request-map uri="parseSamplePricat"> |
| <security https="true" auth="true"/> |
| <event type="java" path="org.apache.ofbiz.pricat.PricatParseExcelHtmlReport" invoke="checkButton" /> |
| <response name="success" type="view" value="parseSamplePricat"/> |
| <response name="ok" type="request" value="SamplePricat"/> |
| <response name="cancel" type="request" value="main"/> |
| </request-map> |
| |
| <view-map name="main" type="screen" page="component://pricat/widget/SampleScreens.xml#main"/> |
| <view-map name="countdownreport" type="screen" page="component://pricat/widget/SampleScreens.xml#countdownreport"/> |
| <view-map name="countupreport" type="screen" page="component://pricat/widget/SampleScreens.xml#countupreport"/> |
| <view-map name="SamplePricat" page="component://pricat/widget/SampleScreens.xml#SamplePricat" type="screen"/> |
| <view-map name="parseSamplePricat" page="component://pricat/widget/SampleScreens.xml#parseSamplePricat" type="screen"/> |
| </site-conf> |