release version 1.11.0

This commit is contained in:
2025-07-10 23:47:05 +03:00
parent 5cb6857fa1
commit 8dd9cf9cf2
3082 changed files with 278464 additions and 1833 deletions

View File

@@ -0,0 +1,260 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
permission-soap
==========
Copyright (C) 2020 - 2025 EmDev LLC
==========
You may not use this file except in accordance with the License Terms of the Copyright
Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
rights to the Software and any copies are the property of the Copyright Holder. Unless
it is explicitly allowed the Copyright Holder, the User is prohibited from using the
Software for commercial purposes to provide services to third parties.
The Copyright Holder hereby declares that the Software is provided on an "AS IS".
Under no circumstances does the Copyright Holder guarantee or promise that the
Software provided by him will be suitable or not suitable for the specific purposes
of the User, that the Software will meet all commercial and personal subjective
expectations of the User, that the Software will work properly, without technical
errors, quickly and uninterruptedly.
Under no circumstances shall the Copyright Holder or its Affiliates is not liable
to the User for any direct or indirect losses of the User, his expenses or actual
damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
or damage to data, property, etc.
~~~~~~/licensing~~~~~~
-->
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xmlns:cxf="http://cxf.apache.org/blueprint/core"
xmlns:camelcxf="http://camel.apache.org/schema/blueprint/cxf"
xmlns:p="http://www.entaxy.ru/permission/"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd
">
<cm:property-placeholder persistent-id="ru.entaxy.esb.system.permission" update-strategy="reload">
<cm:default-properties>
<cm:property name="endpoint.address" value="/permission-management"/>
</cm:default-properties>
</cm:property-placeholder>
<reference id="permissionService"
interface="ru.entaxy.esb.system.core.permission.jpa.PermissionService"
timeout="30000"
availability="mandatory"/>
<reference id="serviceInterceptor"
interface="org.apache.cxf.phase.PhaseInterceptor"
filter="(type=service)"
timeout="30000"/>
<reference id="authInterceptor" interface="org.apache.cxf.phase.PhaseInterceptor"
filter="(type=authentication)"/>
<camelcxf:cxfEndpoint id="permission-endpoint"
address="${endpoint.address}"
endpointName="p:permission-serviceSOAP"
serviceName="p:permission-service"
wsdlURL="wsdl/permission-service.wsdl">
<camelcxf:properties>
<entry key="dataFormat" value="PAYLOAD"/>
<entry key="mtom-enabled" value="false"/>
</camelcxf:properties>
<camelcxf:inInterceptors>
<ref component-id="authInterceptor"/>
<ref component-id="serviceInterceptor"/>
</camelcxf:inInterceptors>
</camelcxf:cxfEndpoint>
<camelContext id="permission-context" xmlns="http://camel.apache.org/schema/blueprint">
<route id="permission-endpoint" streamCache="true">
<from uri="cxf:bean:permission-endpoint"/>
<log message="${body}" loggingLevel="INFO"/>
<toD uri="direct:${headers.operationName}"/>
</route>
<route id="check">
<from uri="direct:check"/>
<doTry>
<to uri="direct:preparePermissionCommon"/>
<to uri="bean:permissionService?method=existByAllParameters(${exchangeProperty.objectId}, ${exchangeProperty.objectType},
${exchangeProperty.subjectId}, ${exchangeProperty.subjectType}, ${exchangeProperty.action})"/>
<log message="\r\nRESPONSE ${body}\r\n" loggingLevel="DEBUG"/>
<setBody>
<simple>&lt;response xmlns="http://www.entaxy.ru/permission/"&gt;${body}&lt;/response&gt;</simple>
</setBody>
<doCatch>
<exception>java.lang.Exception</exception>
<log message="${exception.message}" loggingLevel="ERROR"/>
<log message="${exception.stacktrace}" loggingLevel="DEBUG"/>
<setBody>
<constant>&lt;response xmlns="http://www.entaxy.ru/permission/"&gt;false&lt;/response&gt;
</constant>
</setBody>
</doCatch>
</doTry>
</route>
<route id="get">
<from uri="direct:get"/>
<setProperty name="permissionId">
<xpath resultType="long">//p:permissionId</xpath>
</setProperty>
<to uri="bean:permissionService?method=get(${exchangeProperty.permissionId})"/>
<log message="\r\nGet permission ${body}\r\n" loggingLevel="DEBUG"/>
<to uri="direct:modelToHeaders"/>
<to uri="xslt:ru/entaxy/esb/system/core/permission/template/permission.xsl?failOnNullBody=false"/>
<removeHeaders pattern="model_*"/>
<log message="\r\nRESPONSE ${body}\r\n" loggingLevel="DEBUG"/>
</route>
<route id="getByAllParams">
<from uri="direct:getByAllParams"/>
<to uri="direct:preparePermissionCommon"/>
<to uri="bean:permissionService?method=getByAllParameters(${exchangeProperty.objectId}, ${exchangeProperty.objectType},
${exchangeProperty.subjectId}, ${exchangeProperty.subjectType}, ${exchangeProperty.action})"/>
<to uri="direct:modelToHeaders"/>
<to uri="xslt:ru/entaxy/esb/system/core/permission/template/permission.xsl?failOnNullBody=false"/>
<removeHeaders pattern="model_*"/>
<log message="\r\nRESPONSE ${body}\r\n" loggingLevel="DEBUG"/>
</route>
<route id="create">
<from uri="direct:create"/>
<to uri="direct:preparePermissionCommon"/>
<to uri="bean:permissionService?method=add(${exchangeProperty.objectId}, ${exchangeProperty.objectType},
${exchangeProperty.subjectId}, ${exchangeProperty.subjectType}, ${exchangeProperty.action})"/>
<to uri="direct:modelToHeaders"/>
<to uri="xslt:ru/entaxy/esb/system/core/permission/template/permission.xsl?failOnNullBody=false"/>
<removeHeaders pattern="model_*"/>
<log message="\r\nRESPONSE ${body}\r\n" loggingLevel="DEBUG"/>
</route>
<route id="update">
<from uri="direct:update"/>
<setProperty name="permissionId">
<xpath resultType="long">//p:permission/p:permissionId</xpath>
</setProperty>
<setProperty name="objectId">
<xpath resultType="long">//p:permission/p:objectId</xpath>
</setProperty>
<setProperty name="objectType">
<xpath resultType="String">//p:permission/p:objectType</xpath>
</setProperty>
<setProperty name="subjectId">
<xpath resultType="String">//p:permission/p:subjectId</xpath>
</setProperty>
<setProperty name="subjectType">
<xpath resultType="String">//p:permission/p:subjectType</xpath>
</setProperty>
<setProperty name="action">
<xpath resultType="String">//p:permission/p:action</xpath>
</setProperty>
<to uri="bean:permissionService?method=update(${exchangeProperty.permissionId}, ${exchangeProperty.objectId}, ${exchangeProperty.objectType},
${exchangeProperty.subjectId}, ${exchangeProperty.subjectType}, ${exchangeProperty.action})"/>
<to uri="direct:modelToHeaders"/>
<to uri="xslt:ru/entaxy/esb/system/core/permission/template/permission.xsl?failOnNullBody=false"/>
<removeHeaders pattern="model_*"/>
<log message="\r\nRESPONSE ${body}\r\n" loggingLevel="DEBUG"/>
</route>
<route id="delete">
<from uri="direct:delete"/>
<to uri="direct:preparePermissionCommon"/>
<to uri="bean:permissionService?method=remove(${exchangeProperty.objectId}, ${exchangeProperty.objectType},
${exchangeProperty.subjectId}, ${exchangeProperty.subjectType}, ${exchangeProperty.action})"/>
<setBody>
<simple>&lt;response xmlns="http://www.entaxy.ru/permission/"&gt;true&lt;/response&gt;</simple>
</setBody>
</route>
<route>
<from uri="direct:modelToProperties"/>
<setProperty name="permissionId">
<simple>${body.id}</simple>
</setProperty>
<setProperty name="objectId">
<simple>${body.objectId}</simple>
</setProperty>
<setProperty name="objectType">
<simple>${body.objectType}</simple>
</setProperty>
<setProperty name="subjectId">
<simple>${body.subjectId}</simple>
</setProperty>
<setProperty name="subjectType">
<simple>${body.subjectType}</simple>
</setProperty>
<setProperty name="action">
<simple>${body.action}</simple>
</setProperty>
</route>
<route>
<from uri="direct:modelToHeaders"/>
<setHeader name="model_permissionId">
<simple>${body.id}</simple>
</setHeader>
<setHeader name="model_objectId">
<simple>${body.objectId}</simple>
</setHeader>
<setHeader name="model_objectType">
<simple>${body.objectType}</simple>
</setHeader>
<setHeader name="model_subjectId">
<simple>${body.subjectId}</simple>
</setHeader>
<setHeader name="model_subjectType">
<simple>${body.subjectType}</simple>
</setHeader>
<setHeader name="model_action">
<simple>${body.action}</simple>
</setHeader>
</route>
<route>
<from uri="direct:preparePermissionCommon"/>
<setProperty name="objectId">
<xpath resultType="long">//p:permissionCommon/p:objectId</xpath>
</setProperty>
<setProperty name="objectType">
<xpath resultType="String">//p:permissionCommon/p:objectType</xpath>
</setProperty>
<setProperty name="subjectId">
<xpath resultType="String">//p:permissionCommon/p:subjectId</xpath>
</setProperty>
<setProperty name="subjectType">
<xpath resultType="String">//p:permissionCommon/p:subjectType</xpath>
</setProperty>
<setProperty name="action">
<xpath resultType="String">//p:permissionCommon/p:action</xpath>
</setProperty>
<log message="\r\nobjectId ${exchangeProperty.objectId}\r\n" loggingLevel="DEBUG"/>
<log message="\r\nobjectType ${exchangeProperty.objectType}\r\n" loggingLevel="DEBUG"/>
<log message="\r\nsubjectId ${exchangeProperty.subjectId}\r\n" loggingLevel="DEBUG"/>
<log message="\r\nsubjectType ${exchangeProperty.subjectType}\r\n" loggingLevel="DEBUG"/>
<log message="\r\naction ${exchangeProperty.action}\r\n" loggingLevel="DEBUG"/>
</route>
</camelContext>
</blueprint>

