ENTAXY-634 release version 1.9.0
This commit is contained in:
@ -0,0 +1,175 @@
|
||||
ЛИЦЕНЗИЯ ОГРАНИЧЕННОГО ПРИМЕНЕНИЯ
|
||||
|
||||
Настоящий документ устанавливает для Пользователя условия применения Базовой (некоммерческой)
|
||||
версии лицензии для пробного использования программного обеспечения ENTAXY, принадлежащего
|
||||
Правообладателю – Обществу с ограниченной ответственностью "ЕМДЕВ" (ОГРН 1057810026658, ИНН
|
||||
7813313860, юридический адрес: 197022, Россия, г. Санкт-Петербург, ул. Профессора Попова,
|
||||
д. 23, литера В, помещение 3Н), расположенной в сети Интернет по адресу
|
||||
https://www.emdev.ru/about (далее - Компания).
|
||||
|
||||
Используя или получая доступ к Программному обеспечению, или нажав «Я согласен с Условиями»
|
||||
(или аналогичную кнопку или флажок) после загрузки или установки Программного обеспечения,
|
||||
Пользователь выражает свое согласие на обязательность условий и ограничений, изложенных в
|
||||
настоящем документе, в противном случае, он должен не использовать или не получать доступ
|
||||
к Программному обеспечению.
|
||||
|
||||
1. ТЕРМИНЫ И ОПРЕДЕЛЕНИЯ
|
||||
|
||||
a) ПО – Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) в любой ее версии
|
||||
или редакции, исключительные права на которую принадлежат Правообладателю.
|
||||
b) Правообладатель (Компания) – ООО «ЕМДЕВ», ОГРН 1057810026658, ИНН 7813313860, исключительные
|
||||
права которого подтверждаются Свидетельством о государственной регистрации в Реестре программ
|
||||
для ЭВМ № 2021610848 от 19.01.2021 года.
|
||||
c) Пользователь – юридическое или физическое лицо, получившее через скачивание с сайта
|
||||
https://entaxy.ru или иным образом, дистрибутив ПО, пользующееся ПО.
|
||||
d) ИС – интеллектуальная собственность – закреплённое законом исключительное право, а также
|
||||
личные неимущественные права авторов произведений на результат интеллектуальной деятельности.
|
||||
e) Подписка – это коммерческое предложение Правообладателя, состоящее из Лицензии на использование
|
||||
ПО и доступа к технической поддержке программного обеспечения на срок Подписки. Подписка
|
||||
включает предоставление Пользователю неисключительного права использования ПО, в том числе
|
||||
получение обновлений функционала ПО и безопасности ПО, исправление ошибок ПО и получение
|
||||
патчей с обновлениями и исправлениями программного обеспечения. Подписка приобретается
|
||||
Пользователем на период времени, указанный в Сертификате. Количество подписок устанавливается
|
||||
для каждого Пользователя индивидуально в Сертификате.
|
||||
f) Сертификат – документ, выдаваемый Дистрибъютором или Авторизованным партнёром (Партнёром),
|
||||
подтверждающий факт приобретения физическим или юридическим лицом Подписки на программное
|
||||
обеспечение в ограниченном объёме и на определённый период времени.
|
||||
g) Лицензия (простая (неисключительная) – совокупность ограниченных прав использования ПО,
|
||||
предоставленных Пользователю согласно условиям Подписки.
|
||||
h) Библиотека – совокупность подпрограмм и объектов, используемых для разработки программного
|
||||
обеспечения.
|
||||
i) Исходный код – текст компьютерной программы на каком-либо языке программирования, состоящий
|
||||
из одного или нескольких файлов, который может быть прочтён человеком.
|
||||
j) Объектный код – файл (часть машинного кода) с промежуточным представлением отдельного модуля
|
||||
программы, полученный в результате обработки исходного кода, еще не связанный в полную программу.
|
||||
Это машинный код для одной конкретной библиотеки или модуля, который будет составлять готовый
|
||||
продукт.
|
||||
k) Некоммерческое использование – индивидуальное личное использование Пользователем программного
|
||||
обеспечения с целью обучения работе с Программным обеспечением, для оценки или демонстрации
|
||||
возможностей Программного обеспечения, при котором, Пользователем не извлекается коммерческая
|
||||
выгода и/или не идёт в доход денежное вознаграждение при использовании Программного обеспечения.
|
||||
|
||||
2. ДОПУСТИМЫЕ СПОСОБЫ ИСПОЛЬЗОВАНИЯ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ
|
||||
|
||||
2.1. Правообладатель предоставляет Пользователю ограниченное право использования Программного
|
||||
обеспечения на условиях простой (неисключительной) лицензии в объёме, ограниченном правом
|
||||
воспроизведения полной рабочей версии программного обеспечения, новых версий программного обеспечения
|
||||
в памяти оборудования и его запуска на оборудовании в соответствии со ст. 1280 ГК РФ.
|
||||
2.2. Право на использование Программного обеспечения, предоставляемое Пользователю, носит
|
||||
неисключительный характер.
|
||||
2.3. Пользователю предоставляется всемирная, неисключительная, не подлежащая сублицензированию,
|
||||
лицензия на ограниченное использование Программного обеспечения.
|
||||
2.4. Пользователь, имеющий Базовую (некоммерческую) версию лицензии для пробного использования
|
||||
имеет право приобрести Подписку на программное обеспечение. В этом случае Пользователь обязан
|
||||
обратиться в службу поддержки Правообладателя по адресу: https://entaxy.ru/ для изменения
|
||||
вида лицензии с Базовой бесплатной версии на Подписки.
|
||||
2.5. Срок использования скачанной Пользователем базовой (некоммерческой) версии лицензии для
|
||||
пробного использования программного обеспечения – не ограничен.
|
||||
2.6. Использование Пользователем настоящего программного обеспечения в целях разработки,
|
||||
модификации, обновления другого ПО, принадлежащего третьим лицам, а не Правообладателю,
|
||||
без разрешения Правообладателя не допускается.
|
||||
|
||||
3. АВТОРСКОЕ ПРАВО.
|
||||
|
||||
3.1. Все авторские права, все права интеллектуальной собственности на Программное обеспечение
|
||||
и любые его копии принадлежат Правообладателю.
|
||||
3.2. Все авторские права, все права интеллектуальной собственности в отношении любого контента,
|
||||
к которому можно получить доступ с помощью Программного обеспечения, является собственностью
|
||||
соответствующего владельца контента и защищается применимым законодательством об авторском
|
||||
праве или другими законами и договорами об интеллектуальной собственности.
|
||||
3.3. Условия использования Программного обеспечения.
|
||||
Лицензия, предоставленная Пользователю, действительна только в том случае, если Пользователь
|
||||
придерживается следующих условий:
|
||||
3.3.1. Принятие уведомлений об авторских правах. Пользователю запрещается удалять или изменять
|
||||
какие-либо уведомления об авторских правах или лицензиях, которые появляются при использовании
|
||||
Программного обеспечения или на нем.
|
||||
3.3.2. Модификация. Пользователю запрещается модифицировать, изменять, декомпилировать,
|
||||
расшифровывать, дизассемблировать, переводить или реверсировать, перепроектировать
|
||||
Программное обеспечение.
|
||||
3.3.3. Распространение. Пользователю запрещается сублицензировать, передавать право использования
|
||||
ПО или иным образом распространять или предоставлять Программное обеспечение любой третьей стороне.
|
||||
3.3.4. SaaS. За исключением случаев, когда это разрешено Правообладателем, Пользователю запрещено
|
||||
использовать Программное обеспечение в коммерческих целях для оказания услуг третьим лицам.
|
||||
|
||||
4. ОТВЕТСТВЕННОСТЬ ПРАВООБЛАДАТЕЛЯ ПРИ НАРУШЕНИИ ПОЛЬЗОВАТЕЛЕМ ПРАВ «ИС»
|
||||
|
||||
4.1. Правообладатель не несет никаких обязательств в отношении каких-либо претензий к Пользователю
|
||||
на предмет нарушения последним прав Интеллектуальной собственности, возникших в связи с
|
||||
использованием Пользователем:
|
||||
4.1.1. Любых компонентов программного обеспечения с открытым исходным кодом, включенных в
|
||||
Программное обеспечение;
|
||||
4.1.2. Любого нарушения правил использования Программного обеспечения, установленного условиями
|
||||
настоящего соглашения;
|
||||
4.1.3. Любого использования Программного обеспечения в сочетании с другими ПО, оборудованием,
|
||||
или данными, не предоставленными Пользователю Правообладателем;
|
||||
4.1.4. Любого изменения Программного обеспечения любым третьим лицом, а не Правообладателем.
|
||||
|
||||
|
||||
5. НАСТОЯЩИМ ПРАВООБЛАДАТЕЛЬ ЗАЯВЛЯЕТ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ ПОЛЬЗОВАТЕЛЮ
|
||||
ПО ПРИНЦИПУ «AS IS» - «КАК ЕСТЬ». НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ НЕ ГАРАНТИРУЕТ
|
||||
И НЕ ОБЕЩАЕТ, ЧТО ПРЕДОСТАВЛЕННОЕ ИМ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ПОДХОДИТЬ ИЛИ НЕ ПОДХОДИТЬ
|
||||
ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ОТВЕЧАТЬ ВСЕМ КОММЕРЧЕСКИМ
|
||||
И ЛИЧНЫМ СУБЪЕКТИВНЫМ ОЖИДАНИЯМ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ РАБОТАТЬ
|
||||
ИСПРАВНО, БЕЗ ТЕХНИЧЕСКИХ ОШИБОК, БЫСТРО И БЕСПЕРЕБОЙНО.
|
||||
|
||||
6. ОГРАНИЧЕНИЕ ОТВЕТСТВЕННОСТИ.
|
||||
НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ ИЛИ ЕГО АФФИЛЛИРОВАННЫЕ ЛИЦА НЕ НЕСУТ ПЕРЕД ПОЛЬЗОВАТЕЛЕМ
|
||||
ОТВЕТСТВЕННОСТИ ЗА ЛЮБЫЕ ПРЯМЫЕ ИЛИ КОСВЕННЫЕ УБЫТКИ ПОЛЬЗОВАТЕЛЯ, ЕГО РАСХОДЫ ИЛИ РЕАЛЬНЫЙ УЩЕРБ,
|
||||
ВКЛЮЧАЯ, ПОМИМО ПРОЧЕГО, ПРОСТОИ; УТРАТУ БИЗНЕСА; УПУЩЕННУЮ ВЫГОДУ; НЕДОПОЛУЧЕННУЮ ПРИБЫЛЬ;
|
||||
ПОТЕРЮ ИЛИ ПОВРЕЖДЕНИЕ ДАННЫХ, ИМУЩЕСТВА И ИНОЕ.
|
||||
ОГРАНИЧЕНИЯ ПРИМЕНЯЮТСЯ НЕЗАВИСИМО ОТ ОСНОВАНИЯ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ; В ТОМ ЧИСЛЕ ВСЛЕДСТВИЕ
|
||||
ДЕЙСТВИЯ ИЛИ БЕЗДЕЙСТВИЯ, НЕБРЕЖНОСТИ, УМЫСЛА, ПРЯМОГО ИЛИ КОСВЕННОГО; НЕОСТОРОЖНОСТИ; ЗАБЛУЖДЕНИЯ;
|
||||
КЛЕВЕТЫ; НАРУШЕНИЯ КОНФИДЕНЦИАЛЬНОСТИ ИЛИ ПРАВА ИНТЕЛЛЕКТУАЛЬНОЙ СОБСТВЕННОСТИ; ИЛИ ЛЮБОЕ ДРУГОЕ
|
||||
ОСНОВАНИЕ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ.
|
||||
|
||||
7. ОБЯЗАННОСТЬ ПОЛЬЗОВАТЕЛЯ:
|
||||
Не осуществлять самостоятельно и (или) с привлечением третьих лиц нижеследующие действия
|
||||
(включая, но не ограничиваясь) по:
|
||||
-дизассемблированию и (или) декомпилированию (преобразованию объектного кода в исходный код)
|
||||
Программного обеспечения;
|
||||
-модификации Программного обеспечения, в том числе вносить изменения в объектный код, исходный
|
||||
код Программного обеспечения, за исключением тех изменений, которые вносятся средствами,
|
||||
включёнными в Программное обеспечение и описанными непосредственно в документации к нему;
|
||||
-созданию условий для использования Программного обеспечения лицами, не имеющими прав на
|
||||
использование данного Программного обеспечения, включая (но не ограничиваясь) вмешательство
|
||||
третьих лиц в функционирование Программного обеспечения, предоставление третьим лицам доступа
|
||||
к исследованию и (или) замене настроек Программного обеспечения, включая его первичную установку;
|
||||
-распространению Программного обеспечения в целом или в части (включая приложенную к нему документацию).
|
||||
|
||||
8. БИБЛИОТЕКА ПО. ИСПОЛЬЗУЕМЫЕ ПРОГРАММНЫЕ СРЕДСТВА.
|
||||
|
||||
8.1. Настоящим, Правообладатель заверяет, что Библиотека программного обеспечения состоит из
|
||||
лицензионных продуктов, используемых на законных основаниях, а
|
||||
именно https://entaxy.ru/libs/licenses/root-aggregated.deps.
|
||||
8.2. Любые программные средства, применяемые Пользователем при работе с ПО, должны быть
|
||||
совместимы с библиотекой ПО, указанной в п.8.1. настоящего соглашения.
|
||||
8.3. Перечень внешних модулей ПО, указанный в п.8.1 настоящего соглашения, может изменяться
|
||||
Правообладателем в одностороннем порядке, в зависимости от выпуска релизов программного обеспечения,
|
||||
содержащих все изменения и дополнения программного обеспечения.
|
||||
|
||||
9. ВНЕСЕНИЕ ИЗМЕНЕНИЙ В ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ.
|
||||
|
||||
9.1. Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) является свободно распространяемым
|
||||
программным обеспечением.
|
||||
9.2. Пользователь имеет право вносить изменения в исходный код программного обеспечения исключительно
|
||||
с согласия Правообладателя в порядке предложения изменений/правок/дополнений через механизм
|
||||
«Pull Requests» в открытом репозитории Правообладателя по адресу: https://git.entaxy.ru/entaxy/entaxy-public.
|
||||
9.3. Любые изменения программного обеспечения, осуществляемые Пользователем без соблюдения условий
|
||||
пункта 9.2. настоящего документа, являются нарушением авторских и смежных прав Правообладателя,
|
||||
прав интеллектуальной собственности Правообладателя и влекут применение к Пользователю мер
|
||||
ответственности в соответствии с условиями настоящей Лицензии, а также применимого законодательства
|
||||
Российской Федерации.
|
||||
|
||||
10. ЗАКЛЮЧИТЕЛЬНЫЕ ПОЛОЖЕНИЯ.
|
||||
|
||||
10.1. В случае нарушения Пользователем любого из условий настоящей Лицензии, Правообладатель имеет
|
||||
право взыскать с Пользователя любые причинённые таким нарушением убытки, реальный ущерб,
|
||||
недополученную прибыль, упущенную выгоду, а также в случае нарушения Пользователем условий
|
||||
пункта 9.2 настоящего соглашения, в том числе, взыскать с Пользователя штраф в размере
|
||||
2 000 000 (Два миллиона) рублей за каждый установленный случай несанкционированного изменения
|
||||
исходного или объектного кода Программного обеспечения «Энтакси» (Entaxy).
|
||||
10.2. В рамках исполнения Пользователем обязательств по настоящей Лицензии, применимое
|
||||
законодательство – Российской Федерации.
|
||||
10.3. Если какое-либо положение настоящей Лицензии будет признано судом недействительным,
|
||||
остальные положения будут продолжать своё действие, а Пользователь будет обязан продолжать
|
||||
исполнять свои обязанности в соответствии с этими положениями.
|
@ -0,0 +1,17 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.core</groupId>
|
||||
<artifactId>objects-implementations</artifactId>
|
||||
<version>1.9.0</version>
|
||||
</parent>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.core.objects-implementations</groupId>
|
||||
<artifactId>service-implementation</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<name>ENTAXY :: PLATFORM :: CORE :: OBJECTS IMPLEMENTATIONS :: SERVICE</name>
|
||||
<description>ENTAXY :: PLATFORM :: CORE :: OBJECTS IMPLEMENTATIONS :: SERVICE</description>
|
||||
<modules>
|
||||
<module>service-producing</module>
|
||||
<module>service-runtime</module>
|
||||
</modules>
|
||||
</project>
|
@ -0,0 +1,175 @@
|
||||
ЛИЦЕНЗИЯ ОГРАНИЧЕННОГО ПРИМЕНЕНИЯ
|
||||
|
||||
Настоящий документ устанавливает для Пользователя условия применения Базовой (некоммерческой)
|
||||
версии лицензии для пробного использования программного обеспечения ENTAXY, принадлежащего
|
||||
Правообладателю – Обществу с ограниченной ответственностью "ЕМДЕВ" (ОГРН 1057810026658, ИНН
|
||||
7813313860, юридический адрес: 197022, Россия, г. Санкт-Петербург, ул. Профессора Попова,
|
||||
д. 23, литера В, помещение 3Н), расположенной в сети Интернет по адресу
|
||||
https://www.emdev.ru/about (далее - Компания).
|
||||
|
||||
Используя или получая доступ к Программному обеспечению, или нажав «Я согласен с Условиями»
|
||||
(или аналогичную кнопку или флажок) после загрузки или установки Программного обеспечения,
|
||||
Пользователь выражает свое согласие на обязательность условий и ограничений, изложенных в
|
||||
настоящем документе, в противном случае, он должен не использовать или не получать доступ
|
||||
к Программному обеспечению.
|
||||
|
||||
1. ТЕРМИНЫ И ОПРЕДЕЛЕНИЯ
|
||||
|
||||
a) ПО – Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) в любой ее версии
|
||||
или редакции, исключительные права на которую принадлежат Правообладателю.
|
||||
b) Правообладатель (Компания) – ООО «ЕМДЕВ», ОГРН 1057810026658, ИНН 7813313860, исключительные
|
||||
права которого подтверждаются Свидетельством о государственной регистрации в Реестре программ
|
||||
для ЭВМ № 2021610848 от 19.01.2021 года.
|
||||
c) Пользователь – юридическое или физическое лицо, получившее через скачивание с сайта
|
||||
https://entaxy.ru или иным образом, дистрибутив ПО, пользующееся ПО.
|
||||
d) ИС – интеллектуальная собственность – закреплённое законом исключительное право, а также
|
||||
личные неимущественные права авторов произведений на результат интеллектуальной деятельности.
|
||||
e) Подписка – это коммерческое предложение Правообладателя, состоящее из Лицензии на использование
|
||||
ПО и доступа к технической поддержке программного обеспечения на срок Подписки. Подписка
|
||||
включает предоставление Пользователю неисключительного права использования ПО, в том числе
|
||||
получение обновлений функционала ПО и безопасности ПО, исправление ошибок ПО и получение
|
||||
патчей с обновлениями и исправлениями программного обеспечения. Подписка приобретается
|
||||
Пользователем на период времени, указанный в Сертификате. Количество подписок устанавливается
|
||||
для каждого Пользователя индивидуально в Сертификате.
|
||||
f) Сертификат – документ, выдаваемый Дистрибъютором или Авторизованным партнёром (Партнёром),
|
||||
подтверждающий факт приобретения физическим или юридическим лицом Подписки на программное
|
||||
обеспечение в ограниченном объёме и на определённый период времени.
|
||||
g) Лицензия (простая (неисключительная) – совокупность ограниченных прав использования ПО,
|
||||
предоставленных Пользователю согласно условиям Подписки.
|
||||
h) Библиотека – совокупность подпрограмм и объектов, используемых для разработки программного
|
||||
обеспечения.
|
||||
i) Исходный код – текст компьютерной программы на каком-либо языке программирования, состоящий
|
||||
из одного или нескольких файлов, который может быть прочтён человеком.
|
||||
j) Объектный код – файл (часть машинного кода) с промежуточным представлением отдельного модуля
|
||||
программы, полученный в результате обработки исходного кода, еще не связанный в полную программу.
|
||||
Это машинный код для одной конкретной библиотеки или модуля, который будет составлять готовый
|
||||
продукт.
|
||||
k) Некоммерческое использование – индивидуальное личное использование Пользователем программного
|
||||
обеспечения с целью обучения работе с Программным обеспечением, для оценки или демонстрации
|
||||
возможностей Программного обеспечения, при котором, Пользователем не извлекается коммерческая
|
||||
выгода и/или не идёт в доход денежное вознаграждение при использовании Программного обеспечения.
|
||||
|
||||
2. ДОПУСТИМЫЕ СПОСОБЫ ИСПОЛЬЗОВАНИЯ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ
|
||||
|
||||
2.1. Правообладатель предоставляет Пользователю ограниченное право использования Программного
|
||||
обеспечения на условиях простой (неисключительной) лицензии в объёме, ограниченном правом
|
||||
воспроизведения полной рабочей версии программного обеспечения, новых версий программного обеспечения
|
||||
в памяти оборудования и его запуска на оборудовании в соответствии со ст. 1280 ГК РФ.
|
||||
2.2. Право на использование Программного обеспечения, предоставляемое Пользователю, носит
|
||||
неисключительный характер.
|
||||
2.3. Пользователю предоставляется всемирная, неисключительная, не подлежащая сублицензированию,
|
||||
лицензия на ограниченное использование Программного обеспечения.
|
||||
2.4. Пользователь, имеющий Базовую (некоммерческую) версию лицензии для пробного использования
|
||||
имеет право приобрести Подписку на программное обеспечение. В этом случае Пользователь обязан
|
||||
обратиться в службу поддержки Правообладателя по адресу: https://entaxy.ru/ для изменения
|
||||
вида лицензии с Базовой бесплатной версии на Подписки.
|
||||
2.5. Срок использования скачанной Пользователем базовой (некоммерческой) версии лицензии для
|
||||
пробного использования программного обеспечения – не ограничен.
|
||||
2.6. Использование Пользователем настоящего программного обеспечения в целях разработки,
|
||||
модификации, обновления другого ПО, принадлежащего третьим лицам, а не Правообладателю,
|
||||
без разрешения Правообладателя не допускается.
|
||||
|
||||
3. АВТОРСКОЕ ПРАВО.
|
||||
|
||||
3.1. Все авторские права, все права интеллектуальной собственности на Программное обеспечение
|
||||
и любые его копии принадлежат Правообладателю.
|
||||
3.2. Все авторские права, все права интеллектуальной собственности в отношении любого контента,
|
||||
к которому можно получить доступ с помощью Программного обеспечения, является собственностью
|
||||
соответствующего владельца контента и защищается применимым законодательством об авторском
|
||||
праве или другими законами и договорами об интеллектуальной собственности.
|
||||
3.3. Условия использования Программного обеспечения.
|
||||
Лицензия, предоставленная Пользователю, действительна только в том случае, если Пользователь
|
||||
придерживается следующих условий:
|
||||
3.3.1. Принятие уведомлений об авторских правах. Пользователю запрещается удалять или изменять
|
||||
какие-либо уведомления об авторских правах или лицензиях, которые появляются при использовании
|
||||
Программного обеспечения или на нем.
|
||||
3.3.2. Модификация. Пользователю запрещается модифицировать, изменять, декомпилировать,
|
||||
расшифровывать, дизассемблировать, переводить или реверсировать, перепроектировать
|
||||
Программное обеспечение.
|
||||
3.3.3. Распространение. Пользователю запрещается сублицензировать, передавать право использования
|
||||
ПО или иным образом распространять или предоставлять Программное обеспечение любой третьей стороне.
|
||||
3.3.4. SaaS. За исключением случаев, когда это разрешено Правообладателем, Пользователю запрещено
|
||||
использовать Программное обеспечение в коммерческих целях для оказания услуг третьим лицам.
|
||||
|
||||
4. ОТВЕТСТВЕННОСТЬ ПРАВООБЛАДАТЕЛЯ ПРИ НАРУШЕНИИ ПОЛЬЗОВАТЕЛЕМ ПРАВ «ИС»
|
||||
|
||||
4.1. Правообладатель не несет никаких обязательств в отношении каких-либо претензий к Пользователю
|
||||
на предмет нарушения последним прав Интеллектуальной собственности, возникших в связи с
|
||||
использованием Пользователем:
|
||||
4.1.1. Любых компонентов программного обеспечения с открытым исходным кодом, включенных в
|
||||
Программное обеспечение;
|
||||
4.1.2. Любого нарушения правил использования Программного обеспечения, установленного условиями
|
||||
настоящего соглашения;
|
||||
4.1.3. Любого использования Программного обеспечения в сочетании с другими ПО, оборудованием,
|
||||
или данными, не предоставленными Пользователю Правообладателем;
|
||||
4.1.4. Любого изменения Программного обеспечения любым третьим лицом, а не Правообладателем.
|
||||
|
||||
|
||||
5. НАСТОЯЩИМ ПРАВООБЛАДАТЕЛЬ ЗАЯВЛЯЕТ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ ПОЛЬЗОВАТЕЛЮ
|
||||
ПО ПРИНЦИПУ «AS IS» - «КАК ЕСТЬ». НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ НЕ ГАРАНТИРУЕТ
|
||||
И НЕ ОБЕЩАЕТ, ЧТО ПРЕДОСТАВЛЕННОЕ ИМ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ПОДХОДИТЬ ИЛИ НЕ ПОДХОДИТЬ
|
||||
ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ОТВЕЧАТЬ ВСЕМ КОММЕРЧЕСКИМ
|
||||
И ЛИЧНЫМ СУБЪЕКТИВНЫМ ОЖИДАНИЯМ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ РАБОТАТЬ
|
||||
ИСПРАВНО, БЕЗ ТЕХНИЧЕСКИХ ОШИБОК, БЫСТРО И БЕСПЕРЕБОЙНО.
|
||||
|
||||
6. ОГРАНИЧЕНИЕ ОТВЕТСТВЕННОСТИ.
|
||||
НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ ИЛИ ЕГО АФФИЛЛИРОВАННЫЕ ЛИЦА НЕ НЕСУТ ПЕРЕД ПОЛЬЗОВАТЕЛЕМ
|
||||
ОТВЕТСТВЕННОСТИ ЗА ЛЮБЫЕ ПРЯМЫЕ ИЛИ КОСВЕННЫЕ УБЫТКИ ПОЛЬЗОВАТЕЛЯ, ЕГО РАСХОДЫ ИЛИ РЕАЛЬНЫЙ УЩЕРБ,
|
||||
ВКЛЮЧАЯ, ПОМИМО ПРОЧЕГО, ПРОСТОИ; УТРАТУ БИЗНЕСА; УПУЩЕННУЮ ВЫГОДУ; НЕДОПОЛУЧЕННУЮ ПРИБЫЛЬ;
|
||||
ПОТЕРЮ ИЛИ ПОВРЕЖДЕНИЕ ДАННЫХ, ИМУЩЕСТВА И ИНОЕ.
|
||||
ОГРАНИЧЕНИЯ ПРИМЕНЯЮТСЯ НЕЗАВИСИМО ОТ ОСНОВАНИЯ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ; В ТОМ ЧИСЛЕ ВСЛЕДСТВИЕ
|
||||
ДЕЙСТВИЯ ИЛИ БЕЗДЕЙСТВИЯ, НЕБРЕЖНОСТИ, УМЫСЛА, ПРЯМОГО ИЛИ КОСВЕННОГО; НЕОСТОРОЖНОСТИ; ЗАБЛУЖДЕНИЯ;
|
||||
КЛЕВЕТЫ; НАРУШЕНИЯ КОНФИДЕНЦИАЛЬНОСТИ ИЛИ ПРАВА ИНТЕЛЛЕКТУАЛЬНОЙ СОБСТВЕННОСТИ; ИЛИ ЛЮБОЕ ДРУГОЕ
|
||||
ОСНОВАНИЕ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ.
|
||||
|
||||
7. ОБЯЗАННОСТЬ ПОЛЬЗОВАТЕЛЯ:
|
||||
Не осуществлять самостоятельно и (или) с привлечением третьих лиц нижеследующие действия
|
||||
(включая, но не ограничиваясь) по:
|
||||
-дизассемблированию и (или) декомпилированию (преобразованию объектного кода в исходный код)
|
||||
Программного обеспечения;
|
||||
-модификации Программного обеспечения, в том числе вносить изменения в объектный код, исходный
|
||||
код Программного обеспечения, за исключением тех изменений, которые вносятся средствами,
|
||||
включёнными в Программное обеспечение и описанными непосредственно в документации к нему;
|
||||
-созданию условий для использования Программного обеспечения лицами, не имеющими прав на
|
||||
использование данного Программного обеспечения, включая (но не ограничиваясь) вмешательство
|
||||
третьих лиц в функционирование Программного обеспечения, предоставление третьим лицам доступа
|
||||
к исследованию и (или) замене настроек Программного обеспечения, включая его первичную установку;
|
||||
-распространению Программного обеспечения в целом или в части (включая приложенную к нему документацию).
|
||||
|
||||
8. БИБЛИОТЕКА ПО. ИСПОЛЬЗУЕМЫЕ ПРОГРАММНЫЕ СРЕДСТВА.
|
||||
|
||||
8.1. Настоящим, Правообладатель заверяет, что Библиотека программного обеспечения состоит из
|
||||
лицензионных продуктов, используемых на законных основаниях, а
|
||||
именно https://entaxy.ru/libs/licenses/root-aggregated.deps.
|
||||
8.2. Любые программные средства, применяемые Пользователем при работе с ПО, должны быть
|
||||
совместимы с библиотекой ПО, указанной в п.8.1. настоящего соглашения.
|
||||
8.3. Перечень внешних модулей ПО, указанный в п.8.1 настоящего соглашения, может изменяться
|
||||
Правообладателем в одностороннем порядке, в зависимости от выпуска релизов программного обеспечения,
|
||||
содержащих все изменения и дополнения программного обеспечения.
|
||||
|
||||
9. ВНЕСЕНИЕ ИЗМЕНЕНИЙ В ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ.
|
||||
|
||||
9.1. Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) является свободно распространяемым
|
||||
программным обеспечением.
|
||||
9.2. Пользователь имеет право вносить изменения в исходный код программного обеспечения исключительно
|
||||
с согласия Правообладателя в порядке предложения изменений/правок/дополнений через механизм
|
||||
«Pull Requests» в открытом репозитории Правообладателя по адресу: https://git.entaxy.ru/entaxy/entaxy-public.
|
||||
9.3. Любые изменения программного обеспечения, осуществляемые Пользователем без соблюдения условий
|
||||
пункта 9.2. настоящего документа, являются нарушением авторских и смежных прав Правообладателя,
|
||||
прав интеллектуальной собственности Правообладателя и влекут применение к Пользователю мер
|
||||
ответственности в соответствии с условиями настоящей Лицензии, а также применимого законодательства
|
||||
Российской Федерации.
|
||||
|
||||
10. ЗАКЛЮЧИТЕЛЬНЫЕ ПОЛОЖЕНИЯ.
|
||||
|
||||
10.1. В случае нарушения Пользователем любого из условий настоящей Лицензии, Правообладатель имеет
|
||||
право взыскать с Пользователя любые причинённые таким нарушением убытки, реальный ущерб,
|
||||
недополученную прибыль, упущенную выгоду, а также в случае нарушения Пользователем условий
|
||||
пункта 9.2 настоящего соглашения, в том числе, взыскать с Пользователя штраф в размере
|
||||
2 000 000 (Два миллиона) рублей за каждый установленный случай несанкционированного изменения
|
||||
исходного или объектного кода Программного обеспечения «Энтакси» (Entaxy).
|
||||
10.2. В рамках исполнения Пользователем обязательств по настоящей Лицензии, применимое
|
||||
законодательство – Российской Федерации.
|
||||
10.3. Если какое-либо положение настоящей Лицензии будет признано судом недействительным,
|
||||
остальные положения будут продолжать своё действие, а Пользователь будет обязан продолжать
|
||||
исполнять свои обязанности в соответствии с этими положениями.
|
@ -0,0 +1,55 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.core.objects-implementations</groupId>
|
||||
<artifactId>service-implementation</artifactId>
|
||||
<version>1.9.0</version>
|
||||
</parent>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.core.objects-implementations.service-implementation</groupId>
|
||||
<artifactId>service-producing</artifactId>
|
||||
<packaging>bundle</packaging>
|
||||
<name>ENTAXY :: PLATFORM :: CORE :: OBJECTS IMPLEMENTATIONS :: SERVICE :: PRODUCING</name>
|
||||
<description>ENTAXY :: PLATFORM :: CORE :: OBJECTS IMPLEMENTATIONS :: SERVICE :: PRODUCING</description>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>
|
||||
ru.entaxy.esb.platform.runtime.core.object-producing
|
||||
</groupId>
|
||||
<artifactId>object-producer-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>
|
||||
ru.entaxy.esb.platform.runtime.core.object-producing
|
||||
</groupId>
|
||||
<artifactId>object-producer-core</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>
|
||||
ru.entaxy.esb.platform.runtime.base.objects-base
|
||||
</groupId>
|
||||
<artifactId>object-factory</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Entaxy-Factory-Provider>true</Entaxy-Factory-Provider>
|
||||
<Entaxy-Template-Provider>true</Entaxy-Template-Provider>
|
||||
<Entaxy-Resource-Provider>true</Entaxy-Resource-Provider>
|
||||
</instructions>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
@ -0,0 +1,70 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* connector-producing
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2023 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~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.objects.service.producing;
|
||||
|
||||
import org.osgi.service.component.annotations.CollectionType;
|
||||
import org.osgi.service.component.annotations.Component;
|
||||
import org.osgi.service.component.annotations.Reference;
|
||||
import org.osgi.service.component.annotations.ReferenceCardinality;
|
||||
import org.osgi.service.component.annotations.ReferencePolicy;
|
||||
import org.osgi.service.component.annotations.ReferencePolicyOption;
|
||||
|
||||
import ru.entaxy.platform.base.objects.factory.EntaxyFactory;
|
||||
import ru.entaxy.platform.core.producer.api.EntaxyProducer;
|
||||
import ru.entaxy.platform.core.producer.impl.CommonObjectProducer;
|
||||
import ru.entaxy.platform.core.producer.impl.EntaxyProducerInfo;
|
||||
import ru.entaxy.platform.core.producer.wrapper.AbstractFactoryWrapper;
|
||||
import ru.entaxy.platform.core.producer.wrapper.DefaultFactoryWrapper;
|
||||
|
||||
@Component(service = {EntaxyProducer.class}, immediate = true)
|
||||
@EntaxyProducerInfo(supportedTypes = {ServiceProducer.OBJECT_TYPES_SERVICE, ServiceProducer.OBJECT_TYPES_SERVICE_SUBTYPES})
|
||||
public class ServiceProducer extends CommonObjectProducer implements EntaxyProducer {
|
||||
|
||||
public static final String OBJECT_TYPES_SERVICE = "entaxy.runtime.service";
|
||||
public static final String OBJECT_TYPES_SERVICE_RESOURCES = "entaxy.runtime.service.support";
|
||||
public static final String OBJECT_TYPES_SERVICE_SUBTYPES = "entaxy.runtime.service.*";
|
||||
|
||||
@Reference(bind = "addFactory", unbind = "removeFactory", cardinality = ReferenceCardinality.MULTIPLE
|
||||
, collectionType = CollectionType.SERVICE, policy = ReferencePolicy.DYNAMIC, policyOption = ReferencePolicyOption.GREEDY)
|
||||
public void addFactory(EntaxyFactory factory) {
|
||||
doAddFactory(factory);
|
||||
}
|
||||
|
||||
// WE MUST DECLARE IT for @Reference annotation processor
|
||||
@Override
|
||||
public void removeFactory(EntaxyFactory factory) {
|
||||
super.removeFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected AbstractFactoryWrapper doAddFactory(EntaxyFactory factory) {
|
||||
AbstractFactoryWrapper wrapper = super.doAddFactory(factory, DefaultFactoryWrapper.class);
|
||||
if (wrapper != null)
|
||||
wrapper.setGenerationProcessor(this);
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
{
|
||||
"factory": {
|
||||
"id": "abstract-service",
|
||||
"type": "entaxy.runtime.service",
|
||||
"description": "",
|
||||
"isAbstract": true,
|
||||
"parent": "base-object",
|
||||
"label": "",
|
||||
"category": ""
|
||||
},
|
||||
"entaxy.runtime.service": {
|
||||
"serviceType": "REST"
|
||||
},
|
||||
"fields": {
|
||||
},
|
||||
"outputs": {}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
{
|
||||
"factory": {
|
||||
"id": "abstract-service-rest-connector-in",
|
||||
"type": "entaxy.runtime.connector",
|
||||
"description": "Factory abstract-service-rest-connector-in of entaxy.runtime.connector",
|
||||
"parent": "abstract-connector-in",
|
||||
"isAbstract": true
|
||||
},
|
||||
"entaxy.runtime.connector": {
|
||||
"exclusiveMode": "NON_EXCLUSIVE_ONLY"
|
||||
},
|
||||
"fields": {},
|
||||
"outputs": {
|
||||
"init": {
|
||||
"isDefault": true,
|
||||
"config": {
|
||||
"configurable": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
{
|
||||
"factory": {
|
||||
"parent": "abstract-service",
|
||||
"description": "",
|
||||
"id": "abstract-service-rest",
|
||||
"label": "service,rest",
|
||||
"type": "entaxy.runtime.service",
|
||||
"category": "",
|
||||
"isAbstract": true
|
||||
},
|
||||
"entaxy.runtime.service": {
|
||||
"serviceType": "REST"
|
||||
},
|
||||
"fields": {
|
||||
"objectId": {
|
||||
"displayName": "Service Id"
|
||||
},
|
||||
"address": {
|
||||
"displayName": "Address",
|
||||
"type": "String",
|
||||
"required": true,
|
||||
"group": "main",
|
||||
"defaultValue": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "${objectId}"
|
||||
}
|
||||
},
|
||||
"@TYPEINFO": {
|
||||
"validation": {
|
||||
"doFix": true,
|
||||
"fixRules": [
|
||||
{
|
||||
"forbid": {
|
||||
"symbols": "/",
|
||||
"start": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"##publish": {
|
||||
"type": "Map",
|
||||
"required": true,
|
||||
"isHidden": true,
|
||||
"configurable": false,
|
||||
"defaultValue": {
|
||||
"name": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${objectId}",
|
||||
"lazy": true
|
||||
}
|
||||
},
|
||||
"factory": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${factoryId}",
|
||||
"lazy": false
|
||||
}
|
||||
},
|
||||
"label": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#FACTORY#.factory.label}",
|
||||
"lazy": false
|
||||
}
|
||||
},
|
||||
"scope": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${scope}",
|
||||
"allowObjects": false,
|
||||
"lazy": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"outputs": {
|
||||
"init": {
|
||||
"isDefault": true,
|
||||
"fields": {
|
||||
"address": {},
|
||||
"##publish": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,149 @@
|
||||
{
|
||||
"factory": {
|
||||
"id": "openapi-based-rest-service-protected",
|
||||
"displayName": "SERVICE :: REST :: OPENAPI :: PROTECTED",
|
||||
"type": "entaxy.runtime.service",
|
||||
"description": "",
|
||||
"isAbstract": false,
|
||||
"_parent": "openapi-based-rest-service",
|
||||
"parent": "openapi-based-rest-service-public",
|
||||
"label": "service,rest,openapi",
|
||||
"category": ""
|
||||
},
|
||||
"entaxy.runtime.service": {},
|
||||
"fields": {
|
||||
"operationRouter": {
|
||||
"defaultValue": {
|
||||
"@RESOURCE": {
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties._serviceMetadata.serviceResourcesRoot}/operationRouterProtected.xml"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@TYPEINFO": {
|
||||
"location": "${serviceResourcesRoot}/operationRouterProtected.xml"
|
||||
}
|
||||
},
|
||||
"enableAuthorization": {
|
||||
"isHidden": true,
|
||||
"defaultValue": true
|
||||
},
|
||||
"connectorInFactory": {
|
||||
"type": "factory",
|
||||
"required": true,
|
||||
"isHidden": true,
|
||||
"_isRef": true,
|
||||
"_isRefByValueOnly": true,
|
||||
"@RESOURCE": {
|
||||
"endType": "String",
|
||||
"provider": "service-resources",
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties._serviceMetadata.serviceResourcesRoot}/${#OWNER#.objectId}/${#OWNER#.objectId}-connector-in.factory",
|
||||
"lazy": false
|
||||
}
|
||||
},
|
||||
"service": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties._serviceMetadata}",
|
||||
"resultType": "map",
|
||||
"blacklistContent": ["@RESOURCE_META"],
|
||||
"lazy": false
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
"defaultValue": {
|
||||
"type": "entaxy.runtime.service",
|
||||
"factoryId": "#OWNER#",
|
||||
"outputType": "connectorInFactory",
|
||||
"scope": "public",
|
||||
"properties": {
|
||||
"service": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER_OF_TYPE:entaxy.runtime.service#.properties._serviceMetadata}",
|
||||
"resultType": "map",
|
||||
"blacklistContent": ["@RESOURCE_META"],
|
||||
"lazy": false
|
||||
}
|
||||
},
|
||||
"serviceId": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER_OF_TYPE:entaxy.runtime.service#.objectId}",
|
||||
"resultType": "String",
|
||||
"lazy": false
|
||||
}
|
||||
},
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "${#OWNER_OF_TYPE:entaxy.runtime.service#.properties._serviceMetadata.serviceResourcesRoot}/operationRouterConnector.xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"refConfig": {
|
||||
"isRefByValueOnly": true
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
"##headers": {
|
||||
"type": "List",
|
||||
"required": true,
|
||||
"isHidden": true,
|
||||
"defaultValue": [
|
||||
{
|
||||
"name": "Entaxy-Dynamic-Factory-Provider",
|
||||
"type": "boolean",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"name": "Entaxy-Dynamic-Factory-Url",
|
||||
"type": "List",
|
||||
"value": [
|
||||
{"@CALCULATED": {
|
||||
"expression": "entaxy-resource://service-resources/${properties._serviceMetadata.serviceResourcesRoot}/${objectId}/${objectId}-connector-in.factory",
|
||||
"lazy": false,
|
||||
"resultType": "String"
|
||||
}}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"outputs": {
|
||||
"init": {
|
||||
"fields": {
|
||||
"@IMPORT": [
|
||||
{
|
||||
"sourceFactoryId": "service-components",
|
||||
"location": "outputs.specificProtectedServiceComponents.fields",
|
||||
"prefix": ""
|
||||
}
|
||||
],
|
||||
"connectorInFactory": {},
|
||||
"##headers": {}
|
||||
}
|
||||
},
|
||||
"connectorInFactory": {
|
||||
"fields": {
|
||||
"service": {},
|
||||
"serviceId": {}
|
||||
}
|
||||
},
|
||||
"specificProtectedComponents": {
|
||||
"scopes": ["private"],
|
||||
"config": {
|
||||
"configurable": false,
|
||||
"@SKIP_PUBLISH": {}
|
||||
},
|
||||
"fields": {
|
||||
"serviceId": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
{
|
||||
"factory": {
|
||||
"id": "openapi-based-rest-service-public",
|
||||
"displayName": "SERVICE :: REST :: OPENAPI :: PUBLIC",
|
||||
"type": "entaxy.runtime.service",
|
||||
"description": "",
|
||||
"isAbstract": false,
|
||||
"parent": "openapi-based-rest-service",
|
||||
"label": "service,rest,openapi",
|
||||
"category": ""
|
||||
},
|
||||
"entaxy.runtime.service": {},
|
||||
"fields": {
|
||||
"operationRouter": {
|
||||
"defaultValue": {
|
||||
"@RESOURCE": {
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties._serviceMetadata.serviceResourcesRoot}/operationRouterPublic.xml"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@TYPEINFO": {
|
||||
"location": "${serviceResourcesRoot}/operationRouterPublic.xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"outputs": {
|
||||
}
|
||||
}
|
@ -0,0 +1,211 @@
|
||||
{
|
||||
"factory": {
|
||||
"id": "openapi-based-rest-service",
|
||||
"displayName": "SERVICE :: REST :: OPENAPI :: ABSTRACT",
|
||||
"type": "entaxy.runtime.service",
|
||||
"description": "",
|
||||
"isAbstract": true,
|
||||
"parent": "abstract-service-rest",
|
||||
"label": "service,rest,openapi",
|
||||
"category": ""
|
||||
},
|
||||
"entaxy.runtime.service": {},
|
||||
"fields": {
|
||||
"serviceTitle": {
|
||||
"displayName": "Title",
|
||||
"type": "String",
|
||||
"group": "main",
|
||||
"required": false,
|
||||
"@TYPEINFO": {
|
||||
"type": "String",
|
||||
"source": {
|
||||
"property": "schemaUrl",
|
||||
"sourceType": "resource",
|
||||
"path": "#metadata#.openapi.info.title",
|
||||
"type": "property"
|
||||
},
|
||||
"dependsOn": [
|
||||
"schemaUrl"
|
||||
]
|
||||
}
|
||||
},
|
||||
"enableAuthorization": {
|
||||
"displayName": "Enable Authorization",
|
||||
"type": "boolean",
|
||||
"required": true,
|
||||
"group": "main",
|
||||
"defaultValue": true
|
||||
},
|
||||
"operationRouter": {
|
||||
"displayName": "Operation Router",
|
||||
"type": "xml:route",
|
||||
"required": true,
|
||||
"group": "main",
|
||||
"@RESOURCE": {
|
||||
"_provider": "entaxy-file-internal",
|
||||
"endType": "String",
|
||||
"format": "base64",
|
||||
"preprocess": [
|
||||
{
|
||||
"processor": "xslt",
|
||||
"source": "entaxy-file-internal:routes-common/service-commons.xslt",
|
||||
"parameters": {
|
||||
"serviceId": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.objectId}",
|
||||
"lazy": false
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"processor": "xslt",
|
||||
"source": "entaxy-file-internal:routes-common/rest-operation-router.xslt",
|
||||
"parameters": {
|
||||
"serviceId": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.objectId}",
|
||||
"lazy": false
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"processor": "xslt",
|
||||
"source": "entaxy-file-internal:routes-common/common-components.xslt",
|
||||
"parameters": {
|
||||
"serviceId": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.objectId}",
|
||||
"lazy": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"defaultValue": {
|
||||
"@RESOURCE": {
|
||||
"provider": "service-resources",
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "${#OWNER#.properties._serviceMetadata.serviceResourcesRoot}/operationRouter.xml"
|
||||
}
|
||||
},
|
||||
"endType": "String",
|
||||
"format": "base64"
|
||||
}
|
||||
},
|
||||
"@TYPEINFO": {
|
||||
"type": "resource",
|
||||
"location": "${serviceResourcesRoot}/operationRouter.xml",
|
||||
"serviceResourcesRoot": {
|
||||
"property": "schemaUrl",
|
||||
"sourceType": "resource",
|
||||
"path": "#metadata#.openapi.serviceResourcesRoot",
|
||||
"type": "property"
|
||||
},
|
||||
"dependsOn": [
|
||||
"schemaUrl"
|
||||
]
|
||||
},
|
||||
"config": {
|
||||
"scope": "public"
|
||||
}
|
||||
},
|
||||
"_serviceMetadata": {
|
||||
"type": "Map",
|
||||
"required": true,
|
||||
"isHidden": true,
|
||||
"defaultValue": {
|
||||
"@RESOURCE_META": {
|
||||
"url": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "${properties.schemaUrl}"
|
||||
}
|
||||
},
|
||||
"path": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "openapi"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@IMPORT": [
|
||||
{
|
||||
"sourceFactoryId": "service-components",
|
||||
"location": "outputs.schemaResourceBasedService.fields",
|
||||
"prefix": ""
|
||||
}
|
||||
],
|
||||
"_parentRuntimeResources": {
|
||||
"type": "Map",
|
||||
"required": true,
|
||||
"isHidden": true,
|
||||
"defaultValue": {
|
||||
"@RESOURCE_META": {
|
||||
"url": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "${properties.schemaUrl}"
|
||||
}
|
||||
},
|
||||
"path": "resource"
|
||||
}
|
||||
}
|
||||
},
|
||||
"_publishRuntimeResources": {
|
||||
"type": "list",
|
||||
"required": true,
|
||||
"isHidden": true,
|
||||
"defaultValue": {
|
||||
"@INHERIT": {
|
||||
"resources": "append"
|
||||
},
|
||||
"resources": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "${properties._parentRuntimeResources.generatedResources}",
|
||||
"resultType": "list_or_single",
|
||||
"targetPath": "$.properties.##publish.resources",
|
||||
"mergeToTarget": true,
|
||||
"removeResolved": true,
|
||||
"process": {
|
||||
"filter": "*;runtime,*;RUNTIME"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
"outputs": {
|
||||
"init": {
|
||||
"isDefault": true,
|
||||
"generator": "",
|
||||
"config": {},
|
||||
"fields": {
|
||||
"serviceTitle": {},
|
||||
"enableAuthorization": {},
|
||||
"operationRouter": {},
|
||||
"_serviceMetadata": {},
|
||||
"_parentRuntimeResources": {},
|
||||
"_publishRuntimeResources": {},
|
||||
"schemaUrl": {
|
||||
"displayName": "OpenApi schema",
|
||||
"group": "main",
|
||||
"@TYPEINFO": {
|
||||
"filter": ["*.yaml", "*.json"]
|
||||
}
|
||||
},
|
||||
"displayServiceSchema": {
|
||||
"group": "main"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
{
|
||||
"factory": {
|
||||
"id": "service-resources-openapi",
|
||||
"type": "entaxy.runtime.service.support",
|
||||
"description": "Factory service-resources-openapi of entaxy.runtime.service.support",
|
||||
"parent": "service-resources-abstract"
|
||||
},
|
||||
"entaxy.runtime.service.support": {},
|
||||
"fields": {},
|
||||
"outputs": {}
|
||||
}
|
@ -0,0 +1,115 @@
|
||||
{
|
||||
"factory": {
|
||||
"parent": "abstract-service",
|
||||
"description": "",
|
||||
"id": "service-components",
|
||||
"label": "service,rest",
|
||||
"type": "entaxy.runtime.service.component",
|
||||
"category": "",
|
||||
"isAbstract": true
|
||||
},
|
||||
"entaxy.runtime.service.component": {
|
||||
},
|
||||
"fields": {
|
||||
},
|
||||
"outputs": {
|
||||
"init": {
|
||||
"isDefault": true,
|
||||
"fields": {
|
||||
}
|
||||
},
|
||||
"schemaBasedService":{
|
||||
"fields": {
|
||||
"schemaUrl": {
|
||||
"displayName": "Schema URL",
|
||||
"type": "Url",
|
||||
"group": "schema",
|
||||
"required": true,
|
||||
"@TYPEINFO": {
|
||||
"resourceProvider": "schemas",
|
||||
"filter": "*.yaml",
|
||||
"target": "resource"
|
||||
}
|
||||
},
|
||||
"displayServiceSchema": {
|
||||
"displayName": "Public Service Schema",
|
||||
"type": "Boolean",
|
||||
"group": "schema",
|
||||
"required": true,
|
||||
"defaultValue": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemaResourceBasedService": {
|
||||
"fields": {
|
||||
"@IMPORT": [
|
||||
{
|
||||
"sourceFactoryId": "#",
|
||||
"location": "outputs.schemaBasedService.fields",
|
||||
"prefix": ""
|
||||
}
|
||||
],
|
||||
"schemaUrl": {
|
||||
"@TYPEINFO": {
|
||||
"resourceProvider": "schemas",
|
||||
"filter": "*.schema",
|
||||
"target": "resource"
|
||||
}
|
||||
},
|
||||
"##publish": {
|
||||
"defaultValue": {
|
||||
"@INHERIT": {
|
||||
"resources": "append"
|
||||
},
|
||||
"resources":[
|
||||
{
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "${properties.schemaUrl};runtime"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"specificProtectedServiceComponents":{
|
||||
"fields": {
|
||||
"connectorDispatchingBeans": {
|
||||
"type": "entaxy.runtime.service.component",
|
||||
"isRef": true,
|
||||
"required": true,
|
||||
"isHidden": true,
|
||||
"isRefByValueOnly": true,
|
||||
"@INTERNAL": true,
|
||||
"defaultValue": {
|
||||
"factoryId": "service-components",
|
||||
"type": "entaxy.runtime.service.component",
|
||||
"outputType": "connectorDispatchingBeans",
|
||||
"scope": "private",
|
||||
"properties": {
|
||||
"serviceId": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "${#OWNER#.objectId}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"connectorDispatchingBeans": {
|
||||
"scopes": ["private"],
|
||||
"fields": {
|
||||
"serviceId": {
|
||||
"type": "String"
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"configurable": false,
|
||||
"@SKIP_PUBLISH": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,189 @@
|
||||
{
|
||||
"factory": {
|
||||
"id": "service-resources-abstract",
|
||||
"type": "entaxy.runtime.service.support",
|
||||
"description": "Factory service-resources-soap of entaxy.runtime.service.support"
|
||||
},
|
||||
"entaxy.runtime.service.support": {},
|
||||
"fields": {
|
||||
"operationRouterFieldTemplate": {
|
||||
"type": "xml:route",
|
||||
"required": true,
|
||||
"_isRef": true,
|
||||
"_isRefByValueOnly": true,
|
||||
"@RESOURCE": {
|
||||
"endType": "String",
|
||||
"provider": "service-resources",
|
||||
"scope": "design",
|
||||
"##meta": {
|
||||
"resource": {
|
||||
"generated": true,
|
||||
"parentResource": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties.parentResource}",
|
||||
"resultType": "string",
|
||||
"lazy": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"service": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties.service}",
|
||||
"resultType": "map",
|
||||
"lazy": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties.service.serviceResourcesRoot}/operationRouterSuffix.xml",
|
||||
"lazy": false
|
||||
}
|
||||
},
|
||||
"service": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties.service}",
|
||||
"resultType": "map",
|
||||
"lazy": false
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
"defaultValue": {
|
||||
"type": "entaxy.runtime.service.support",
|
||||
"factoryId": "#OWNER#",
|
||||
"outputType": "operationRouterSuffix",
|
||||
"scope": "public",
|
||||
"properties": {
|
||||
"service": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties.service}",
|
||||
"resultType": "map",
|
||||
"lazy": false
|
||||
}
|
||||
},
|
||||
"parentResource": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties.parentResource}",
|
||||
"resultType": "string",
|
||||
"lazy": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"refConfig": {
|
||||
"isRefByValueOnly": true
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
"service": {
|
||||
"required": true,
|
||||
"type": "Map"
|
||||
},
|
||||
"operationRouterPublic": {
|
||||
"@IMPORT": [
|
||||
{
|
||||
"sourceFactoryId": "#",
|
||||
"location": "fields.operationRouterFieldTemplate",
|
||||
"prefix": ""
|
||||
}
|
||||
],
|
||||
"@RESOURCE": {
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties.service.serviceResourcesRoot}/operationRouterPublic.xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"defaultValue": {
|
||||
"outputType": "operationRouterPublic"
|
||||
}
|
||||
},
|
||||
"operationRouterProtected": {
|
||||
"@IMPORT": [
|
||||
{
|
||||
"sourceFactoryId": "#",
|
||||
"location": "fields.operationRouterFieldTemplate",
|
||||
"prefix": ""
|
||||
}
|
||||
],
|
||||
"@RESOURCE": {
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties.service.serviceResourcesRoot}/operationRouterProtected.xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"defaultValue": {
|
||||
"outputType": "operationRouterProtected"
|
||||
}
|
||||
},
|
||||
"operationRouterConnector": {
|
||||
"@IMPORT": [
|
||||
{
|
||||
"sourceFactoryId": "#",
|
||||
"location": "fields.operationRouterFieldTemplate",
|
||||
"prefix": ""
|
||||
}
|
||||
],
|
||||
"@RESOURCE": {
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties.service.serviceResourcesRoot}/operationRouterConnector.xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"defaultValue": {
|
||||
"outputType": "operationRouterConnector"
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
"outputs": {
|
||||
"init": {
|
||||
"isDefault": true,
|
||||
"fields": {
|
||||
"service": {},
|
||||
"parentResource": {},
|
||||
"operationRouterPublic": {},
|
||||
"operationRouterProtected": {},
|
||||
"operationRouterConnector": {}
|
||||
},
|
||||
"config": {
|
||||
"configurable": false
|
||||
}
|
||||
},
|
||||
"operationRouterPublic": {
|
||||
"isDefault": false,
|
||||
"fields": {
|
||||
"service": {},
|
||||
"parentResource": {}
|
||||
},
|
||||
"config": {
|
||||
"configurable": false
|
||||
}
|
||||
},
|
||||
"operationRouterProtected": {
|
||||
"isDefault": false,
|
||||
"fields": {
|
||||
"service": {},
|
||||
"parentResource": {}
|
||||
},
|
||||
"config": {
|
||||
"configurable": false
|
||||
}
|
||||
},
|
||||
"operationRouterConnector": {
|
||||
"isDefault": false,
|
||||
"fields": {
|
||||
"service": {},
|
||||
"parentResource": {}
|
||||
},
|
||||
"config": {
|
||||
"configurable": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
{
|
||||
"factory": {
|
||||
"id": "abstract-service-soap-connector-in",
|
||||
"type": "entaxy.runtime.connector",
|
||||
"description": "Factory abstract-service-soap-connector-in of entaxy.runtime.connector",
|
||||
"parent": "abstract-connector-in",
|
||||
"isAbstract": true
|
||||
},
|
||||
"entaxy.runtime.connector": {
|
||||
"exclusiveMode": "NON_EXCLUSIVE_ONLY"
|
||||
},
|
||||
"fields": {},
|
||||
"outputs": {
|
||||
"init": {
|
||||
"isDefault": true,
|
||||
"config": {
|
||||
"configurable": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
{
|
||||
"factory": {
|
||||
"parent": "abstract-service",
|
||||
"description": "",
|
||||
"id": "abstract-service-soap",
|
||||
"label": "service,soap",
|
||||
"type": "entaxy.runtime.service",
|
||||
"category": "",
|
||||
"isAbstract": true
|
||||
},
|
||||
"entaxy.runtime.service": {
|
||||
"serviceType": "SOAP"
|
||||
},
|
||||
"fields": {
|
||||
"objectId": {
|
||||
"displayName": "Service Id"
|
||||
},
|
||||
"address": {
|
||||
"displayName": "Address",
|
||||
"type": "String",
|
||||
"required": true,
|
||||
"group": "main",
|
||||
"defaultValue": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "${objectId}"
|
||||
}
|
||||
},
|
||||
"@TYPEINFO": {
|
||||
"validation": {
|
||||
"doFix": true,
|
||||
"fixRules": [
|
||||
{
|
||||
"forbid": {
|
||||
"symbols": "/",
|
||||
"start": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"##publish": {
|
||||
"type": "Map",
|
||||
"required": true,
|
||||
"isHidden": true,
|
||||
"configurable": false,
|
||||
"defaultValue": {
|
||||
"name": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${objectId}",
|
||||
"lazy": true
|
||||
}
|
||||
},
|
||||
"factory": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${factoryId}",
|
||||
"lazy": false
|
||||
}
|
||||
},
|
||||
"label": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#FACTORY#.factory.label}",
|
||||
"lazy": false
|
||||
}
|
||||
},
|
||||
"scope": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${scope}",
|
||||
"allowObjects": false,
|
||||
"lazy": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"outputs": {
|
||||
"init": {
|
||||
"isDefault": true,
|
||||
"fields": {
|
||||
"address": {},
|
||||
"##publish": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
{
|
||||
"factory": {
|
||||
"id": "service-resources-soap",
|
||||
"type": "entaxy.runtime.service.support",
|
||||
"description": "Factory service-resources-soap of entaxy.runtime.service.support",
|
||||
"parent": "service-resources-abstract"
|
||||
},
|
||||
"entaxy.runtime.service.support": {},
|
||||
"fields": {
|
||||
"service": {
|
||||
"required": true,
|
||||
"type": "Map"
|
||||
},
|
||||
"operationRouterPublic": {
|
||||
"@RESOURCE": {
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties.service.serviceResourcesRoot}/${#OWNER#.properties.service.port.portName}/operationRouter.xml"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"operationRouterProtected": {
|
||||
"@RESOURCE": {
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties.service.serviceResourcesRoot}/${#OWNER#.properties.service.port.portName}/operationRouterProtected.xml"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"operationRouterConnector": {
|
||||
"@RESOURCE": {
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties.service.serviceResourcesRoot}/${#OWNER#.properties.service.port.portName}/operationRouterConnector.xml"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
"outputs": {}
|
||||
}
|
@ -0,0 +1,140 @@
|
||||
{
|
||||
"factory": {
|
||||
"id": "wsdl-based-soap-service-protected",
|
||||
"displayName": "SERVICE :: SOAP :: WSDL :: PROTECTED",
|
||||
"type": "entaxy.runtime.service",
|
||||
"description": "Protected WSDL-based SOAP service",
|
||||
"isAbstract": false,
|
||||
"parent": "wsdl-based-soap-service-public",
|
||||
"label": "service,soap",
|
||||
"category": ""
|
||||
},
|
||||
"entaxy.runtime.service": {},
|
||||
"fields": {
|
||||
"operationRouter": {
|
||||
"defaultValue": {
|
||||
"@RESOURCE": {
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "${#OWNER#.properties._serviceMetadata.serviceResourcesRoot}/${#OWNER#.properties.port}/operationRouterProtected.xml"
|
||||
}
|
||||
} }
|
||||
},
|
||||
"@TYPEINFO": {
|
||||
"location": "${serviceResourcesRoot}/${port}/operationRouterProtected.xml"
|
||||
}
|
||||
},
|
||||
"enableAuthorization": {
|
||||
"isHidden": true,
|
||||
"defaultValue": true
|
||||
},
|
||||
"connectorInFactory": {
|
||||
"type": "factory",
|
||||
"required": true,
|
||||
"isHidden": true,
|
||||
"_isRef": true,
|
||||
"_isRefByValueOnly": true,
|
||||
"@RESOURCE": {
|
||||
"endType": "String",
|
||||
"provider": "service-resources",
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties._serviceMetadata.serviceResourcesRoot}/${#OWNER#.objectId}/${#OWNER#.objectId}-connector-in.factory",
|
||||
"lazy": false
|
||||
}
|
||||
},
|
||||
"service": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties._serviceMetadata}",
|
||||
"resultType": "map",
|
||||
"blacklistContent": ["@RESOURCE_META"],
|
||||
"lazy": false
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
"defaultValue": {
|
||||
"type": "entaxy.runtime.service",
|
||||
"factoryId": "#OWNER#",
|
||||
"outputType": "connectorInFactory",
|
||||
"scope": "public",
|
||||
"properties": {
|
||||
"service": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER_OF_TYPE:entaxy.runtime.service#.properties._serviceMetadata}",
|
||||
"resultType": "map",
|
||||
"blacklistContent": ["@RESOURCE_META"],
|
||||
"lazy": false
|
||||
}
|
||||
},
|
||||
"serviceId": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER_OF_TYPE:entaxy.runtime.service#.objectId}",
|
||||
"resultType": "String",
|
||||
"lazy": false
|
||||
}
|
||||
},
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "${#OWNER_OF_TYPE:entaxy.runtime.service#.properties._serviceMetadata.serviceResourcesRoot}/${#OWNER_OF_TYPE:entaxy.runtime.service#.properties.port}/operationRouterConnector.xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"refConfig": {
|
||||
"isRefByValueOnly": true
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
"##headers": {
|
||||
"type": "List",
|
||||
"required": true,
|
||||
"isHidden": true,
|
||||
"defaultValue": [
|
||||
{
|
||||
"name": "Entaxy-Dynamic-Factory-Provider",
|
||||
"type": "boolean",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"name": "Entaxy-Dynamic-Factory-Url",
|
||||
"type": "List",
|
||||
"value": [
|
||||
{"@CALCULATED": {
|
||||
"expression": "entaxy-resource://service-resources/${properties._serviceMetadata.serviceResourcesRoot}/${objectId}/${objectId}-connector-in.factory",
|
||||
"lazy": false,
|
||||
"resultType": "String"
|
||||
}}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"outputs": {
|
||||
"init": {
|
||||
"isDefault": true,
|
||||
"generator": "",
|
||||
"config": {},
|
||||
"fields": {
|
||||
"@IMPORT": [
|
||||
{
|
||||
"sourceFactoryId": "service-components",
|
||||
"location": "outputs.specificProtectedServiceComponents.fields",
|
||||
"prefix": ""
|
||||
}
|
||||
],
|
||||
"connectorInFactory": {},
|
||||
"##headers": {}
|
||||
}
|
||||
},
|
||||
"connectorInFactory": {
|
||||
"fields": {
|
||||
"service": {},
|
||||
"serviceId": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
{
|
||||
"factory": {
|
||||
"id": "wsdl-based-soap-service-public",
|
||||
"displayName": "SERVICE :: SOAP :: WSDL :: PUBLIC",
|
||||
"type": "entaxy.runtime.service",
|
||||
"description": "",
|
||||
"isAbstract": false,
|
||||
"parent": "wsdl-based-soap-service",
|
||||
"label": "service,soap",
|
||||
"category": ""
|
||||
},
|
||||
"entaxy.runtime.service": {},
|
||||
"fields": {
|
||||
"operationRouter": {
|
||||
"defaultValue": {
|
||||
"@RESOURCE": {
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "${#OWNER#.properties._serviceMetadata.serviceResourcesRoot}/${#OWNER#.properties.port}/operationRouterPublic.xml"
|
||||
}
|
||||
} }
|
||||
},
|
||||
"@TYPEINFO": {
|
||||
"location": "${serviceResourcesRoot}/${port}/operationRouter.xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"outputs": {
|
||||
"init": {
|
||||
"isDefault": true,
|
||||
"generator": "",
|
||||
"config": {},
|
||||
"fields": {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,238 @@
|
||||
{
|
||||
"factory": {
|
||||
"id": "wsdl-based-soap-service",
|
||||
"type": "entaxy.runtime.service",
|
||||
"description": "",
|
||||
"isAbstract": true,
|
||||
"parent": "abstract-service-soap",
|
||||
"label": "service,soap",
|
||||
"category": ""
|
||||
},
|
||||
"entaxy.runtime.service": {},
|
||||
"fields": {
|
||||
"serviceFullName": {
|
||||
"displayName": "Service Full Name",
|
||||
"type": "String",
|
||||
"group": "main",
|
||||
"required": true,
|
||||
"@TYPEINFO": {
|
||||
"type": "list",
|
||||
"source": {
|
||||
"property": "schemaUrl",
|
||||
"sourceType": "resource",
|
||||
"path": "#metadata#.wsdl.services",
|
||||
"type": "property"
|
||||
},
|
||||
"dependsOn": ["schemaUrl"]
|
||||
}
|
||||
},
|
||||
"port": {
|
||||
"displayName": "Port",
|
||||
"type": "String",
|
||||
"group": "main",
|
||||
"required": true,
|
||||
"@TYPEINFO": {
|
||||
"type": "list",
|
||||
"source": {
|
||||
"property": "schemaUrl",
|
||||
"sourceType": "resource",
|
||||
"path": "#metadata#.wsdl.${serviceFullName}.ports",
|
||||
"type": "property"
|
||||
},
|
||||
"dependsOn": ["schemaUrl", "serviceFullName"]
|
||||
}
|
||||
},
|
||||
"enableAuthorization": {
|
||||
"displayName": "Enable Authorization",
|
||||
"type": "boolean",
|
||||
"required": true,
|
||||
"group": "main",
|
||||
"defaultValue": true
|
||||
},
|
||||
"dataFormat": {
|
||||
"displayName": "Data Format",
|
||||
"type": "String",
|
||||
"required": true,
|
||||
"group": "main",
|
||||
"@TYPEINFO": {
|
||||
"type": "enum",
|
||||
"values": [
|
||||
"PAYLOAD",
|
||||
"RAW",
|
||||
"MESSAGE",
|
||||
"CXF_MESSAGE",
|
||||
"POJO"
|
||||
]
|
||||
},
|
||||
"defaultValue": "PAYLOAD"
|
||||
},
|
||||
"mtomEnabled": {
|
||||
"displayName": "MTOM Enabled",
|
||||
"type": "Boolean",
|
||||
"required": true,
|
||||
"group": "main",
|
||||
"defaultValue": false
|
||||
},
|
||||
"schemaValidationEnabled": {
|
||||
"displayName": "Schema Validation Enabled",
|
||||
"type": "Boolean",
|
||||
"required": true,
|
||||
"group": "main",
|
||||
"defaultValue": false
|
||||
},
|
||||
"_serviceMetadata": {
|
||||
"type": "Map",
|
||||
"required": true,
|
||||
"isHidden": true,
|
||||
"defaultValue": {
|
||||
"@RESOURCE_META": {
|
||||
"url": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "${properties.schemaUrl}"
|
||||
}
|
||||
},
|
||||
"path": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "wsdl.\u0027${properties.serviceFullName}\u0027"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"serviceName": {
|
||||
"type": "String",
|
||||
"group": "main",
|
||||
"required": true,
|
||||
"isHidden": true,
|
||||
"defaultValue": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "${properties._serviceMetadata.serviceName}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"serviceNamespace": {
|
||||
"type": "String",
|
||||
"group": "main",
|
||||
"required": true,
|
||||
"isHidden": true,
|
||||
"defaultValue": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "${properties._serviceMetadata.serviceNamespace}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"operationRouter": {
|
||||
"displayName": "Operation Router",
|
||||
"type": "xml:route",
|
||||
"required": true,
|
||||
"group": "main",
|
||||
"@RESOURCE": {
|
||||
"_provider": "entaxy-file-internal",
|
||||
"endType": "String",
|
||||
"format": "base64",
|
||||
"preprocess": [
|
||||
{
|
||||
"processor": "xslt",
|
||||
"source": "entaxy-file-internal:routes-common/service-commons.xslt",
|
||||
"parameters": {
|
||||
"serviceId": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.objectId}",
|
||||
"lazy": false
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"processor": "xslt",
|
||||
"source": "entaxy-file-internal:routes-common/soap-operation-router.xslt",
|
||||
"parameters": {
|
||||
"serviceId": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.objectId}",
|
||||
"lazy": false
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"processor": "xslt",
|
||||
"source": "entaxy-file-internal:routes-common/common-components.xslt",
|
||||
"parameters": {
|
||||
"serviceId": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.objectId}",
|
||||
"lazy": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"defaultValue": {
|
||||
"@RESOURCE": {
|
||||
"provider": "service-resources",
|
||||
"location": {
|
||||
"@CALCULATED": {
|
||||
"lazy": false,
|
||||
"expression": "${#OWNER#.properties._serviceMetadata.serviceResourcesRoot}/${#OWNER#.properties.port}/operationRouterProtected.xml"
|
||||
}
|
||||
},
|
||||
"endType": "String",
|
||||
"format": "base64"
|
||||
}
|
||||
},
|
||||
"@TYPEINFO": {
|
||||
"type": "resource",
|
||||
"location": "${serviceResourcesRoot}/${port}/operationRouterProtected.xml",
|
||||
"serviceResourcesRoot": {
|
||||
"property": "schemaUrl",
|
||||
"sourceType": "resource",
|
||||
"path": "#metadata#.wsdl.${serviceFullName}.serviceResourcesRoot",
|
||||
"type": "property"
|
||||
},
|
||||
"dependsOn": ["schemaUrl", "serviceFullName", "port"]
|
||||
},
|
||||
"config": {
|
||||
"scope": "public"
|
||||
}
|
||||
},
|
||||
"@IMPORT": [
|
||||
{
|
||||
"sourceFactoryId": "service-components",
|
||||
"location": "outputs.schemaResourceBasedService.fields",
|
||||
"prefix": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"outputs": {
|
||||
"init": {
|
||||
"fields": {
|
||||
"schemaUrl": {
|
||||
"displayName": "WSDL schema",
|
||||
"group": "main",
|
||||
"@TYPEINFO": {
|
||||
"filter": "*.wsdl"
|
||||
}
|
||||
},
|
||||
"serviceFullName": {},
|
||||
"port": {},
|
||||
"enableAuthorization": {},
|
||||
"dataFormat": {},
|
||||
"mtomEnabled": {},
|
||||
"schemaValidationEnabled": {},
|
||||
"operationRouter": {},
|
||||
"_serviceMetadata": {},
|
||||
"serviceName": {},
|
||||
"serviceNamespace": {},
|
||||
"displayServiceSchema": {
|
||||
"group": "main"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~~~~~~licensing~~~~~~
|
||||
profile-producing
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 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:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:local="http://ru.entaxy">
|
||||
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
|
||||
|
||||
<xsl:param name="serviceId" select="'service-2'" />
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:apply-templates select="child::node()" />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="//route" exclude-result-prefixes="xsl fn xs local">
|
||||
<route>
|
||||
<xsl:attribute name="id"><xsl:value-of select="concat($serviceId, '-operation-router')" /></xsl:attribute>
|
||||
<xsl:apply-templates select="child::node()" />
|
||||
</route>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="//route/operation-router-start" exclude-result-prefixes="xsl fn xs local">
|
||||
<from>
|
||||
<xsl:attribute name="uri"><xsl:value-of select="concat('direct:', $serviceId, '-operation-router')" /></xsl:attribute>
|
||||
</from>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="//route/operation-router" exclude-result-prefixes="xsl fn xs local">
|
||||
<choice>
|
||||
<xsl:apply-templates select="child::node()" />
|
||||
</choice>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="//route/operation-router/operation" exclude-result-prefixes="xsl fn xs local">
|
||||
<when>
|
||||
<simple>${headers.operationName} == '<xsl:value-of select="@name" />'</simple>
|
||||
<xsl:apply-templates select="child::node()" />
|
||||
</when>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="//route/operation-router/unknown-operation" exclude-result-prefixes="xsl fn xs local">
|
||||
<otherwise>
|
||||
<xsl:apply-templates select="child::node()" />
|
||||
</otherwise>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="default-copy" match="node()|@*">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node()|@*" />
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
@ -0,0 +1,105 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~~~~~~licensing~~~~~~
|
||||
profile-producing
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 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:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:local="http://ru.entaxy">
|
||||
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
|
||||
|
||||
<xsl:param name="serviceId" select="'service-2'" />
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:apply-templates select="child::node()" />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="//route/operation-router/operation/connector" exclude-result-prefixes="xsl fn xs local">
|
||||
<log loggingLevel="INFO">
|
||||
<xsl:attribute name="message" select="concat('Sending to connector: ', @direction)"></xsl:attribute>
|
||||
</log>
|
||||
<to>
|
||||
<xsl:attribute name="uri" select="concat('bean:', $serviceId, '-connector-registry?method=', @direction, 'ConnectorFind')"></xsl:attribute>
|
||||
</to>
|
||||
<choice>
|
||||
<when>
|
||||
<simple>${headers.NTX_targetConnector} != null</simple>
|
||||
<setProperty name="NTX_TMP_targetConnector">
|
||||
<simple>${headers.NTX_targetConnector}</simple>
|
||||
</setProperty>
|
||||
<removeHeader headerName="NTX_targetConnector" />
|
||||
<toD>
|
||||
<xsl:attribute name="uri" select="concat('${exchangeProperty.NTX_TMP_targetConnector}', '')" />
|
||||
</toD>
|
||||
</when>
|
||||
<otherwise>
|
||||
<throwException exceptionType="ru.entaxy.platform.services.runtime.exceptions.ConnectorNotFound">
|
||||
<xsl:attribute name="message"
|
||||
select="concat('Connector not found: service=', $serviceId, '; profile=${headers[X-SystemName]}; direction=', @direction)">
|
||||
</xsl:attribute>
|
||||
</throwException>
|
||||
</otherwise>
|
||||
</choice>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="//route//to-connection" exclude-result-prefixes="xsl fn xs local">
|
||||
<reference interface="org.apache.camel.Component">
|
||||
<xsl:attribute name="id" select="@name" />
|
||||
<xsl:attribute name="filter" select="concat('(connection.name=', @name, ')')" />
|
||||
</reference>
|
||||
<xsl:variable name="dir">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@directory"><xsl:value-of select="@directory" /></xsl:when>
|
||||
<xsl:otherwise><xsl:text></xsl:text></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<to>
|
||||
<xsl:variable name="queryString">
|
||||
<xsl:for-each select="./element()">
|
||||
<xsl:call-template name="convert-to-query" />
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="resultQS">
|
||||
<xsl:choose>
|
||||
<xsl:when test="string-length($queryString) > 0">
|
||||
<xsl:value-of select="concat('?', $queryString)" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise><xsl:text /></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:attribute name="uri" select="concat(@name,':' ,$dir , $resultQS)" />
|
||||
</to>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="convert-to-query" exclude-result-prefixes="xsl fn xs local">
|
||||
<xsl:value-of select="concat(node-name(.), '=', ./text())" />
|
||||
<xsl:if test="./following-sibling::element()"><xsl:text>&</xsl:text></xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="default-copy" match="node()|@*">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node()|@*" />
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~~~~~~licensing~~~~~~
|
||||
profile-producing
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 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:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:local="http://ru.entaxy">
|
||||
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
|
||||
|
||||
<xsl:param name="serviceId" select="'service-2'" />
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:apply-templates select="child::node()" />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="//route" exclude-result-prefixes="xsl fn xs local">
|
||||
<route>
|
||||
<xsl:attribute name="id"><xsl:value-of select="concat($serviceId, '-operation-router')" /></xsl:attribute>
|
||||
<xsl:apply-templates select="child::node()" />
|
||||
</route>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="//route/operation-router-start" exclude-result-prefixes="xsl fn xs local">
|
||||
<from>
|
||||
<xsl:attribute name="uri"><xsl:value-of select="concat('direct:', $serviceId, '-operation-router')" /></xsl:attribute>
|
||||
</from>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="//route/operation-router" exclude-result-prefixes="xsl fn xs local">
|
||||
<choice>
|
||||
<xsl:apply-templates select="child::node()" />
|
||||
</choice>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="//route/operation-router/operation" exclude-result-prefixes="xsl fn xs local">
|
||||
<when>
|
||||
<simple>${headers.operationName} == '<xsl:value-of select="@name" />'</simple>
|
||||
<xsl:apply-templates select="child::node()" />
|
||||
</when>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="//route/operation-router/unknown-operation" exclude-result-prefixes="xsl fn xs local">
|
||||
<otherwise>
|
||||
<xsl:apply-templates select="child::node()" />
|
||||
</otherwise>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="default-copy" match="node()|@*">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node()|@*" />
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
@ -0,0 +1,31 @@
|
||||
[#ftl attributes={"generated.type":"blueprint"}]
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
|
||||
|
||||
[#import "templates:object-commons/common-utils.ftl" as utils]
|
||||
|
||||
<bean id="[=objectId]-connector-info" class="ru.entaxy.platform.services.runtime.impl.EntaxyServiceConnectorInfoImpl">
|
||||
<property name="serviceId" value="[=properties.serviceId]" />
|
||||
<property name="profileId" value="[=properties.profile]" />
|
||||
<property name="direction" value="in" />
|
||||
<property name="endpoint" value="direct-vm:[=objectId].entry-point" />
|
||||
</bean>
|
||||
|
||||
<service activation="eager" interface="ru.entaxy.platform.services.runtime.EntaxyServiceConnectorInfo" ref="[=objectId]-connector-info">
|
||||
<service-properties>
|
||||
<entry key="profile" value="[=properties.profile]"/>
|
||||
<entry key="service" value="[=properties.serviceId]"/>
|
||||
<entry key="direction" value="in"/>
|
||||
</service-properties>
|
||||
</service>
|
||||
|
||||
<camelContext id="[=objectId]" xmlns="http://camel.apache.org/schema/blueprint">
|
||||
<route id="[=objectId].input-route">
|
||||
<from uri="direct-vm:[=objectId].entry-point" />
|
||||
<to uri="direct:exit-cascade-start" />
|
||||
</route>
|
||||
</camelContext>
|
||||
|
||||
</blueprint>
|
@ -0,0 +1,31 @@
|
||||
[#ftl attributes={"generated.type":"blueprint"}]
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
|
||||
|
||||
[#import "templates:object-commons/common-utils.ftl" as utils]
|
||||
|
||||
<bean id="[=objectId]-connector-info" class="ru.entaxy.platform.services.runtime.impl.EntaxyServiceConnectorInfoImpl">
|
||||
<property name="serviceId" value="[=properties.serviceId]" />
|
||||
<property name="profileId" value="[=properties.profile]" />
|
||||
<property name="direction" value="in" />
|
||||
<property name="endpoint" value="direct-vm:[=objectId].entry-point" />
|
||||
</bean>
|
||||
|
||||
<service activation="eager" interface="ru.entaxy.platform.services.runtime.EntaxyServiceConnectorInfo" ref="[=objectId]-connector-info">
|
||||
<service-properties>
|
||||
<entry key="profile" value="[=properties.profile]"/>
|
||||
<entry key="service" value="[=properties.serviceId]"/>
|
||||
<entry key="direction" value="in"/>
|
||||
</service-properties>
|
||||
</service>
|
||||
|
||||
<camelContext id="[=objectId]" xmlns="http://camel.apache.org/schema/blueprint">
|
||||
<route id="[=objectId].input-route">
|
||||
<from uri="direct-vm:[=objectId].entry-point" />
|
||||
<to uri="direct:exit-cascade-start" />
|
||||
</route>
|
||||
</camelContext>
|
||||
|
||||
</blueprint>
|
@ -0,0 +1,130 @@
|
||||
[#ftl attributes={"generated.type":"blueprint"}]
|
||||
<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:camelcxf="http://camel.apache.org/schema/blueprint/cxf"
|
||||
xmlns:cxf="http://cxf.apache.org/blueprint/core"
|
||||
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
|
||||
">
|
||||
<!--
|
||||
|
||||
factoryId: openapi-based-rest-service-public
|
||||
factoryType: entaxy.runtime.service
|
||||
outputType: init
|
||||
properties:
|
||||
[#list properties?keys as key]
|
||||
[=key]
|
||||
[/#list]
|
||||
-->
|
||||
|
||||
[#if properties.enableAuthorization]
|
||||
<reference id="systemInterceptor" interface="org.apache.cxf.phase.PhaseInterceptor"
|
||||
filter="(type=system)"/>
|
||||
<reference id="authInterceptor" interface="org.apache.cxf.phase.PhaseInterceptor"
|
||||
filter="(type=authentication)"/>
|
||||
<reference id="serviceInterceptor" interface="org.apache.cxf.phase.PhaseInterceptor"
|
||||
filter="(type=service)"
|
||||
timeout="30000" availability="mandatory"/>
|
||||
[/#if]
|
||||
|
||||
|
||||
<!-- JAXRS providers -->
|
||||
<bean id="jsonProvider" class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider" />
|
||||
|
||||
<!-- CXF OpenApiFeature -->
|
||||
<bean id="openApiFeature" class="org.apache.cxf.jaxrs.openapi.OpenApiFeature">
|
||||
<property name="runAsFilter" value="true" />
|
||||
<property name="useContextBasedConfig" value="true" />
|
||||
<property name="scan" value="true" />
|
||||
</bean>
|
||||
|
||||
<!-- CXF Bus -->
|
||||
<cxf:bus bus="cxf-local-[=objectId]" name="cxf-local-[=objectId]">
|
||||
<cxf:properties key-type="java.lang.String" value-type="java.lang.Object">
|
||||
<entry key="org.apache.cxf.common.util.ClassUnwrapper" value-ref="class-unwrapper-[=objectId]" />
|
||||
</cxf:properties>
|
||||
</cxf:bus>
|
||||
|
||||
[#if properties._serviceMetadata.classes.apis??]
|
||||
[#list 0..properties._serviceMetadata.classes.apis?size-1 as i]
|
||||
<bean id="proxy-bean-[=objectId]-[=i]" activation="eager" class="ru.entaxy.platform.core.support.runtime.cxf.EntaxyCxfServiceClassProxyBean">
|
||||
<property name="realClassName" value="[=properties._serviceMetadata.classes.apis[i]]"></property>
|
||||
</bean>
|
||||
[/#list]
|
||||
[/#if]
|
||||
|
||||
<bean id="class-unwrapper-[=objectId]" activation="eager" class="ru.entaxy.platform.core.support.runtime.cxf.EntaxyCxfClassResourceUnwrapper"
|
||||
init-method="activate">
|
||||
<property name="resourceFolders">
|
||||
<list value-type="java.lang.String">
|
||||
<value>service-resources:[=properties._serviceMetadata.serviceResourcesRoot]/[=properties._serviceMetadata.classes.folder]/</value>
|
||||
</list>
|
||||
</property>
|
||||
<property name="useCache" value="true"></property>
|
||||
<property name="bus" ref="cxf-local-[=objectId]"></property>
|
||||
<property name="bundleContext" ref="blueprintBundleContext"></property>
|
||||
</bean>
|
||||
|
||||
<!--
|
||||
<bean id="[=objectId]-connector-registry" class="ru.entaxy.platform.services.runtime.impl.EntaxyServiceConnectorRegistry" activation="eager">
|
||||
<property name="profileNameHeaders">
|
||||
<list value-type="java.lang.String">
|
||||
<value>X-SystemName</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<reference-list id="connectorList"
|
||||
interface="ru.entaxy.platform.services.runtime.EntaxyServiceConnectorInfo"
|
||||
filter="(service=[=objectId])" availability="optional">
|
||||
<reference-listener ref="[=objectId]-connector-registry"
|
||||
bind-method="register" unbind-method="unregister"/>
|
||||
</reference-list>
|
||||
-->
|
||||
|
||||
<camelcxf:rsServer id="[=objectId]-rs-server"
|
||||
address="/[=properties.address]"
|
||||
loggingFeatureEnabled="true"
|
||||
loggingSizeLimit="50"
|
||||
bus="cxf-local-[=objectId]">
|
||||
<camelcxf:serviceBeans>
|
||||
[#if properties._serviceMetadata.classes.apis??]
|
||||
[#list 0..properties._serviceMetadata.classes.apis?size-1 as i]
|
||||
<ref component-id="proxy-bean-[=objectId]-[=i]"/>
|
||||
[/#list]
|
||||
[/#if]
|
||||
</camelcxf:serviceBeans>
|
||||
<camelcxf:providers>
|
||||
<ref component-id="jsonProvider"/>
|
||||
</camelcxf:providers>
|
||||
<camelcxf:features>
|
||||
<ref component-id="openApiFeature"/>
|
||||
</camelcxf:features>
|
||||
<camelcxf:inInterceptors>
|
||||
[#if properties.enableAuthorization]
|
||||
<ref component-id="authInterceptor"/>
|
||||
<ref component-id="systemInterceptor"/>
|
||||
[/#if]
|
||||
</camelcxf:inInterceptors>
|
||||
</camelcxf:rsServer>
|
||||
|
||||
<camelContext id="openapi-[=objectId]-context" xmlns="http://camel.apache.org/schema/blueprint"
|
||||
errorHandlerRef="commonErrorHandler">
|
||||
|
||||
<errorHandler id="commonErrorHandler" redeliveryPolicyRef="noRedelivery"
|
||||
type="DeadLetterChannel" deadLetterUri="direct-vm:commonErrorEndpoint"/>
|
||||
<redeliveryPolicyProfile id="noRedelivery" disableRedelivery="true"/>
|
||||
|
||||
<route id="[=objectId]-cxf-rs-endpoint" streamCache="true">
|
||||
<from uri="cxfrs:bean:[=objectId]-rs-server?bindingStyle=SimpleConsumer"/>
|
||||
<setHeader name="ENTAXY_EndpointName">
|
||||
<simple>[=objectId]</simple>
|
||||
</setHeader>
|
||||
<to uri="direct:[=objectId]-operation-router" />
|
||||
</route>
|
||||
|
||||
</camelContext>
|
||||
|
||||
</blueprint>
|
@ -0,0 +1,62 @@
|
||||
[#ftl attributes={"generated.type":"factory"}]
|
||||
{
|
||||
"factory": {
|
||||
"id": "[=properties.serviceId]-rest-connector-in",
|
||||
"displayName": "SERVICE :: REST :: [=properties.serviceId] :: CONNECTOR :: IN",
|
||||
"type": "entaxy.runtime.connector",
|
||||
"description": "IN connector for REST service [=properties.serviceId]",
|
||||
"parent": "abstract-service-rest-connector-in",
|
||||
"isAbstract": false
|
||||
},
|
||||
"entaxy.runtime.connector": {},
|
||||
"fields": {
|
||||
"serviceId": {
|
||||
"type": "String",
|
||||
"required": true,
|
||||
"isHidden": true,
|
||||
"defaultValue": "[=properties.serviceId]"
|
||||
},
|
||||
"pre-route": {
|
||||
"@RESOURCE": {
|
||||
"@INHERIT": {
|
||||
"preprocess": "append"
|
||||
},
|
||||
"preprocess":[
|
||||
{
|
||||
"processor": "xslt",
|
||||
"source":"entaxy-file-internal:routes-common/soap-operation-router.xslt",
|
||||
"parameters": {
|
||||
"profileName": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties.systemName}",
|
||||
"lazy": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
},
|
||||
"defaultValue": {
|
||||
"@RESOURCE": {
|
||||
"provider": "service-resources",
|
||||
"location": "[=properties.location]",
|
||||
"endType": "String",
|
||||
"format": "base64"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"outputs": {
|
||||
"init": {
|
||||
"isDefault": true,
|
||||
"fields": {
|
||||
"serviceId": {}
|
||||
},
|
||||
"config": {
|
||||
"configurable": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
[#ftl attributes={"generated.type":"blueprint.fragment"}]
|
||||
<bean id="[=serviceId]-connector-registry" class="ru.entaxy.platform.services.runtime.impl.EntaxyServiceConnectorRegistry" activation="eager">
|
||||
<property name="profileNameHeaders">
|
||||
<list value-type="java.lang.String">
|
||||
<value>X-SystemName</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<reference-list id="connectorList"
|
||||
interface="ru.entaxy.platform.services.runtime.EntaxyServiceConnectorInfo"
|
||||
filter="(service=[=serviceId])" availability="optional">
|
||||
<reference-listener ref="[=serviceId]-connector-registry"
|
||||
bind-method="register" unbind-method="unregister"/>
|
||||
</reference-list>
|
@ -0,0 +1,125 @@
|
||||
[#ftl attributes={"generated.type":"blueprint"}]
|
||||
<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:camelcxf="http://camel.apache.org/schema/blueprint/cxf"
|
||||
xmlns:cxf="http://cxf.apache.org/blueprint/core"
|
||||
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
|
||||
">
|
||||
<!--
|
||||
|
||||
INFO:
|
||||
|
||||
factoryId: openapi-based-rest-service-public
|
||||
factoryType: entaxy.runtime.service
|
||||
outputType: init
|
||||
properties:
|
||||
[#list properties?keys as key]
|
||||
[=key]
|
||||
[/#list]
|
||||
-->
|
||||
|
||||
[#if properties.enableAuthorization]
|
||||
<reference id="systemInterceptor" interface="org.apache.cxf.phase.PhaseInterceptor"
|
||||
filter="(type=system)"/>
|
||||
<reference id="authInterceptor" interface="org.apache.cxf.phase.PhaseInterceptor"
|
||||
filter="(type=authentication)"/>
|
||||
<reference id="serviceInterceptor" interface="org.apache.cxf.phase.PhaseInterceptor"
|
||||
filter="(type=service)"
|
||||
timeout="30000" availability="mandatory"/>
|
||||
[#if properties.displayServiceSchema]
|
||||
<bean id="isSchemaDisplayInterceptor" class="ru.entaxy.platform.services.runtime.interceptor.IsSchemaDisplayInterceptor">
|
||||
<property name="isDisplayServiceSchema" value="[=displayServiceSchema?c]"/>
|
||||
</bean>
|
||||
[/#if]
|
||||
|
||||
[/#if]
|
||||
|
||||
|
||||
<!-- JAXRS providers -->
|
||||
<bean id="jsonProvider" class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider" />
|
||||
|
||||
<!-- CXF OpenApiFeature -->
|
||||
<bean id="openApiFeature" class="org.apache.cxf.jaxrs.openapi.OpenApiFeature">
|
||||
<property name="runAsFilter" value="true" />
|
||||
<property name="useContextBasedConfig" value="true" />
|
||||
<property name="scan" value="true" />
|
||||
</bean>
|
||||
|
||||
<!-- CXF Bus -->
|
||||
<cxf:bus bus="cxf-local-[=objectId]" name="cxf-local-[=objectId]">
|
||||
<cxf:properties key-type="java.lang.String" value-type="java.lang.Object">
|
||||
<entry key="org.apache.cxf.common.util.ClassUnwrapper" value-ref="class-unwrapper-[=objectId]" />
|
||||
</cxf:properties>
|
||||
</cxf:bus>
|
||||
|
||||
[#if properties._serviceMetadata.classes.apis??]
|
||||
[#list 0..properties._serviceMetadata.classes.apis?size-1 as i]
|
||||
<bean id="proxy-bean-[=objectId]-[=i]" activation="eager" class="ru.entaxy.platform.core.support.runtime.cxf.EntaxyCxfServiceClassProxyBean">
|
||||
<property name="realClassName" value="[=properties._serviceMetadata.classes.apis[i]]"></property>
|
||||
</bean>
|
||||
[/#list]
|
||||
[/#if]
|
||||
|
||||
<bean id="class-unwrapper-[=objectId]" activation="eager" class="ru.entaxy.platform.core.support.runtime.cxf.EntaxyCxfClassResourceUnwrapper"
|
||||
init-method="activate">
|
||||
<property name="resourceFolders">
|
||||
<list value-type="java.lang.String">
|
||||
<value>service-resources:[=properties._serviceMetadata.serviceResourcesRoot]/[=properties._serviceMetadata.classes.folder]/</value>
|
||||
</list>
|
||||
</property>
|
||||
<property name="useCache" value="true"></property>
|
||||
<property name="bus" ref="cxf-local-[=objectId]"></property>
|
||||
<property name="bundleContext" ref="blueprintBundleContext"></property>
|
||||
</bean>
|
||||
|
||||
|
||||
<camelcxf:rsServer id="[=objectId]-rs-server"
|
||||
address="/[=properties.address]"
|
||||
loggingFeatureEnabled="true"
|
||||
loggingSizeLimit="50"
|
||||
bus="cxf-local-[=objectId]">
|
||||
<camelcxf:serviceBeans>
|
||||
[#if properties._serviceMetadata.classes.apis??]
|
||||
[#list 0..properties._serviceMetadata.classes.apis?size-1 as i]
|
||||
<ref component-id="proxy-bean-[=objectId]-[=i]"/>
|
||||
[/#list]
|
||||
[/#if]
|
||||
</camelcxf:serviceBeans>
|
||||
<camelcxf:providers>
|
||||
<ref component-id="jsonProvider"/>
|
||||
</camelcxf:providers>
|
||||
<camelcxf:features>
|
||||
<ref component-id="openApiFeature"/>
|
||||
</camelcxf:features>
|
||||
<camelcxf:inInterceptors>
|
||||
[#if properties.enableAuthorization]
|
||||
[#if properties.displayServiceSchema]
|
||||
<ref component-id="isSchemaDisplayInterceptor"/>
|
||||
[/#if]
|
||||
<ref component-id="authInterceptor"/>
|
||||
<ref component-id="systemInterceptor"/>
|
||||
[/#if]
|
||||
</camelcxf:inInterceptors>
|
||||
</camelcxf:rsServer>
|
||||
|
||||
<camelContext id="openapi-[=objectId]-context" xmlns="http://camel.apache.org/schema/blueprint"
|
||||
errorHandlerRef="commonErrorHandler">
|
||||
|
||||
<errorHandler id="commonErrorHandler" redeliveryPolicyRef="noRedelivery"
|
||||
type="DeadLetterChannel" deadLetterUri="direct-vm:commonErrorEndpoint"/>
|
||||
<redeliveryPolicyProfile id="noRedelivery" disableRedelivery="true"/>
|
||||
|
||||
<route id="[=objectId]-cxf-rs-endpoint" streamCache="true">
|
||||
<from uri="cxfrs:bean:[=objectId]-rs-server?bindingStyle=SimpleConsumer"/>
|
||||
<setHeader name="ENTAXY_EndpointName">
|
||||
<simple>[=objectId]</simple>
|
||||
</setHeader>
|
||||
<to uri="direct:[=objectId]-operation-router" />
|
||||
</route>
|
||||
|
||||
</camelContext>
|
||||
|
||||
</blueprint>
|
@ -0,0 +1,17 @@
|
||||
[#ftl attributes={"generated.type":"blueprint.fragment"}]
|
||||
<!-- connector dispatching beans -->
|
||||
|
||||
<bean id="[=serviceId]-connector-registry" class="ru.entaxy.platform.services.runtime.impl.EntaxyServiceConnectorRegistry" activation="eager">
|
||||
<property name="profileNameHeaders">
|
||||
<list value-type="java.lang.String">
|
||||
<value>X-SystemName</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<reference-list id="connectorList"
|
||||
interface="ru.entaxy.platform.services.runtime.EntaxyServiceConnectorInfo"
|
||||
filter="(service=[=serviceId])" availability="optional">
|
||||
<reference-listener ref="[=serviceId]-connector-registry"
|
||||
bind-method="register" unbind-method="unregister"/>
|
||||
</reference-list>
|
@ -0,0 +1,9 @@
|
||||
[#ftl attributes={"generated.type":"blueprint.fragment"}]
|
||||
<!--
|
||||
|
||||
factoryId: service-resources-soap
|
||||
factoryType: entaxy.runtime.service.support
|
||||
outputType: init
|
||||
|
||||
-->
|
||||
|
@ -0,0 +1,21 @@
|
||||
[#ftl attributes={"generated.type":"blueprint.fragment"}]
|
||||
<route>
|
||||
<operation-router-start />
|
||||
<operation-router>
|
||||
[#if properties.service??]
|
||||
[#if properties.service.operations??]
|
||||
[#list properties.service.operations as path, operationData]
|
||||
[#list operationData as verb, operationId]
|
||||
<operation name="[=operationId]">
|
||||
<!-- path: [=path]; verb: [=verb] -->
|
||||
<log message="Called operation: ${headers.operationName}" loggingLevel="INFO"/>
|
||||
</operation>
|
||||
[/#list]
|
||||
[/#list]
|
||||
<unknown-operation>
|
||||
<log message="Unknown operation: ${headers.operationName}" loggingLevel="WARN"/>
|
||||
</unknown-operation>
|
||||
[/#if]
|
||||
[/#if]
|
||||
</operation-router>
|
||||
</route>
|
@ -0,0 +1,22 @@
|
||||
[#ftl attributes={"generated.type":"blueprint.fragment"}]
|
||||
<route>
|
||||
<operation-router-start />
|
||||
<operation-router>
|
||||
[#if properties.service??]
|
||||
[#if properties.service.operations??]
|
||||
[#list properties.service.operations as path, operationData]
|
||||
[#list operationData as verb, operationId]
|
||||
<operation name="[=operationId]">
|
||||
<!-- path: [=path]; verb: [=verb] -->
|
||||
<log message="Called operation: ${headers.operationName}" loggingLevel="INFO"/>
|
||||
<connector direction="in" />
|
||||
</operation>
|
||||
[/#list]
|
||||
[/#list]
|
||||
<unknown-operation>
|
||||
<log message="Unknown operation: ${headers.operationName}" loggingLevel="WARN"/>
|
||||
</unknown-operation>
|
||||
[/#if]
|
||||
[/#if]
|
||||
</operation-router>
|
||||
</route>
|
@ -0,0 +1,21 @@
|
||||
[#ftl attributes={"generated.type":"blueprint.fragment"}]
|
||||
<route>
|
||||
<operation-router-start />
|
||||
<operation-router>
|
||||
[#if properties.service??]
|
||||
[#if properties.service.operations??]
|
||||
[#list properties.service.operations as path, operationData]
|
||||
[#list operationData as verb, operationId]
|
||||
<operation name="[=operationId]">
|
||||
<!-- path: [=path]; verb: [=verb] -->
|
||||
<log message="Called operation: ${headers.operationName}" loggingLevel="INFO"/>
|
||||
</operation>
|
||||
[/#list]
|
||||
[/#list]
|
||||
<unknown-operation>
|
||||
<log message="Unknown operation: ${headers.operationName}" loggingLevel="WARN"/>
|
||||
</unknown-operation>
|
||||
[/#if]
|
||||
[/#if]
|
||||
</operation-router>
|
||||
</route>
|
@ -0,0 +1,10 @@
|
||||
[#ftl attributes={"generated.type":"blueprint.fragment"}]
|
||||
|
||||
<!--
|
||||
|
||||
factoryId: service-resources-soap
|
||||
factoryType: entaxy.runtime.service.support
|
||||
outputType: init
|
||||
|
||||
-->
|
||||
|
@ -0,0 +1,18 @@
|
||||
[#ftl attributes={"generated.type":"blueprint.fragment"}]
|
||||
<route>
|
||||
<operation-router-start />
|
||||
<operation-router>
|
||||
[#if properties.service??]
|
||||
[#if properties.service.port??]
|
||||
[#list properties.service.port.operations as operation]
|
||||
<operation name="[=operation]">
|
||||
<log message="Called operation: ${headers.operationName}" loggingLevel="INFO"/>
|
||||
</operation>
|
||||
[/#list]
|
||||
<unknown-operation>
|
||||
<log message="Unknown operation: ${headers.operationName}" loggingLevel="WARN"/>
|
||||
</unknown-operation>
|
||||
[/#if]
|
||||
[/#if]
|
||||
</operation-router>
|
||||
</route>
|
@ -0,0 +1,18 @@
|
||||
[#ftl attributes={"generated.type":"blueprint.fragment"}]
|
||||
<route>
|
||||
<from uri="direct:pre-route" />
|
||||
<operation-router>
|
||||
[#if properties.service??]
|
||||
[#if properties.service.port??]
|
||||
[#list properties.service.port.operations as operation]
|
||||
<operation name="[=operation]">
|
||||
<log message="Called operation: ${headers.operationName}" loggingLevel="INFO"/>
|
||||
</operation>
|
||||
[/#list]
|
||||
<unknown-operation>
|
||||
<log message="Unknown operation: ${headers.operationName}" loggingLevel="WARN"/>
|
||||
</unknown-operation>
|
||||
[/#if]
|
||||
[/#if]
|
||||
</operation-router>
|
||||
</route>
|
@ -0,0 +1,19 @@
|
||||
[#ftl attributes={"generated.type":"blueprint.fragment"}]
|
||||
<route>
|
||||
<operation-router-start />
|
||||
<operation-router>
|
||||
[#if properties.service??]
|
||||
[#if properties.service.port??]
|
||||
[#list properties.service.port.operations as operation]
|
||||
<operation name="[=operation]">
|
||||
<log message="Called operation: ${headers.operationName}" loggingLevel="INFO"/>
|
||||
<connector direction="in" />
|
||||
</operation>
|
||||
[/#list]
|
||||
<unknown-operation>
|
||||
<log message="Unknown operation: ${headers.operationName}" loggingLevel="WARN"/>
|
||||
</unknown-operation>
|
||||
[/#if]
|
||||
[/#if]
|
||||
</operation-router>
|
||||
</route>
|
@ -0,0 +1,18 @@
|
||||
[#ftl attributes={"generated.type":"blueprint.fragment"}]
|
||||
<route>
|
||||
<operation-router-start />
|
||||
<operation-router>
|
||||
[#if properties.service??]
|
||||
[#if properties.service.port??]
|
||||
[#list properties.service.port.operations as operation]
|
||||
<operation name="[=operation]">
|
||||
<log message="Called operation: ${headers.operationName}" loggingLevel="INFO"/>
|
||||
</operation>
|
||||
[/#list]
|
||||
<unknown-operation>
|
||||
<log message="Unknown operation: ${headers.operationName}" loggingLevel="WARN"/>
|
||||
</unknown-operation>
|
||||
[/#if]
|
||||
[/#if]
|
||||
</operation-router>
|
||||
</route>
|
@ -0,0 +1,106 @@
|
||||
[#ftl attributes={"generated.type":"blueprint"}]
|
||||
<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:camelcxf="http://camel.apache.org/schema/blueprint/cxf"
|
||||
xmlns:cxf="http://cxf.apache.org/blueprint/core"
|
||||
xmlns:[=objectId]="[=properties.serviceNamespace]"
|
||||
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
|
||||
">
|
||||
<!-- xmlns:soap-type="http://www.entaxy.ru/ExchangeTypes/1.0" -->
|
||||
<!--
|
||||
|
||||
factoryId: wsdl-based-soap-service-public
|
||||
factoryType: entaxy.runtime.service
|
||||
outputType: init
|
||||
properties:
|
||||
[#list properties?keys as key]
|
||||
[=key]
|
||||
[/#list]
|
||||
-->
|
||||
|
||||
<camelcxf:cxfEndpoint id="[=objectId]-cxf-endpoint"
|
||||
address="/[=properties.address]"
|
||||
endpointName="[=objectId]:[=properties.port]"
|
||||
serviceName="[=objectId]:[=properties.serviceName]"
|
||||
wsdlURL="entaxy-resource://[=properties.schemaUrl?replace(":", "/")]">
|
||||
<camelcxf:properties>
|
||||
<entry key="dataFormat" value="[=properties.dataFormat]"/>
|
||||
<entry key="mtom-enabled" value="[=properties.mtomEnabled?c]"/>
|
||||
<entry key="schema-validation-enabled" value="[=properties.schemaValidationEnabled?c]"/>
|
||||
</camelcxf:properties>
|
||||
<camelcxf:inInterceptors>
|
||||
[#if properties.displayServiceSchema]
|
||||
<ref component-id="isSchemaDisplayInterceptor"/>
|
||||
[/#if]
|
||||
<ref component-id="authInterceptor"/>
|
||||
<ref component-id="systemInterceptor"/>
|
||||
<ref component-id="validator"/>
|
||||
</camelcxf:inInterceptors>
|
||||
<camelcxf:outFaultInterceptors>
|
||||
<ref component-id="handleOutFaultInterceptor"/>
|
||||
</camelcxf:outFaultInterceptors>
|
||||
</camelcxf:cxfEndpoint>
|
||||
|
||||
[#if properties.displayServiceSchema]
|
||||
<bean id="isSchemaDisplayInterceptor" class="ru.entaxy.platform.services.runtime.interceptor.IsSchemaDisplayInterceptor">
|
||||
<property name="isDisplayServiceSchema" value="[=displayServiceSchema?c]"/>
|
||||
</bean>
|
||||
[/#if]
|
||||
|
||||
<bean id="handleOutFaultInterceptor"
|
||||
class="ru.entaxy.esb.system.core.common.error.handler.interceptor.HandleOutFaultInterceptor">
|
||||
<argument ref="uniform-service-passive-connector-context"/>
|
||||
<argument value="direct:error_from_cxf"/>
|
||||
</bean>
|
||||
|
||||
<bean id="validator" class="ru.entaxy.esb.system.common.validator.ValidateInterceptor">
|
||||
<property name="schemaValidationEnabled" value="[=properties.schemaValidationEnabled?c]"/>
|
||||
</bean>
|
||||
<reference id="systemInterceptor" interface="org.apache.cxf.phase.PhaseInterceptor"
|
||||
filter="(type=system)"/>
|
||||
<reference id="authInterceptor" interface="org.apache.cxf.phase.PhaseInterceptor"
|
||||
filter="(type=authentication)"/>
|
||||
|
||||
<bean id="[=objectId]-connector-registry" class="ru.entaxy.platform.services.runtime.impl.EntaxyServiceConnectorRegistry" activation="eager">
|
||||
<property name="profileNameHeaders">
|
||||
<list value-type="java.lang.String">
|
||||
<value>X-SystemName</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<reference-list id="connectorList"
|
||||
interface="ru.entaxy.platform.services.runtime.EntaxyServiceConnectorInfo"
|
||||
filter="(service=[=objectId])" availability="optional">
|
||||
<reference-listener ref="[=objectId]-connector-registry"
|
||||
bind-method="register" unbind-method="unregister"/>
|
||||
</reference-list>
|
||||
|
||||
<camelContext id="uniform-service-passive-connector-context" xmlns="http://camel.apache.org/schema/blueprint"
|
||||
errorHandlerRef="commonErrorHandler">
|
||||
|
||||
<errorHandler id="commonErrorHandler" redeliveryPolicyRef="noRedelivery"
|
||||
type="DeadLetterChannel" deadLetterUri="direct-vm:commonErrorEndpoint"/>
|
||||
<redeliveryPolicyProfile id="noRedelivery" disableRedelivery="true"/>
|
||||
|
||||
<route id="error_from_cxf">
|
||||
<from uri="direct:error_from_cxf"/>
|
||||
<log message="cxf message: ${body}" loggingLevel="DEBUG"/>
|
||||
<log message="headers: ${headers}\n" loggingLevel="DEBUG"/>
|
||||
<to uri="direct-vm:cxfErrorEndpoint"/>
|
||||
</route>
|
||||
|
||||
<route id="[=objectId]-cxf-endpoint" streamCache="true">
|
||||
<from uri="cxf:bean:[=objectId]-cxf-endpoint"/>
|
||||
<setHeader name="ENTAXY_EndpointName">
|
||||
<simple>[=objectId]</simple>
|
||||
</setHeader>
|
||||
<to uri="direct:[=objectId]-operation-router" />
|
||||
</route>
|
||||
|
||||
</camelContext>
|
||||
|
||||
</blueprint>
|
@ -0,0 +1,61 @@
|
||||
[#ftl attributes={"generated.type":"factory"}]
|
||||
{
|
||||
"factory": {
|
||||
"id": "[=properties.serviceId]-soap-connector-in",
|
||||
"type": "entaxy.runtime.connector",
|
||||
"description": "Factory abstract-service-soap-connector-in of entaxy.runtime.connector",
|
||||
"parent": "abstract-service-soap-connector-in",
|
||||
"isAbstract": false
|
||||
},
|
||||
"entaxy.runtime.connector": {},
|
||||
"fields": {
|
||||
"serviceId": {
|
||||
"type": "String",
|
||||
"required": true,
|
||||
"isHidden": true,
|
||||
"defaultValue": "[=properties.serviceId]"
|
||||
},
|
||||
"pre-route": {
|
||||
"@RESOURCE": {
|
||||
"@INHERIT": {
|
||||
"preprocess": "append"
|
||||
},
|
||||
"preprocess":[
|
||||
{
|
||||
"processor": "xslt",
|
||||
"source":"entaxy-file-internal:routes-common/soap-operation-router.xslt",
|
||||
"parameters": {
|
||||
"profileName": {
|
||||
"@CALCULATED": {
|
||||
"expression": "${#OWNER#.properties.systemName}",
|
||||
"lazy": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
},
|
||||
"defaultValue": {
|
||||
"@RESOURCE": {
|
||||
"provider": "service-resources",
|
||||
"location": "[=properties.location]",
|
||||
"endType": "String",
|
||||
"format": "base64"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"outputs": {
|
||||
"init": {
|
||||
"isDefault": true,
|
||||
"fields": {
|
||||
"serviceId": {}
|
||||
},
|
||||
"config": {
|
||||
"configurable": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
[#ftl attributes={"generated.type":"blueprint"}]
|
||||
<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:camelcxf="http://camel.apache.org/schema/blueprint/cxf"
|
||||
xmlns:cxf="http://cxf.apache.org/blueprint/core"
|
||||
xmlns:[=objectId]="[=properties.serviceNamespace]"
|
||||
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
|
||||
">
|
||||
<!-- xmlns:soap-type="http://www.entaxy.ru/ExchangeTypes/1.0" -->
|
||||
<!--
|
||||
|
||||
factoryId: wsdl-based-soap-service-public
|
||||
factoryType: entaxy.runtime.service
|
||||
outputType: init
|
||||
properties:
|
||||
[#list properties?keys as key]
|
||||
[=key]
|
||||
[/#list]
|
||||
-->
|
||||
|
||||
<camelcxf:cxfEndpoint id="[=objectId]-cxf-endpoint"
|
||||
address="/[=properties.address]"
|
||||
endpointName="[=objectId]:[=properties.port]"
|
||||
serviceName="[=objectId]:[=properties.serviceName]"
|
||||
wsdlURL="entaxy-resource://[=properties.schemaUrl?replace(":", "/")]">
|
||||
<camelcxf:properties>
|
||||
<entry key="dataFormat" value="[=properties.dataFormat]"/>
|
||||
<entry key="mtom-enabled" value="[=properties.mtomEnabled?c]"/>
|
||||
<entry key="schema-validation-enabled" value="[=properties.schemaValidationEnabled?c]"/>
|
||||
</camelcxf:properties>
|
||||
<camelcxf:inInterceptors>
|
||||
[#if properties.enableAuthorization]
|
||||
[#if properties.displayServiceSchema]
|
||||
<ref component-id="isSchemaDisplayInterceptor"/>
|
||||
[/#if]
|
||||
<ref component-id="authInterceptor"/>
|
||||
<ref component-id="systemInterceptor"/>
|
||||
[/#if]
|
||||
<ref component-id="validator"/>
|
||||
</camelcxf:inInterceptors>
|
||||
<camelcxf:outFaultInterceptors>
|
||||
<ref component-id="handleOutFaultInterceptor"/>
|
||||
</camelcxf:outFaultInterceptors>
|
||||
</camelcxf:cxfEndpoint>
|
||||
|
||||
<bean id="handleOutFaultInterceptor"
|
||||
class="ru.entaxy.esb.system.core.common.error.handler.interceptor.HandleOutFaultInterceptor">
|
||||
<argument ref="uniform-service-passive-connector-context"/>
|
||||
<argument value="direct:error_from_cxf"/>
|
||||
</bean>
|
||||
|
||||
<bean id="validator" class="ru.entaxy.esb.system.common.validator.ValidateInterceptor">
|
||||
<property name="schemaValidationEnabled" value="[=properties.schemaValidationEnabled?c]"/>
|
||||
</bean>
|
||||
[#if properties.enableAuthorization]
|
||||
<reference id="systemInterceptor" interface="org.apache.cxf.phase.PhaseInterceptor"
|
||||
filter="(type=system)"/>
|
||||
<reference id="authInterceptor" interface="org.apache.cxf.phase.PhaseInterceptor"
|
||||
filter="(type=authentication)"/>
|
||||
[#if properties.displayServiceSchema]
|
||||
<bean id="isSchemaDisplayInterceptor" class="ru.entaxy.platform.services.runtime.interceptor.IsSchemaDisplayInterceptor">
|
||||
<property name="isDisplayServiceSchema" value="[=displayServiceSchema?c]"/>
|
||||
</bean>
|
||||
[/#if]
|
||||
[/#if]
|
||||
|
||||
<camelContext id="uniform-service-passive-connector-context" xmlns="http://camel.apache.org/schema/blueprint"
|
||||
errorHandlerRef="commonErrorHandler">
|
||||
|
||||
<errorHandler id="commonErrorHandler" redeliveryPolicyRef="noRedelivery"
|
||||
type="DeadLetterChannel" deadLetterUri="direct-vm:commonErrorEndpoint"/>
|
||||
<redeliveryPolicyProfile id="noRedelivery" disableRedelivery="true"/>
|
||||
|
||||
<route id="error_from_cxf">
|
||||
<from uri="direct:error_from_cxf"/>
|
||||
<log message="cxf message: ${body}" loggingLevel="DEBUG"/>
|
||||
<log message="headers: ${headers}\n" loggingLevel="DEBUG"/>
|
||||
<to uri="direct-vm:cxfErrorEndpoint"/>
|
||||
</route>
|
||||
|
||||
<route id="[=objectId]-cxf-endpoint" streamCache="true">
|
||||
<from uri="cxf:bean:[=objectId]-cxf-endpoint"/>
|
||||
<setHeader name="ENTAXY_EndpointName">
|
||||
<simple>[=objectId]</simple>
|
||||
</setHeader>
|
||||
<to uri="direct:[=objectId]-operation-router" />
|
||||
</route>
|
||||
|
||||
</camelContext>
|
||||
|
||||
</blueprint>
|
@ -0,0 +1,175 @@
|
||||
ЛИЦЕНЗИЯ ОГРАНИЧЕННОГО ПРИМЕНЕНИЯ
|
||||
|
||||
Настоящий документ устанавливает для Пользователя условия применения Базовой (некоммерческой)
|
||||
версии лицензии для пробного использования программного обеспечения ENTAXY, принадлежащего
|
||||
Правообладателю – Обществу с ограниченной ответственностью "ЕМДЕВ" (ОГРН 1057810026658, ИНН
|
||||
7813313860, юридический адрес: 197022, Россия, г. Санкт-Петербург, ул. Профессора Попова,
|
||||
д. 23, литера В, помещение 3Н), расположенной в сети Интернет по адресу
|
||||
https://www.emdev.ru/about (далее - Компания).
|
||||
|
||||
Используя или получая доступ к Программному обеспечению, или нажав «Я согласен с Условиями»
|
||||
(или аналогичную кнопку или флажок) после загрузки или установки Программного обеспечения,
|
||||
Пользователь выражает свое согласие на обязательность условий и ограничений, изложенных в
|
||||
настоящем документе, в противном случае, он должен не использовать или не получать доступ
|
||||
к Программному обеспечению.
|
||||
|
||||
1. ТЕРМИНЫ И ОПРЕДЕЛЕНИЯ
|
||||
|
||||
a) ПО – Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) в любой ее версии
|
||||
или редакции, исключительные права на которую принадлежат Правообладателю.
|
||||
b) Правообладатель (Компания) – ООО «ЕМДЕВ», ОГРН 1057810026658, ИНН 7813313860, исключительные
|
||||
права которого подтверждаются Свидетельством о государственной регистрации в Реестре программ
|
||||
для ЭВМ № 2021610848 от 19.01.2021 года.
|
||||
c) Пользователь – юридическое или физическое лицо, получившее через скачивание с сайта
|
||||
https://entaxy.ru или иным образом, дистрибутив ПО, пользующееся ПО.
|
||||
d) ИС – интеллектуальная собственность – закреплённое законом исключительное право, а также
|
||||
личные неимущественные права авторов произведений на результат интеллектуальной деятельности.
|
||||
e) Подписка – это коммерческое предложение Правообладателя, состоящее из Лицензии на использование
|
||||
ПО и доступа к технической поддержке программного обеспечения на срок Подписки. Подписка
|
||||
включает предоставление Пользователю неисключительного права использования ПО, в том числе
|
||||
получение обновлений функционала ПО и безопасности ПО, исправление ошибок ПО и получение
|
||||
патчей с обновлениями и исправлениями программного обеспечения. Подписка приобретается
|
||||
Пользователем на период времени, указанный в Сертификате. Количество подписок устанавливается
|
||||
для каждого Пользователя индивидуально в Сертификате.
|
||||
f) Сертификат – документ, выдаваемый Дистрибъютором или Авторизованным партнёром (Партнёром),
|
||||
подтверждающий факт приобретения физическим или юридическим лицом Подписки на программное
|
||||
обеспечение в ограниченном объёме и на определённый период времени.
|
||||
g) Лицензия (простая (неисключительная) – совокупность ограниченных прав использования ПО,
|
||||
предоставленных Пользователю согласно условиям Подписки.
|
||||
h) Библиотека – совокупность подпрограмм и объектов, используемых для разработки программного
|
||||
обеспечения.
|
||||
i) Исходный код – текст компьютерной программы на каком-либо языке программирования, состоящий
|
||||
из одного или нескольких файлов, который может быть прочтён человеком.
|
||||
j) Объектный код – файл (часть машинного кода) с промежуточным представлением отдельного модуля
|
||||
программы, полученный в результате обработки исходного кода, еще не связанный в полную программу.
|
||||
Это машинный код для одной конкретной библиотеки или модуля, который будет составлять готовый
|
||||
продукт.
|
||||
k) Некоммерческое использование – индивидуальное личное использование Пользователем программного
|
||||
обеспечения с целью обучения работе с Программным обеспечением, для оценки или демонстрации
|
||||
возможностей Программного обеспечения, при котором, Пользователем не извлекается коммерческая
|
||||
выгода и/или не идёт в доход денежное вознаграждение при использовании Программного обеспечения.
|
||||
|
||||
2. ДОПУСТИМЫЕ СПОСОБЫ ИСПОЛЬЗОВАНИЯ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ
|
||||
|
||||
2.1. Правообладатель предоставляет Пользователю ограниченное право использования Программного
|
||||
обеспечения на условиях простой (неисключительной) лицензии в объёме, ограниченном правом
|
||||
воспроизведения полной рабочей версии программного обеспечения, новых версий программного обеспечения
|
||||
в памяти оборудования и его запуска на оборудовании в соответствии со ст. 1280 ГК РФ.
|
||||
2.2. Право на использование Программного обеспечения, предоставляемое Пользователю, носит
|
||||
неисключительный характер.
|
||||
2.3. Пользователю предоставляется всемирная, неисключительная, не подлежащая сублицензированию,
|
||||
лицензия на ограниченное использование Программного обеспечения.
|
||||
2.4. Пользователь, имеющий Базовую (некоммерческую) версию лицензии для пробного использования
|
||||
имеет право приобрести Подписку на программное обеспечение. В этом случае Пользователь обязан
|
||||
обратиться в службу поддержки Правообладателя по адресу: https://entaxy.ru/ для изменения
|
||||
вида лицензии с Базовой бесплатной версии на Подписки.
|
||||
2.5. Срок использования скачанной Пользователем базовой (некоммерческой) версии лицензии для
|
||||
пробного использования программного обеспечения – не ограничен.
|
||||
2.6. Использование Пользователем настоящего программного обеспечения в целях разработки,
|
||||
модификации, обновления другого ПО, принадлежащего третьим лицам, а не Правообладателю,
|
||||
без разрешения Правообладателя не допускается.
|
||||
|
||||
3. АВТОРСКОЕ ПРАВО.
|
||||
|
||||
3.1. Все авторские права, все права интеллектуальной собственности на Программное обеспечение
|
||||
и любые его копии принадлежат Правообладателю.
|
||||
3.2. Все авторские права, все права интеллектуальной собственности в отношении любого контента,
|
||||
к которому можно получить доступ с помощью Программного обеспечения, является собственностью
|
||||
соответствующего владельца контента и защищается применимым законодательством об авторском
|
||||
праве или другими законами и договорами об интеллектуальной собственности.
|
||||
3.3. Условия использования Программного обеспечения.
|
||||
Лицензия, предоставленная Пользователю, действительна только в том случае, если Пользователь
|
||||
придерживается следующих условий:
|
||||
3.3.1. Принятие уведомлений об авторских правах. Пользователю запрещается удалять или изменять
|
||||
какие-либо уведомления об авторских правах или лицензиях, которые появляются при использовании
|
||||
Программного обеспечения или на нем.
|
||||
3.3.2. Модификация. Пользователю запрещается модифицировать, изменять, декомпилировать,
|
||||
расшифровывать, дизассемблировать, переводить или реверсировать, перепроектировать
|
||||
Программное обеспечение.
|
||||
3.3.3. Распространение. Пользователю запрещается сублицензировать, передавать право использования
|
||||
ПО или иным образом распространять или предоставлять Программное обеспечение любой третьей стороне.
|
||||
3.3.4. SaaS. За исключением случаев, когда это разрешено Правообладателем, Пользователю запрещено
|
||||
использовать Программное обеспечение в коммерческих целях для оказания услуг третьим лицам.
|
||||
|
||||
4. ОТВЕТСТВЕННОСТЬ ПРАВООБЛАДАТЕЛЯ ПРИ НАРУШЕНИИ ПОЛЬЗОВАТЕЛЕМ ПРАВ «ИС»
|
||||
|
||||
4.1. Правообладатель не несет никаких обязательств в отношении каких-либо претензий к Пользователю
|
||||
на предмет нарушения последним прав Интеллектуальной собственности, возникших в связи с
|
||||
использованием Пользователем:
|
||||
4.1.1. Любых компонентов программного обеспечения с открытым исходным кодом, включенных в
|
||||
Программное обеспечение;
|
||||
4.1.2. Любого нарушения правил использования Программного обеспечения, установленного условиями
|
||||
настоящего соглашения;
|
||||
4.1.3. Любого использования Программного обеспечения в сочетании с другими ПО, оборудованием,
|
||||
или данными, не предоставленными Пользователю Правообладателем;
|
||||
4.1.4. Любого изменения Программного обеспечения любым третьим лицом, а не Правообладателем.
|
||||
|
||||
|
||||
5. НАСТОЯЩИМ ПРАВООБЛАДАТЕЛЬ ЗАЯВЛЯЕТ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ ПОЛЬЗОВАТЕЛЮ
|
||||
ПО ПРИНЦИПУ «AS IS» - «КАК ЕСТЬ». НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ НЕ ГАРАНТИРУЕТ
|
||||
И НЕ ОБЕЩАЕТ, ЧТО ПРЕДОСТАВЛЕННОЕ ИМ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ПОДХОДИТЬ ИЛИ НЕ ПОДХОДИТЬ
|
||||
ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ОТВЕЧАТЬ ВСЕМ КОММЕРЧЕСКИМ
|
||||
И ЛИЧНЫМ СУБЪЕКТИВНЫМ ОЖИДАНИЯМ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ РАБОТАТЬ
|
||||
ИСПРАВНО, БЕЗ ТЕХНИЧЕСКИХ ОШИБОК, БЫСТРО И БЕСПЕРЕБОЙНО.
|
||||
|
||||
6. ОГРАНИЧЕНИЕ ОТВЕТСТВЕННОСТИ.
|
||||
НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ ИЛИ ЕГО АФФИЛЛИРОВАННЫЕ ЛИЦА НЕ НЕСУТ ПЕРЕД ПОЛЬЗОВАТЕЛЕМ
|
||||
ОТВЕТСТВЕННОСТИ ЗА ЛЮБЫЕ ПРЯМЫЕ ИЛИ КОСВЕННЫЕ УБЫТКИ ПОЛЬЗОВАТЕЛЯ, ЕГО РАСХОДЫ ИЛИ РЕАЛЬНЫЙ УЩЕРБ,
|
||||
ВКЛЮЧАЯ, ПОМИМО ПРОЧЕГО, ПРОСТОИ; УТРАТУ БИЗНЕСА; УПУЩЕННУЮ ВЫГОДУ; НЕДОПОЛУЧЕННУЮ ПРИБЫЛЬ;
|
||||
ПОТЕРЮ ИЛИ ПОВРЕЖДЕНИЕ ДАННЫХ, ИМУЩЕСТВА И ИНОЕ.
|
||||
ОГРАНИЧЕНИЯ ПРИМЕНЯЮТСЯ НЕЗАВИСИМО ОТ ОСНОВАНИЯ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ; В ТОМ ЧИСЛЕ ВСЛЕДСТВИЕ
|
||||
ДЕЙСТВИЯ ИЛИ БЕЗДЕЙСТВИЯ, НЕБРЕЖНОСТИ, УМЫСЛА, ПРЯМОГО ИЛИ КОСВЕННОГО; НЕОСТОРОЖНОСТИ; ЗАБЛУЖДЕНИЯ;
|
||||
КЛЕВЕТЫ; НАРУШЕНИЯ КОНФИДЕНЦИАЛЬНОСТИ ИЛИ ПРАВА ИНТЕЛЛЕКТУАЛЬНОЙ СОБСТВЕННОСТИ; ИЛИ ЛЮБОЕ ДРУГОЕ
|
||||
ОСНОВАНИЕ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ.
|
||||
|
||||
7. ОБЯЗАННОСТЬ ПОЛЬЗОВАТЕЛЯ:
|
||||
Не осуществлять самостоятельно и (или) с привлечением третьих лиц нижеследующие действия
|
||||
(включая, но не ограничиваясь) по:
|
||||
-дизассемблированию и (или) декомпилированию (преобразованию объектного кода в исходный код)
|
||||
Программного обеспечения;
|
||||
-модификации Программного обеспечения, в том числе вносить изменения в объектный код, исходный
|
||||
код Программного обеспечения, за исключением тех изменений, которые вносятся средствами,
|
||||
включёнными в Программное обеспечение и описанными непосредственно в документации к нему;
|
||||
-созданию условий для использования Программного обеспечения лицами, не имеющими прав на
|
||||
использование данного Программного обеспечения, включая (но не ограничиваясь) вмешательство
|
||||
третьих лиц в функционирование Программного обеспечения, предоставление третьим лицам доступа
|
||||
к исследованию и (или) замене настроек Программного обеспечения, включая его первичную установку;
|
||||
-распространению Программного обеспечения в целом или в части (включая приложенную к нему документацию).
|
||||
|
||||
8. БИБЛИОТЕКА ПО. ИСПОЛЬЗУЕМЫЕ ПРОГРАММНЫЕ СРЕДСТВА.
|
||||
|
||||
8.1. Настоящим, Правообладатель заверяет, что Библиотека программного обеспечения состоит из
|
||||
лицензионных продуктов, используемых на законных основаниях, а
|
||||
именно https://entaxy.ru/libs/licenses/root-aggregated.deps.
|
||||
8.2. Любые программные средства, применяемые Пользователем при работе с ПО, должны быть
|
||||
совместимы с библиотекой ПО, указанной в п.8.1. настоящего соглашения.
|
||||
8.3. Перечень внешних модулей ПО, указанный в п.8.1 настоящего соглашения, может изменяться
|
||||
Правообладателем в одностороннем порядке, в зависимости от выпуска релизов программного обеспечения,
|
||||
содержащих все изменения и дополнения программного обеспечения.
|
||||
|
||||
9. ВНЕСЕНИЕ ИЗМЕНЕНИЙ В ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ.
|
||||
|
||||
9.1. Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) является свободно распространяемым
|
||||
программным обеспечением.
|
||||
9.2. Пользователь имеет право вносить изменения в исходный код программного обеспечения исключительно
|
||||
с согласия Правообладателя в порядке предложения изменений/правок/дополнений через механизм
|
||||
«Pull Requests» в открытом репозитории Правообладателя по адресу: https://git.entaxy.ru/entaxy/entaxy-public.
|
||||
9.3. Любые изменения программного обеспечения, осуществляемые Пользователем без соблюдения условий
|
||||
пункта 9.2. настоящего документа, являются нарушением авторских и смежных прав Правообладателя,
|
||||
прав интеллектуальной собственности Правообладателя и влекут применение к Пользователю мер
|
||||
ответственности в соответствии с условиями настоящей Лицензии, а также применимого законодательства
|
||||
Российской Федерации.
|
||||
|
||||
10. ЗАКЛЮЧИТЕЛЬНЫЕ ПОЛОЖЕНИЯ.
|
||||
|
||||
10.1. В случае нарушения Пользователем любого из условий настоящей Лицензии, Правообладатель имеет
|
||||
право взыскать с Пользователя любые причинённые таким нарушением убытки, реальный ущерб,
|
||||
недополученную прибыль, упущенную выгоду, а также в случае нарушения Пользователем условий
|
||||
пункта 9.2 настоящего соглашения, в том числе, взыскать с Пользователя штраф в размере
|
||||
2 000 000 (Два миллиона) рублей за каждый установленный случай несанкционированного изменения
|
||||
исходного или объектного кода Программного обеспечения «Энтакси» (Entaxy).
|
||||
10.2. В рамках исполнения Пользователем обязательств по настоящей Лицензии, применимое
|
||||
законодательство – Российской Федерации.
|
||||
10.3. Если какое-либо положение настоящей Лицензии будет признано судом недействительным,
|
||||
остальные положения будут продолжать своё действие, а Пользователь будет обязан продолжать
|
||||
исполнять свои обязанности в соответствии с этими положениями.
|
@ -0,0 +1,67 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.core.objects-implementations</groupId>
|
||||
<artifactId>service-implementation</artifactId>
|
||||
<version>1.9.0</version>
|
||||
</parent>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.core.objects-implementations.service-implementation</groupId>
|
||||
<artifactId>service-runtime</artifactId>
|
||||
<packaging>bundle</packaging>
|
||||
<name>ENTAXY :: PLATFORM :: CORE :: OBJECTS IMPLEMENTATIONS :: SERVICE :: RUNTIME</name>
|
||||
<description>ENTAXY :: PLATFORM :: CORE :: OBJECTS IMPLEMENTATIONS :: SERVICE :: RUNTIME</description>
|
||||
|
||||
<properties>
|
||||
<bundle.osgi.export.pkg>
|
||||
ru.entaxy.platform.services.runtime,
|
||||
ru.entaxy.platform.services.runtime.exceptions,
|
||||
ru.entaxy.platform.services.runtime.impl,
|
||||
ru.entaxy.platform.services.runtime.interceptor
|
||||
</bundle.osgi.export.pkg>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-core-engine</artifactId>
|
||||
<version>${camel.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.base.resources</groupId>
|
||||
<artifactId>resources-service</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.interceptor</groupId>
|
||||
<artifactId>javax.interceptor-api</artifactId>
|
||||
<version>${javax.interceptor.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-codec</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
<version>${commons-codec.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-cxf</artifactId>
|
||||
<version>${camel.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-wsdl</artifactId>
|
||||
<version>${cxf.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-core</artifactId>
|
||||
<version>${cxf.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ru.entaxy.esb.system.commons</groupId>
|
||||
<artifactId>system-commons</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
@ -0,0 +1,35 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* service-runtime
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2023 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~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.services.runtime;
|
||||
|
||||
public interface EntaxyServiceConnectorInfo {
|
||||
|
||||
String getProfileId();
|
||||
String getServiceId();
|
||||
String getDirection();
|
||||
String getEndpoint();
|
||||
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* system-commons
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2023 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~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.services.runtime.exceptions;
|
||||
|
||||
public class ConnectorNotFound extends RuntimeException {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public ConnectorNotFound() {
|
||||
super();
|
||||
}
|
||||
|
||||
public ConnectorNotFound(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
|
||||
super(message, cause, enableSuppression, writableStackTrace);
|
||||
}
|
||||
|
||||
public ConnectorNotFound(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public ConnectorNotFound(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public ConnectorNotFound(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* service-runtime
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2023 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~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.services.runtime.impl;
|
||||
|
||||
import ru.entaxy.platform.services.runtime.EntaxyServiceConnectorInfo;
|
||||
|
||||
public class EntaxyServiceConnectorInfoImpl implements EntaxyServiceConnectorInfo {
|
||||
|
||||
protected String profileId;
|
||||
protected String serviceId;
|
||||
protected String direction = "in";
|
||||
protected String endpoint;
|
||||
|
||||
@Override
|
||||
public String getProfileId() {
|
||||
return profileId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDirection() {
|
||||
return direction;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getEndpoint() {
|
||||
return endpoint;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getServiceId() {
|
||||
return serviceId;
|
||||
}
|
||||
|
||||
public void setServiceId(String serviceId) {
|
||||
this.serviceId = serviceId;
|
||||
}
|
||||
|
||||
public void setProfileId(String profileId) {
|
||||
this.profileId = profileId;
|
||||
}
|
||||
|
||||
public void setDirection(String direction) {
|
||||
this.direction = direction;
|
||||
}
|
||||
|
||||
public void setEndpoint(String endpoint) {
|
||||
this.endpoint = endpoint;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* service-runtime
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2023 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~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.services.runtime.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.camel.Exchange;
|
||||
|
||||
import ru.entaxy.platform.base.support.CommonUtils;
|
||||
import ru.entaxy.platform.base.support.osgi.service.CommonNamedReferenceListener;
|
||||
import ru.entaxy.platform.services.runtime.EntaxyServiceConnectorInfo;
|
||||
|
||||
public class EntaxyServiceConnectorRegistry extends CommonNamedReferenceListener<EntaxyServiceConnectorInfo> {
|
||||
|
||||
protected List<String> profileNameHeaders = new ArrayList<>();
|
||||
|
||||
@Override
|
||||
protected String getObjectName(EntaxyServiceConnectorInfo connectorInfo) {
|
||||
return String.format("%s-%s", connectorInfo.getDirection(), connectorInfo.getProfileId());
|
||||
}
|
||||
|
||||
public void inConnectorFind(Exchange exchange) {
|
||||
String profileName = getProfileNameFromExchange(exchange);
|
||||
if (!CommonUtils.isValid(profileName))
|
||||
return;
|
||||
String key = "in-" + profileName;
|
||||
if (!isRegistered(key))
|
||||
return;
|
||||
EntaxyServiceConnectorInfo connectorInfo = getReference(key);
|
||||
exchange.getIn().setHeader("NTX_targetConnector", connectorInfo.getEndpoint());
|
||||
}
|
||||
|
||||
protected String getProfileNameFromExchange(Exchange exchange) {
|
||||
String result = null;
|
||||
Map<String, Object> headers = exchange.getIn().getHeaders();
|
||||
for (String headerName: profileNameHeaders) {
|
||||
if (!headers.containsKey(headerName))
|
||||
continue;
|
||||
Object obj = headers.get(headerName);
|
||||
if (obj == null)
|
||||
continue;
|
||||
result = obj.toString();
|
||||
break;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public List<String> getProfileNameHeaders() {
|
||||
return profileNameHeaders;
|
||||
}
|
||||
|
||||
public void setProfileNameHeaders(List<String> profileNameHeaders) {
|
||||
this.profileNameHeaders = profileNameHeaders;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* service-runtime
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2023 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~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.services.runtime.interceptor;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.cxf.interceptor.Fault;
|
||||
import org.apache.cxf.message.Message;
|
||||
import org.apache.cxf.phase.AbstractPhaseInterceptor;
|
||||
import org.apache.cxf.phase.Phase;
|
||||
import org.apache.cxf.transport.http.Headers;
|
||||
import ru.entaxy.esb.system.common.util.SystemHeadersConstants;
|
||||
|
||||
import java.net.URL;
|
||||
import java.util.*;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public class IsSchemaDisplayInterceptor extends AbstractPhaseInterceptor<Message> {
|
||||
|
||||
private static final Log LOG = LogFactory.getLog(IsSchemaDisplayInterceptor.class);
|
||||
|
||||
public static final List<String> SERVICE_SCHEMA_QUERY = new ArrayList<>();
|
||||
public static final List<String> SERVICE_SCHEMA_FILE = new ArrayList<>();
|
||||
|
||||
static {
|
||||
SERVICE_SCHEMA_QUERY.add("wsdl");
|
||||
SERVICE_SCHEMA_QUERY.add("wadl");
|
||||
SERVICE_SCHEMA_QUERY.add("swagger.json");
|
||||
SERVICE_SCHEMA_QUERY.add("open-api.json");
|
||||
SERVICE_SCHEMA_QUERY.add("open-api.yaml");
|
||||
|
||||
SERVICE_SCHEMA_FILE.add(".*\\/openapi\\.json");
|
||||
SERVICE_SCHEMA_FILE.add(".*\\/openapi\\.yaml");
|
||||
SERVICE_SCHEMA_FILE.add(".*api-docs");
|
||||
SERVICE_SCHEMA_FILE.add(".*\\/swagger-ui[^.]*\\.\\w*");
|
||||
}
|
||||
|
||||
public boolean isDisplayServiceSchema;
|
||||
|
||||
public IsSchemaDisplayInterceptor() {
|
||||
super(Phase.RECEIVE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleMessage(Message message) throws Fault {
|
||||
Map<String, List<String>> headers = Headers.getSetProtocolHeaders(message);
|
||||
|
||||
headers.put(SystemHeadersConstants.HEADER_IS_DISPLAY_SERVICE_SERVICE, Collections.singletonList(String.valueOf(checkOnSchema(message))));
|
||||
}
|
||||
|
||||
private boolean checkOnSchema(Message message) {
|
||||
|
||||
if (!isDisplayServiceSchema)
|
||||
return false;
|
||||
|
||||
Object params = message.get(Message.QUERY_STRING);
|
||||
|
||||
for (String schema : SERVICE_SCHEMA_QUERY) {
|
||||
if (params != null && Pattern.matches(schema, params.toString()))
|
||||
return true;
|
||||
}
|
||||
|
||||
params = message.get(Message.REQUEST_URL);
|
||||
try {
|
||||
URL requestUrl = new URL(params.toString());
|
||||
for (String schema : SERVICE_SCHEMA_FILE) {
|
||||
if (Pattern.matches(schema, requestUrl.getFile()))
|
||||
return true;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isDisplayServiceSchema() {
|
||||
return isDisplayServiceSchema;
|
||||
}
|
||||
|
||||
public void setIsDisplayServiceSchema(boolean displayServiceSchema) {
|
||||
this.isDisplayServiceSchema = displayServiceSchema;
|
||||
}
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~~~~~~licensing~~~~~~
|
||||
service-runtime
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 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:camelcxf="http://camel.apache.org/schema/blueprint/cxf"
|
||||
xmlns:cxf="http://cxf.apache.org/blueprint/core"
|
||||
xmlns:esbExchange="http://www.entaxy.ru/connector/universal/esb/1.0"
|
||||
xmlns:soap-type="http://www.entaxy.ru/ExchangeTypes/1.0"
|
||||
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
|
||||
">
|
||||
|
||||
<bean id="proxy-service-resources" activation="eager" class="ru.entaxy.esb.resources.impl.CommonResourceProviderProxy">
|
||||
<property name="protocol" value="service-resources"></property>
|
||||
<property name="targetProtocol" value="entaxy-file-internal"></property>
|
||||
<property name="targetPath" value=".service-resources"></property>
|
||||
</bean>
|
||||
|
||||
<service activation="eager" interface="ru.entaxy.esb.resources.EntaxyResourceProviderProxy" ref="proxy-service-resources"></service>
|
||||
</blueprint>
|
Reference in New Issue
Block a user