Following best practice. Changed location="org/ofbiz/......... to location="component:// in the service location attribute. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755943 13f79535-47bb-0310-9956-ffa450edef68
49 lines
2.7 KiB
XML
49 lines
2.7 KiB
XML
<?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.
|
|
-->
|
|
|
|
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
|
|
|
|
<service name="storeGenericDimension" engine="java"
|
|
location="org.ofbiz.bi.util.DimensionServices" invoke="storeGenericDimension" auth="true">
|
|
<description>Generic service to load data into a dimension entity (olap entity).</description>
|
|
<attribute name="dimensionValue" type="GenericEntity" mode="IN" optional="false"/>
|
|
<attribute name="naturalKeyFields" type="List" mode="IN" optional="false"/> <!-- the names of the fields that compose the natural key of the dimension -->
|
|
<attribute name="updateMode" type="String" mode="IN" optional="false"/> <!-- TYPE1, TYPE2, TYPE3 -->
|
|
</service>
|
|
|
|
<service name="getDimensionIdFromNaturalKey" engine="java"
|
|
location="org.ofbiz.bi.util.DimensionServices" invoke="getDimensionIdFromNaturalKey" auth="true">
|
|
<description>Generic service to get the dimensionId for a natural key.</description>
|
|
<attribute name="dimensionEntityName" type="String" mode="IN" optional="false"/>
|
|
<attribute name="naturalKeyFields" type="Map" mode="IN" optional="false"/> <!-- the names/values pairs of the fields that compose the natural key of the dimension -->
|
|
<attribute name="dimensionId" type="String" mode="OUT" optional="true"/>
|
|
</service>
|
|
|
|
<!-- TODO: this should be moved outside of the bi component -->
|
|
<service name="quickInitDataWarehouse" auth="true" engine="simple"
|
|
location="component://bi/script/org/ofbiz/bi/DimensionServices.xml" invoke="quickInitDataWarehouse">
|
|
<description>Quickly initialize the dimensions (Currency, Date, Product) and facts (SalesInvoiceItem): useful to quickly initialize the datawarehouse.</description>
|
|
<attribute name="fromDate" type="Date" mode="IN" optional="false"/>
|
|
<attribute name="thruDate" type="Date" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
</services>
|