View File

@@ -0,0 +1,61 @@
<!--
~~~~~~licensing~~~~~~
permission-soap
==========
Copyright (C) 2020 - 2025 EmDev LLC
==========
You may not use this file except in accordance with the License Terms of the Copyright
Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
rights to the Software and any copies are the property of the Copyright Holder. Unless
it is explicitly allowed the Copyright Holder, the User is prohibited from using the
Software for commercial purposes to provide services to third parties.
The Copyright Holder hereby declares that the Software is provided on an "AS IS".
Under no circumstances does the Copyright Holder guarantee or promise that the
Software provided by him will be suitable or not suitable for the specific purposes
of the User, that the Software will meet all commercial and personal subjective
expectations of the User, that the Software will work properly, without technical
errors, quickly and uninterruptedly.
Under no circumstances shall the Copyright Holder or its Affiliates is not liable
to the User for any direct or indirect losses of the User, his expenses or actual
damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
or damage to data, property, etc.
~~~~~~/licensing~~~~~~
-->
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:tns="http://www.entaxy.ru/permission/"
>
<xsl:output omit-xml-declaration="yes" indent="yes"/>
<xsl:param name="model_permissionId"/>
<xsl:param name="model_objectId"/>
<xsl:param name="model_objectType"/>
<xsl:param name="model_subjectId"/>
<xsl:param name="model_subjectType"/>
<xsl:param name="model_action"/>
<xsl:template match="/">
<tns:permission>
<tns:permissionId>
<xsl:value-of select="$model_permissionId"/>
</tns:permissionId>
<tns:objectId>
<xsl:value-of select="$model_objectId"/>
</tns:objectId>
<tns:objectType>
<xsl:value-of select="$model_objectType"/>
</tns:objectType>
<tns:subjectId>
<xsl:value-of select="$model_subjectId"/>
</tns:subjectId>
<tns:subjectType>
<xsl:value-of select="$model_subjectType"/>
</tns:subjectType>
<tns:action>
<xsl:value-of select="$model_action"/>
</tns:action>
</tns:permission>
</xsl:template>
</xsl:stylesheet>

