1. Add zxing-core-3.2.0.jar to framework/base/lib and .classpath. 2. Add services_qrcode.xml and QRCodeService.java in framework/common/. 3. Add qrcode request in common-controller.xml and QRCodeEvents.java under framework/common/. 4. Add qrcode.properties and QRCodeUiLabels.xml under framework/common/. 5. Add a barcode example page in specialpurpose/example, entry is on page: /example/control/EditExample?exampleId=EX01, the example can be seen on page: /example/control/ExampleReportPdfBarcode?exampleId=EX01 git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1696921 13f79535-47bb-0310-9956-ffa450edef68
43 lines
2.1 KiB
XML
43 lines
2.1 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">
|
|
<description>QRCode Services</description>
|
|
<vendor>OFBiz</vendor>
|
|
<version>1.0</version>
|
|
|
|
<service name="generateQRCodeImage" engine="java" require-new-transaction="true" max-retry="3"
|
|
auth="false" location="org.ofbiz.common.qrcode.QRCodeServices"
|
|
invoke="generateQRCodeImage">
|
|
<description>Generate a QRCode image according to </description>
|
|
<attribute name="message" type="String" mode="IN" optional="false"/>
|
|
<attribute name="format" type="String" mode="IN" optional="true"/>
|
|
<attribute name="height" type="Integer" mode="IN" optional="true"/>
|
|
<attribute name="width" type="Integer" mode="IN" optional="true"/>
|
|
<attribute name="encoding" type="String" mode="IN" optional="true"/>
|
|
<attribute name="logoImage" type="java.awt.image.BufferedImage" mode="IN" optional="true"/>
|
|
<attribute name="logoImageMaxWidth" type="Integer" mode="IN" optional="true"/>
|
|
<attribute name="logoImageMaxHeight" type="Integer" mode="IN" optional="true"/>
|
|
<attribute name="verifyOutput" type="Boolean" mode="IN" optional="true"/>
|
|
<attribute name="bufferedImage" type="java.awt.image.BufferedImage" mode="OUT" optional="true"/>
|
|
</service>
|
|
|
|
</services> |