View File

@@ -0,0 +1,47 @@
[#--
~~~~~~licensing~~~~~~
permission-soap
==========
Copyright (C) 2020 - 2025 EmDev LLC
==========
You may not use this file except in accordance with the License Terms of
the Copyright
Holder located at: https://entaxy.ru/eula . All copyrights, all
intellectual property
rights to the Software and any copies are the property of the Copyright
Holder. Unless
it is explicitly allowed the Copyright Holder, the User is prohibited
from using the
Software for commercial purposes to provide services to third parties.
The Copyright Holder hereby declares that the Software is provided on an
"AS IS".
Under no circumstances does the Copyright Holder guarantee or promise
that the
Software provided by him will be suitable or not suitable for the
specific purposes
of the User, that the Software will meet all commercial and personal
subjective
expectations of the User, that the Software will work properly, without
technical
errors, quickly and uninterruptedly.
Under no circumstances shall the Copyright Holder or its Affiliates is
not liable
to the User for any direct or indirect losses of the User, his expenses
or actual
damage, including, downtime; loss of business; lost profit; lost
earnings; loss
or damage to data, property, etc.
~~~~~~/licensing~~~~~~
--]
<tns:permission xmlns:tns="http://www.entaxy.ru/permission/">
<tns:permissionId>${exchange.properties.permissionId}</tns:permissionId>
<tns:objectId>${exchange.properties.objectId}</tns:objectId>
<tns:objectType>${exchange.properties.objectType}</tns:objectType>
<tns:subjectId>${exchange.properties.subjectId}</tns:subjectId>
<tns:subjectType>${exchange.properties.subjectType}</tns:subjectType>
<tns:action>${exchange.properties.action}</tns:action>
</tns:permission>

View File

@@ -0,0 +1,185 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.entaxy.ru/permission/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
name="permission-service"
targetNamespace="http://www.entaxy.ru/permission/">
<wsdl:types>
<xsd:schema targetNamespace="http://www.entaxy.ru/permission/" elementFormDefault="qualified">
<xsd:element name="permissionCommon" type="tns:permissionCommonType"/>
<xsd:complexType name="permissionCommonType">
<xsd:sequence>
<xsd:element name="objectId" type="xsd:long"/>
<xsd:element name="objectType" type="xsd:string"/>
<xsd:element name="subjectId" type="xsd:string"/>
<xsd:element name="subjectType" type="xsd:string"/>
<xsd:element name="action" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="permissionId" type="xsd:long"/>
<xsd:element name="permissionList" type="tns:permissionListType"/>
<xsd:complexType name="permissionListType">
<xsd:sequence>
<xsd:element name="permission" type="tns:permissionType" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="permission" type="tns:permissionType"/>
<xsd:complexType name="permissionType">
<xsd:sequence>
<xsd:element name="permissionId" type="xsd:long"/>
<xsd:element name="objectId" type="xsd:long"/>
<xsd:element name="objectType" type="xsd:string"/>
<xsd:element name="subjectId" type="xsd:string"/>
<xsd:element name="subjectType" type="xsd:string"/>
<xsd:element name="action" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="response" type="xsd:boolean"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="checkRequest">
<wsdl:part name="request" element="tns:permissionCommon"/>
</wsdl:message>
<wsdl:message name="checkResponse">
<wsdl:part name="response" element="tns:response"/>
</wsdl:message>
<wsdl:message name="getRequest">
<wsdl:part name="request" element="tns:permissionId"/>
</wsdl:message>
<wsdl:message name="getResponse">
<wsdl:part name="response" element="tns:permission"/>
</wsdl:message>
<wsdl:message name="getByAllParamsRequest">
<wsdl:part name="request" element="tns:permissionCommon"/>
</wsdl:message>
<wsdl:message name="getByAllParamsResponse">
<wsdl:part name="response" element="tns:permission"/>
</wsdl:message>
<wsdl:message name="createRequest">
<wsdl:part name="request" element="tns:permissionCommon"/>
</wsdl:message>
<wsdl:message name="createResponse">
<wsdl:part name="response" element="tns:permission"/>
</wsdl:message>
<wsdl:message name="updateRequest">
<wsdl:part name="request" element="tns:permission"/>
</wsdl:message>
<wsdl:message name="updateResponse">
<wsdl:part name="response" element="tns:permission"/>
</wsdl:message>
<wsdl:message name="deleteRequest">
<wsdl:part name="request" element="tns:permissionCommon"/>
</wsdl:message>
<wsdl:message name="deleteResponse">
<wsdl:part name="response" element="tns:response"/>
</wsdl:message>
<wsdl:portType name="permission-service">
<wsdl:operation name="check">
<wsdl:input message="tns:checkRequest"/>
<wsdl:output message="tns:checkResponse"/>
</wsdl:operation>
<wsdl:operation name="get">
<wsdl:input message="tns:getRequest"/>
<wsdl:output message="tns:getResponse"/>
</wsdl:operation>
<wsdl:operation name="getByAllParams">
<wsdl:input message="tns:getByAllParamsRequest"/>
<wsdl:output message="tns:getByAllParamsResponse"/>
</wsdl:operation>
<wsdl:operation name="create">
<wsdl:input message="tns:createRequest"/>
<wsdl:output message="tns:createResponse"/>
</wsdl:operation>
<wsdl:operation name="update">
<wsdl:input message="tns:updateRequest"/>
<wsdl:output message="tns:updateResponse"/>
</wsdl:operation>
<wsdl:operation name="delete">
<wsdl:input message="tns:deleteRequest"/>
<wsdl:output message="tns:deleteResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="permission-serviceSOAP" type="tns:permission-service">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="check">
<soap:operation soapAction="http://www.entaxy.ru/permission/check"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="get">
<soap:operation soapAction="http://www.entaxy.ru/permission/get"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getByAllParams">
<soap:operation soapAction="http://www.entaxy.ru/permission/get-by-all-params"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="create">
<soap:operation soapAction="http://www.entaxy.ru/permission/create"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="update">
<soap:operation soapAction="http://www.entaxy.ru/permission/update"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="delete">
<soap:operation soapAction="http://www.entaxy.ru/permission/delete"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="permission-service">
<wsdl:port name="permission-serviceSOAP" binding="tns:permission-serviceSOAP">
<soap:address location="http://dev.esbHost.ru/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>