Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
5cb6857fa1 | |||
a5088587f7 | |||
2034182607 | |||
da6e1bff7b | |||
574fd61847 |
336
LICENSE.txt
336
LICENSE.txt
@ -1,201 +1,175 @@
|
|||||||
Apache License
|
ЛИЦЕНЗИЯ ОГРАНИЧЕННОГО ПРИМЕНЕНИЯ
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
Настоящий документ устанавливает для Пользователя условия применения Базовой (некоммерческой)
|
||||||
|
версии лицензии для пробного использования программного обеспечения ENTAXY, принадлежащего
|
||||||
|
Правообладателю – Обществу с ограниченной ответственностью "ЕМДЕВ" (ОГРН 1057810026658, ИНН
|
||||||
|
7813313860, юридический адрес: 197022, Россия, г. Санкт-Петербург, ул. Профессора Попова,
|
||||||
|
д. 23, литера В, помещение 3Н), расположенной в сети Интернет по адресу
|
||||||
|
https://www.emdev.ru/about (далее - Компания).
|
||||||
|
|
||||||
1. Definitions.
|
Используя или получая доступ к Программному обеспечению, или нажав «Я согласен с Условиями»
|
||||||
|
(или аналогичную кнопку или флажок) после загрузки или установки Программного обеспечения,
|
||||||
|
Пользователь выражает свое согласие на обязательность условий и ограничений, изложенных в
|
||||||
|
настоящем документе, в противном случае, он должен не использовать или не получать доступ
|
||||||
|
к Программному обеспечению.
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
1. ТЕРМИНЫ И ОПРЕДЕЛЕНИЯ
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
a) ПО – Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) в любой ее версии
|
||||||
the copyright owner that is granting the License.
|
или редакции, исключительные права на которую принадлежат Правообладателю.
|
||||||
|
b) Правообладатель (Компания) – ООО «ЕМДЕВ», ОГРН 1057810026658, ИНН 7813313860, исключительные
|
||||||
|
права которого подтверждаются Свидетельством о государственной регистрации в Реестре программ
|
||||||
|
для ЭВМ № 2021610848 от 19.01.2021 года.
|
||||||
|
c) Пользователь – юридическое или физическое лицо, получившее через скачивание с сайта
|
||||||
|
https://entaxy.ru или иным образом, дистрибутив ПО, пользующееся ПО.
|
||||||
|
d) ИС – интеллектуальная собственность – закреплённое законом исключительное право, а также
|
||||||
|
личные неимущественные права авторов произведений на результат интеллектуальной деятельности.
|
||||||
|
e) Подписка – это коммерческое предложение Правообладателя, состоящее из Лицензии на использование
|
||||||
|
ПО и доступа к технической поддержке программного обеспечения на срок Подписки. Подписка
|
||||||
|
включает предоставление Пользователю неисключительного права использования ПО, в том числе
|
||||||
|
получение обновлений функционала ПО и безопасности ПО, исправление ошибок ПО и получение
|
||||||
|
патчей с обновлениями и исправлениями программного обеспечения. Подписка приобретается
|
||||||
|
Пользователем на период времени, указанный в Сертификате. Количество подписок устанавливается
|
||||||
|
для каждого Пользователя индивидуально в Сертификате.
|
||||||
|
f) Сертификат – документ, выдаваемый Дистрибъютором или Авторизованным партнёром (Партнёром),
|
||||||
|
подтверждающий факт приобретения физическим или юридическим лицом Подписки на программное
|
||||||
|
обеспечение в ограниченном объёме и на определённый период времени.
|
||||||
|
g) Лицензия (простая (неисключительная) – совокупность ограниченных прав использования ПО,
|
||||||
|
предоставленных Пользователю согласно условиям Подписки.
|
||||||
|
h) Библиотека – совокупность подпрограмм и объектов, используемых для разработки программного
|
||||||
|
обеспечения.
|
||||||
|
i) Исходный код – текст компьютерной программы на каком-либо языке программирования, состоящий
|
||||||
|
из одного или нескольких файлов, который может быть прочтён человеком.
|
||||||
|
j) Объектный код – файл (часть машинного кода) с промежуточным представлением отдельного модуля
|
||||||
|
программы, полученный в результате обработки исходного кода, еще не связанный в полную программу.
|
||||||
|
Это машинный код для одной конкретной библиотеки или модуля, который будет составлять готовый
|
||||||
|
продукт.
|
||||||
|
k) Некоммерческое использование – индивидуальное личное использование Пользователем программного
|
||||||
|
обеспечения с целью обучения работе с Программным обеспечением, для оценки или демонстрации
|
||||||
|
возможностей Программного обеспечения, при котором, Пользователем не извлекается коммерческая
|
||||||
|
выгода и/или не идёт в доход денежное вознаграждение при использовании Программного обеспечения.
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
2. ДОПУСТИМЫЕ СПОСОБЫ ИСПОЛЬЗОВАНИЯ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
2.1. Правообладатель предоставляет Пользователю ограниченное право использования Программного
|
||||||
exercising permissions granted by this License.
|
обеспечения на условиях простой (неисключительной) лицензии в объёме, ограниченном правом
|
||||||
|
воспроизведения полной рабочей версии программного обеспечения, новых версий программного обеспечения
|
||||||
|
в памяти оборудования и его запуска на оборудовании в соответствии со ст. 1280 ГК РФ.
|
||||||
|
2.2. Право на использование Программного обеспечения, предоставляемое Пользователю, носит
|
||||||
|
неисключительный характер.
|
||||||
|
2.3. Пользователю предоставляется всемирная, неисключительная, не подлежащая сублицензированию,
|
||||||
|
лицензия на ограниченное использование Программного обеспечения.
|
||||||
|
2.4. Пользователь, имеющий Базовую (некоммерческую) версию лицензии для пробного использования
|
||||||
|
имеет право приобрести Подписку на программное обеспечение. В этом случае Пользователь обязан
|
||||||
|
обратиться в службу поддержки Правообладателя по адресу: https://entaxy.ru/ для изменения
|
||||||
|
вида лицензии с Базовой бесплатной версии на Подписки.
|
||||||
|
2.5. Срок использования скачанной Пользователем базовой (некоммерческой) версии лицензии для
|
||||||
|
пробного использования программного обеспечения – не ограничен.
|
||||||
|
2.6. Использование Пользователем настоящего программного обеспечения в целях разработки,
|
||||||
|
модификации, обновления другого ПО, принадлежащего третьим лицам, а не Правообладателю,
|
||||||
|
без разрешения Правообладателя не допускается.
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
3. АВТОРСКОЕ ПРАВО.
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
3.1. Все авторские права, все права интеллектуальной собственности на Программное обеспечение
|
||||||
transformation or translation of a Source form, including but
|
и любые его копии принадлежат Правообладателю.
|
||||||
not limited to compiled object code, generated documentation,
|
3.2. Все авторские права, все права интеллектуальной собственности в отношении любого контента,
|
||||||
and conversions to other media types.
|
к которому можно получить доступ с помощью Программного обеспечения, является собственностью
|
||||||
|
соответствующего владельца контента и защищается применимым законодательством об авторском
|
||||||
|
праве или другими законами и договорами об интеллектуальной собственности.
|
||||||
|
3.3. Условия использования Программного обеспечения.
|
||||||
|
Лицензия, предоставленная Пользователю, действительна только в том случае, если Пользователь
|
||||||
|
придерживается следующих условий:
|
||||||
|
3.3.1. Принятие уведомлений об авторских правах. Пользователю запрещается удалять или изменять
|
||||||
|
какие-либо уведомления об авторских правах или лицензиях, которые появляются при использовании
|
||||||
|
Программного обеспечения или на нем.
|
||||||
|
3.3.2. Модификация. Пользователю запрещается модифицировать, изменять, декомпилировать,
|
||||||
|
расшифровывать, дизассемблировать, переводить или реверсировать, перепроектировать
|
||||||
|
Программное обеспечение.
|
||||||
|
3.3.3. Распространение. Пользователю запрещается сублицензировать, передавать право использования
|
||||||
|
ПО или иным образом распространять или предоставлять Программное обеспечение любой третьей стороне.
|
||||||
|
3.3.4. SaaS. За исключением случаев, когда это разрешено Правообладателем, Пользователю запрещено
|
||||||
|
использовать Программное обеспечение в коммерческих целях для оказания услуг третьим лицам.
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
4. ОТВЕТСТВЕННОСТЬ ПРАВООБЛАДАТЕЛЯ ПРИ НАРУШЕНИИ ПОЛЬЗОВАТЕЛЕМ ПРАВ «ИС»
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
4.1. Правообладатель не несет никаких обязательств в отношении каких-либо претензий к Пользователю
|
||||||
form, that is based on (or derived from) the Work and for which the
|
на предмет нарушения последним прав Интеллектуальной собственности, возникших в связи с
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
использованием Пользователем:
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
4.1.1. Любых компонентов программного обеспечения с открытым исходным кодом, включенных в
|
||||||
of this License, Derivative Works shall not include works that remain
|
Программное обеспечение;
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
4.1.2. Любого нарушения правил использования Программного обеспечения, установленного условиями
|
||||||
the Work and Derivative Works thereof.
|
настоящего соглашения;
|
||||||
|
4.1.3. Любого использования Программного обеспечения в сочетании с другими ПО, оборудованием,
|
||||||
|
или данными, не предоставленными Пользователю Правообладателем;
|
||||||
|
4.1.4. Любого изменения Программного обеспечения любым третьим лицом, а не Правообладателем.
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
5. НАСТОЯЩИМ ПРАВООБЛАДАТЕЛЬ ЗАЯВЛЯЕТ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ ПОЛЬЗОВАТЕЛЮ
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
ПО ПРИНЦИПУ «AS IS» - «КАК ЕСТЬ». НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ НЕ ГАРАНТИРУЕТ
|
||||||
subsequently incorporated within the Work.
|
И НЕ ОБЕЩАЕТ, ЧТО ПРЕДОСТАВЛЕННОЕ ИМ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ПОДХОДИТЬ ИЛИ НЕ ПОДХОДИТЬ
|
||||||
|
ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ОТВЕЧАТЬ ВСЕМ КОММЕРЧЕСКИМ
|
||||||
|
И ЛИЧНЫМ СУБЪЕКТИВНЫМ ОЖИДАНИЯМ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ РАБОТАТЬ
|
||||||
|
ИСПРАВНО, БЕЗ ТЕХНИЧЕСКИХ ОШИБОК, БЫСТРО И БЕСПЕРЕБОЙНО.
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
6. ОГРАНИЧЕНИЕ ОТВЕТСТВЕННОСТИ.
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ ИЛИ ЕГО АФФИЛЛИРОВАННЫЕ ЛИЦА НЕ НЕСУТ ПЕРЕД ПОЛЬЗОВАТЕЛЕМ
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
ОТВЕТСТВЕННОСТИ ЗА ЛЮБЫЕ ПРЯМЫЕ ИЛИ КОСВЕННЫЕ УБЫТКИ ПОЛЬЗОВАТЕЛЯ, ЕГО РАСХОДЫ ИЛИ РЕАЛЬНЫЙ УЩЕРБ,
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
ВКЛЮЧАЯ, ПОМИМО ПРОЧЕГО, ПРОСТОИ; УТРАТУ БИЗНЕСА; УПУЩЕННУЮ ВЫГОДУ; НЕДОПОЛУЧЕННУЮ ПРИБЫЛЬ;
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
ПОТЕРЮ ИЛИ ПОВРЕЖДЕНИЕ ДАННЫХ, ИМУЩЕСТВА И ИНОЕ.
|
||||||
Work and such Derivative Works in Source or Object form.
|
ОГРАНИЧЕНИЯ ПРИМЕНЯЮТСЯ НЕЗАВИСИМО ОТ ОСНОВАНИЯ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ; В ТОМ ЧИСЛЕ ВСЛЕДСТВИЕ
|
||||||
|
ДЕЙСТВИЯ ИЛИ БЕЗДЕЙСТВИЯ, НЕБРЕЖНОСТИ, УМЫСЛА, ПРЯМОГО ИЛИ КОСВЕННОГО; НЕОСТОРОЖНОСТИ; ЗАБЛУЖДЕНИЯ;
|
||||||
|
КЛЕВЕТЫ; НАРУШЕНИЯ КОНФИДЕНЦИАЛЬНОСТИ ИЛИ ПРАВА ИНТЕЛЛЕКТУАЛЬНОЙ СОБСТВЕННОСТИ; ИЛИ ЛЮБОЕ ДРУГОЕ
|
||||||
|
ОСНОВАНИЕ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ.
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
7. ОБЯЗАННОСТЬ ПОЛЬЗОВАТЕЛЯ:
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
Не осуществлять самостоятельно и (или) с привлечением третьих лиц нижеследующие действия
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
(включая, но не ограничиваясь) по:
|
||||||
(except as stated in this section) patent license to make, have made,
|
-дизассемблированию и (или) декомпилированию (преобразованию объектного кода в исходный код)
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
Программного обеспечения;
|
||||||
where such license applies only to those patent claims licensable
|
-модификации Программного обеспечения, в том числе вносить изменения в объектный код, исходный
|
||||||
by such Contributor that are necessarily infringed by their
|
код Программного обеспечения, за исключением тех изменений, которые вносятся средствами,
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
включёнными в Программное обеспечение и описанными непосредственно в документации к нему;
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
-созданию условий для использования Программного обеспечения лицами, не имеющими прав на
|
||||||
institute patent litigation against any entity (including a
|
использование данного Программного обеспечения, включая (но не ограничиваясь) вмешательство
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
третьих лиц в функционирование Программного обеспечения, предоставление третьим лицам доступа
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
к исследованию и (или) замене настроек Программного обеспечения, включая его первичную установку;
|
||||||
or contributory patent infringement, then any patent licenses
|
-распространению Программного обеспечения в целом или в части (включая приложенную к нему документацию).
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
8. БИБЛИОТЕКА ПО. ИСПОЛЬЗУЕМЫЕ ПРОГРАММНЫЕ СРЕДСТВА.
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
8.1. Настоящим, Правообладатель заверяет, что Библиотека программного обеспечения состоит из
|
||||||
Derivative Works a copy of this License; and
|
лицензионных продуктов, используемых на законных основаниях, а
|
||||||
|
именно https://entaxy.ru/libs/licenses/root-aggregated.deps.
|
||||||
|
8.2. Любые программные средства, применяемые Пользователем при работе с ПО, должны быть
|
||||||
|
совместимы с библиотекой ПО, указанной в п.8.1. настоящего соглашения.
|
||||||
|
8.3. Перечень внешних модулей ПО, указанный в п.8.1 настоящего соглашения, может изменяться
|
||||||
|
Правообладателем в одностороннем порядке, в зависимости от выпуска релизов программного обеспечения,
|
||||||
|
содержащих все изменения и дополнения программного обеспечения.
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
9. ВНЕСЕНИЕ ИЗМЕНЕНИЙ В ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ.
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
9.1. Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) является свободно распространяемым
|
||||||
that You distribute, all copyright, patent, trademark, and
|
программным обеспечением.
|
||||||
attribution notices from the Source form of the Work,
|
9.2. Пользователь имеет право вносить изменения в исходный код программного обеспечения исключительно
|
||||||
excluding those notices that do not pertain to any part of
|
с согласия Правообладателя в порядке предложения изменений/правок/дополнений через механизм
|
||||||
the Derivative Works; and
|
«Pull Requests» в открытом репозитории Правообладателя по адресу: https://git.entaxy.ru/entaxy/entaxy-public.
|
||||||
|
9.3. Любые изменения программного обеспечения, осуществляемые Пользователем без соблюдения условий
|
||||||
|
пункта 9.2. настоящего документа, являются нарушением авторских и смежных прав Правообладателя,
|
||||||
|
прав интеллектуальной собственности Правообладателя и влекут применение к Пользователю мер
|
||||||
|
ответственности в соответствии с условиями настоящей Лицензии, а также применимого законодательства
|
||||||
|
Российской Федерации.
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
10. ЗАКЛЮЧИТЕЛЬНЫЕ ПОЛОЖЕНИЯ.
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
10.1. В случае нарушения Пользователем любого из условий настоящей Лицензии, Правообладатель имеет
|
||||||
may provide additional or different license terms and conditions
|
право взыскать с Пользователя любые причинённые таким нарушением убытки, реальный ущерб,
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
недополученную прибыль, упущенную выгоду, а также в случае нарушения Пользователем условий
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
пункта 9.2 настоящего соглашения, в том числе, взыскать с Пользователя штраф в размере
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
2 000 000 (Два миллиона) рублей за каждый установленный случай несанкционированного изменения
|
||||||
the conditions stated in this License.
|
исходного или объектного кода Программного обеспечения «Энтакси» (Entaxy).
|
||||||
|
10.2. В рамках исполнения Пользователем обязательств по настоящей Лицензии, применимое
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
законодательство – Российской Федерации.
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
10.3. Если какое-либо положение настоящей Лицензии будет признано судом недействительным,
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
остальные положения будут продолжать своё действие, а Пользователь будет обязан продолжать
|
||||||
this License, without any additional terms or conditions.
|
исполнять свои обязанности в соответствии с этими положениями.
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
|
@ -1,201 +1,175 @@
|
|||||||
Apache License
|
ЛИЦЕНЗИЯ ОГРАНИЧЕННОГО ПРИМЕНЕНИЯ
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
Настоящий документ устанавливает для Пользователя условия применения Базовой (некоммерческой)
|
||||||
|
версии лицензии для пробного использования программного обеспечения ENTAXY, принадлежащего
|
||||||
|
Правообладателю – Обществу с ограниченной ответственностью "ЕМДЕВ" (ОГРН 1057810026658, ИНН
|
||||||
|
7813313860, юридический адрес: 197022, Россия, г. Санкт-Петербург, ул. Профессора Попова,
|
||||||
|
д. 23, литера В, помещение 3Н), расположенной в сети Интернет по адресу
|
||||||
|
https://www.emdev.ru/about (далее - Компания).
|
||||||
|
|
||||||
1. Definitions.
|
Используя или получая доступ к Программному обеспечению, или нажав «Я согласен с Условиями»
|
||||||
|
(или аналогичную кнопку или флажок) после загрузки или установки Программного обеспечения,
|
||||||
|
Пользователь выражает свое согласие на обязательность условий и ограничений, изложенных в
|
||||||
|
настоящем документе, в противном случае, он должен не использовать или не получать доступ
|
||||||
|
к Программному обеспечению.
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
1. ТЕРМИНЫ И ОПРЕДЕЛЕНИЯ
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
a) ПО – Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) в любой ее версии
|
||||||
the copyright owner that is granting the License.
|
или редакции, исключительные права на которую принадлежат Правообладателю.
|
||||||
|
b) Правообладатель (Компания) – ООО «ЕМДЕВ», ОГРН 1057810026658, ИНН 7813313860, исключительные
|
||||||
|
права которого подтверждаются Свидетельством о государственной регистрации в Реестре программ
|
||||||
|
для ЭВМ № 2021610848 от 19.01.2021 года.
|
||||||
|
c) Пользователь – юридическое или физическое лицо, получившее через скачивание с сайта
|
||||||
|
https://entaxy.ru или иным образом, дистрибутив ПО, пользующееся ПО.
|
||||||
|
d) ИС – интеллектуальная собственность – закреплённое законом исключительное право, а также
|
||||||
|
личные неимущественные права авторов произведений на результат интеллектуальной деятельности.
|
||||||
|
e) Подписка – это коммерческое предложение Правообладателя, состоящее из Лицензии на использование
|
||||||
|
ПО и доступа к технической поддержке программного обеспечения на срок Подписки. Подписка
|
||||||
|
включает предоставление Пользователю неисключительного права использования ПО, в том числе
|
||||||
|
получение обновлений функционала ПО и безопасности ПО, исправление ошибок ПО и получение
|
||||||
|
патчей с обновлениями и исправлениями программного обеспечения. Подписка приобретается
|
||||||
|
Пользователем на период времени, указанный в Сертификате. Количество подписок устанавливается
|
||||||
|
для каждого Пользователя индивидуально в Сертификате.
|
||||||
|
f) Сертификат – документ, выдаваемый Дистрибъютором или Авторизованным партнёром (Партнёром),
|
||||||
|
подтверждающий факт приобретения физическим или юридическим лицом Подписки на программное
|
||||||
|
обеспечение в ограниченном объёме и на определённый период времени.
|
||||||
|
g) Лицензия (простая (неисключительная) – совокупность ограниченных прав использования ПО,
|
||||||
|
предоставленных Пользователю согласно условиям Подписки.
|
||||||
|
h) Библиотека – совокупность подпрограмм и объектов, используемых для разработки программного
|
||||||
|
обеспечения.
|
||||||
|
i) Исходный код – текст компьютерной программы на каком-либо языке программирования, состоящий
|
||||||
|
из одного или нескольких файлов, который может быть прочтён человеком.
|
||||||
|
j) Объектный код – файл (часть машинного кода) с промежуточным представлением отдельного модуля
|
||||||
|
программы, полученный в результате обработки исходного кода, еще не связанный в полную программу.
|
||||||
|
Это машинный код для одной конкретной библиотеки или модуля, который будет составлять готовый
|
||||||
|
продукт.
|
||||||
|
k) Некоммерческое использование – индивидуальное личное использование Пользователем программного
|
||||||
|
обеспечения с целью обучения работе с Программным обеспечением, для оценки или демонстрации
|
||||||
|
возможностей Программного обеспечения, при котором, Пользователем не извлекается коммерческая
|
||||||
|
выгода и/или не идёт в доход денежное вознаграждение при использовании Программного обеспечения.
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
2. ДОПУСТИМЫЕ СПОСОБЫ ИСПОЛЬЗОВАНИЯ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
2.1. Правообладатель предоставляет Пользователю ограниченное право использования Программного
|
||||||
exercising permissions granted by this License.
|
обеспечения на условиях простой (неисключительной) лицензии в объёме, ограниченном правом
|
||||||
|
воспроизведения полной рабочей версии программного обеспечения, новых версий программного обеспечения
|
||||||
|
в памяти оборудования и его запуска на оборудовании в соответствии со ст. 1280 ГК РФ.
|
||||||
|
2.2. Право на использование Программного обеспечения, предоставляемое Пользователю, носит
|
||||||
|
неисключительный характер.
|
||||||
|
2.3. Пользователю предоставляется всемирная, неисключительная, не подлежащая сублицензированию,
|
||||||
|
лицензия на ограниченное использование Программного обеспечения.
|
||||||
|
2.4. Пользователь, имеющий Базовую (некоммерческую) версию лицензии для пробного использования
|
||||||
|
имеет право приобрести Подписку на программное обеспечение. В этом случае Пользователь обязан
|
||||||
|
обратиться в службу поддержки Правообладателя по адресу: https://entaxy.ru/ для изменения
|
||||||
|
вида лицензии с Базовой бесплатной версии на Подписки.
|
||||||
|
2.5. Срок использования скачанной Пользователем базовой (некоммерческой) версии лицензии для
|
||||||
|
пробного использования программного обеспечения – не ограничен.
|
||||||
|
2.6. Использование Пользователем настоящего программного обеспечения в целях разработки,
|
||||||
|
модификации, обновления другого ПО, принадлежащего третьим лицам, а не Правообладателю,
|
||||||
|
без разрешения Правообладателя не допускается.
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
3. АВТОРСКОЕ ПРАВО.
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
3.1. Все авторские права, все права интеллектуальной собственности на Программное обеспечение
|
||||||
transformation or translation of a Source form, including but
|
и любые его копии принадлежат Правообладателю.
|
||||||
not limited to compiled object code, generated documentation,
|
3.2. Все авторские права, все права интеллектуальной собственности в отношении любого контента,
|
||||||
and conversions to other media types.
|
к которому можно получить доступ с помощью Программного обеспечения, является собственностью
|
||||||
|
соответствующего владельца контента и защищается применимым законодательством об авторском
|
||||||
|
праве или другими законами и договорами об интеллектуальной собственности.
|
||||||
|
3.3. Условия использования Программного обеспечения.
|
||||||
|
Лицензия, предоставленная Пользователю, действительна только в том случае, если Пользователь
|
||||||
|
придерживается следующих условий:
|
||||||
|
3.3.1. Принятие уведомлений об авторских правах. Пользователю запрещается удалять или изменять
|
||||||
|
какие-либо уведомления об авторских правах или лицензиях, которые появляются при использовании
|
||||||
|
Программного обеспечения или на нем.
|
||||||
|
3.3.2. Модификация. Пользователю запрещается модифицировать, изменять, декомпилировать,
|
||||||
|
расшифровывать, дизассемблировать, переводить или реверсировать, перепроектировать
|
||||||
|
Программное обеспечение.
|
||||||
|
3.3.3. Распространение. Пользователю запрещается сублицензировать, передавать право использования
|
||||||
|
ПО или иным образом распространять или предоставлять Программное обеспечение любой третьей стороне.
|
||||||
|
3.3.4. SaaS. За исключением случаев, когда это разрешено Правообладателем, Пользователю запрещено
|
||||||
|
использовать Программное обеспечение в коммерческих целях для оказания услуг третьим лицам.
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
4. ОТВЕТСТВЕННОСТЬ ПРАВООБЛАДАТЕЛЯ ПРИ НАРУШЕНИИ ПОЛЬЗОВАТЕЛЕМ ПРАВ «ИС»
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
4.1. Правообладатель не несет никаких обязательств в отношении каких-либо претензий к Пользователю
|
||||||
form, that is based on (or derived from) the Work and for which the
|
на предмет нарушения последним прав Интеллектуальной собственности, возникших в связи с
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
использованием Пользователем:
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
4.1.1. Любых компонентов программного обеспечения с открытым исходным кодом, включенных в
|
||||||
of this License, Derivative Works shall not include works that remain
|
Программное обеспечение;
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
4.1.2. Любого нарушения правил использования Программного обеспечения, установленного условиями
|
||||||
the Work and Derivative Works thereof.
|
настоящего соглашения;
|
||||||
|
4.1.3. Любого использования Программного обеспечения в сочетании с другими ПО, оборудованием,
|
||||||
|
или данными, не предоставленными Пользователю Правообладателем;
|
||||||
|
4.1.4. Любого изменения Программного обеспечения любым третьим лицом, а не Правообладателем.
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
5. НАСТОЯЩИМ ПРАВООБЛАДАТЕЛЬ ЗАЯВЛЯЕТ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ ПОЛЬЗОВАТЕЛЮ
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
ПО ПРИНЦИПУ «AS IS» - «КАК ЕСТЬ». НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ НЕ ГАРАНТИРУЕТ
|
||||||
subsequently incorporated within the Work.
|
И НЕ ОБЕЩАЕТ, ЧТО ПРЕДОСТАВЛЕННОЕ ИМ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ПОДХОДИТЬ ИЛИ НЕ ПОДХОДИТЬ
|
||||||
|
ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ОТВЕЧАТЬ ВСЕМ КОММЕРЧЕСКИМ
|
||||||
|
И ЛИЧНЫМ СУБЪЕКТИВНЫМ ОЖИДАНИЯМ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ РАБОТАТЬ
|
||||||
|
ИСПРАВНО, БЕЗ ТЕХНИЧЕСКИХ ОШИБОК, БЫСТРО И БЕСПЕРЕБОЙНО.
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
6. ОГРАНИЧЕНИЕ ОТВЕТСТВЕННОСТИ.
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ ИЛИ ЕГО АФФИЛЛИРОВАННЫЕ ЛИЦА НЕ НЕСУТ ПЕРЕД ПОЛЬЗОВАТЕЛЕМ
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
ОТВЕТСТВЕННОСТИ ЗА ЛЮБЫЕ ПРЯМЫЕ ИЛИ КОСВЕННЫЕ УБЫТКИ ПОЛЬЗОВАТЕЛЯ, ЕГО РАСХОДЫ ИЛИ РЕАЛЬНЫЙ УЩЕРБ,
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
ВКЛЮЧАЯ, ПОМИМО ПРОЧЕГО, ПРОСТОИ; УТРАТУ БИЗНЕСА; УПУЩЕННУЮ ВЫГОДУ; НЕДОПОЛУЧЕННУЮ ПРИБЫЛЬ;
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
ПОТЕРЮ ИЛИ ПОВРЕЖДЕНИЕ ДАННЫХ, ИМУЩЕСТВА И ИНОЕ.
|
||||||
Work and such Derivative Works in Source or Object form.
|
ОГРАНИЧЕНИЯ ПРИМЕНЯЮТСЯ НЕЗАВИСИМО ОТ ОСНОВАНИЯ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ; В ТОМ ЧИСЛЕ ВСЛЕДСТВИЕ
|
||||||
|
ДЕЙСТВИЯ ИЛИ БЕЗДЕЙСТВИЯ, НЕБРЕЖНОСТИ, УМЫСЛА, ПРЯМОГО ИЛИ КОСВЕННОГО; НЕОСТОРОЖНОСТИ; ЗАБЛУЖДЕНИЯ;
|
||||||
|
КЛЕВЕТЫ; НАРУШЕНИЯ КОНФИДЕНЦИАЛЬНОСТИ ИЛИ ПРАВА ИНТЕЛЛЕКТУАЛЬНОЙ СОБСТВЕННОСТИ; ИЛИ ЛЮБОЕ ДРУГОЕ
|
||||||
|
ОСНОВАНИЕ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ.
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
7. ОБЯЗАННОСТЬ ПОЛЬЗОВАТЕЛЯ:
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
Не осуществлять самостоятельно и (или) с привлечением третьих лиц нижеследующие действия
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
(включая, но не ограничиваясь) по:
|
||||||
(except as stated in this section) patent license to make, have made,
|
-дизассемблированию и (или) декомпилированию (преобразованию объектного кода в исходный код)
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
Программного обеспечения;
|
||||||
where such license applies only to those patent claims licensable
|
-модификации Программного обеспечения, в том числе вносить изменения в объектный код, исходный
|
||||||
by such Contributor that are necessarily infringed by their
|
код Программного обеспечения, за исключением тех изменений, которые вносятся средствами,
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
включёнными в Программное обеспечение и описанными непосредственно в документации к нему;
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
-созданию условий для использования Программного обеспечения лицами, не имеющими прав на
|
||||||
institute patent litigation against any entity (including a
|
использование данного Программного обеспечения, включая (но не ограничиваясь) вмешательство
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
третьих лиц в функционирование Программного обеспечения, предоставление третьим лицам доступа
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
к исследованию и (или) замене настроек Программного обеспечения, включая его первичную установку;
|
||||||
or contributory patent infringement, then any patent licenses
|
-распространению Программного обеспечения в целом или в части (включая приложенную к нему документацию).
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
8. БИБЛИОТЕКА ПО. ИСПОЛЬЗУЕМЫЕ ПРОГРАММНЫЕ СРЕДСТВА.
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
8.1. Настоящим, Правообладатель заверяет, что Библиотека программного обеспечения состоит из
|
||||||
Derivative Works a copy of this License; and
|
лицензионных продуктов, используемых на законных основаниях, а
|
||||||
|
именно https://entaxy.ru/libs/licenses/root-aggregated.deps.
|
||||||
|
8.2. Любые программные средства, применяемые Пользователем при работе с ПО, должны быть
|
||||||
|
совместимы с библиотекой ПО, указанной в п.8.1. настоящего соглашения.
|
||||||
|
8.3. Перечень внешних модулей ПО, указанный в п.8.1 настоящего соглашения, может изменяться
|
||||||
|
Правообладателем в одностороннем порядке, в зависимости от выпуска релизов программного обеспечения,
|
||||||
|
содержащих все изменения и дополнения программного обеспечения.
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
9. ВНЕСЕНИЕ ИЗМЕНЕНИЙ В ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ.
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
9.1. Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) является свободно распространяемым
|
||||||
that You distribute, all copyright, patent, trademark, and
|
программным обеспечением.
|
||||||
attribution notices from the Source form of the Work,
|
9.2. Пользователь имеет право вносить изменения в исходный код программного обеспечения исключительно
|
||||||
excluding those notices that do not pertain to any part of
|
с согласия Правообладателя в порядке предложения изменений/правок/дополнений через механизм
|
||||||
the Derivative Works; and
|
«Pull Requests» в открытом репозитории Правообладателя по адресу: https://git.entaxy.ru/entaxy/entaxy-public.
|
||||||
|
9.3. Любые изменения программного обеспечения, осуществляемые Пользователем без соблюдения условий
|
||||||
|
пункта 9.2. настоящего документа, являются нарушением авторских и смежных прав Правообладателя,
|
||||||
|
прав интеллектуальной собственности Правообладателя и влекут применение к Пользователю мер
|
||||||
|
ответственности в соответствии с условиями настоящей Лицензии, а также применимого законодательства
|
||||||
|
Российской Федерации.
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
10. ЗАКЛЮЧИТЕЛЬНЫЕ ПОЛОЖЕНИЯ.
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
10.1. В случае нарушения Пользователем любого из условий настоящей Лицензии, Правообладатель имеет
|
||||||
may provide additional or different license terms and conditions
|
право взыскать с Пользователя любые причинённые таким нарушением убытки, реальный ущерб,
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
недополученную прибыль, упущенную выгоду, а также в случае нарушения Пользователем условий
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
пункта 9.2 настоящего соглашения, в том числе, взыскать с Пользователя штраф в размере
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
2 000 000 (Два миллиона) рублей за каждый установленный случай несанкционированного изменения
|
||||||
the conditions stated in this License.
|
исходного или объектного кода Программного обеспечения «Энтакси» (Entaxy).
|
||||||
|
10.2. В рамках исполнения Пользователем обязательств по настоящей Лицензии, применимое
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
законодательство – Российской Федерации.
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
10.3. Если какое-либо положение настоящей Лицензии будет признано судом недействительным,
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
остальные положения будут продолжать своё действие, а Пользователь будет обязан продолжать
|
||||||
this License, without any additional terms or conditions.
|
исполнять свои обязанности в соответствии с этими положениями.
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>root</artifactId>
|
<artifactId>root</artifactId>
|
||||||
<groupId>ru.entaxy.esb</groupId>
|
<groupId>ru.entaxy.esb</groupId>
|
||||||
<version>1.8.3</version>
|
<version>1.10.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>runtime</module>
|
<module>runtime</module>
|
||||||
|
<module>integration</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
|
@ -1,201 +1,175 @@
|
|||||||
Apache License
|
ЛИЦЕНЗИЯ ОГРАНИЧЕННОГО ПРИМЕНЕНИЯ
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
Настоящий документ устанавливает для Пользователя условия применения Базовой (некоммерческой)
|
||||||
|
версии лицензии для пробного использования программного обеспечения ENTAXY, принадлежащего
|
||||||
|
Правообладателю – Обществу с ограниченной ответственностью "ЕМДЕВ" (ОГРН 1057810026658, ИНН
|
||||||
|
7813313860, юридический адрес: 197022, Россия, г. Санкт-Петербург, ул. Профессора Попова,
|
||||||
|
д. 23, литера В, помещение 3Н), расположенной в сети Интернет по адресу
|
||||||
|
https://www.emdev.ru/about (далее - Компания).
|
||||||
|
|
||||||
1. Definitions.
|
Используя или получая доступ к Программному обеспечению, или нажав «Я согласен с Условиями»
|
||||||
|
(или аналогичную кнопку или флажок) после загрузки или установки Программного обеспечения,
|
||||||
|
Пользователь выражает свое согласие на обязательность условий и ограничений, изложенных в
|
||||||
|
настоящем документе, в противном случае, он должен не использовать или не получать доступ
|
||||||
|
к Программному обеспечению.
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
1. ТЕРМИНЫ И ОПРЕДЕЛЕНИЯ
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
a) ПО – Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) в любой ее версии
|
||||||
the copyright owner that is granting the License.
|
или редакции, исключительные права на которую принадлежат Правообладателю.
|
||||||
|
b) Правообладатель (Компания) – ООО «ЕМДЕВ», ОГРН 1057810026658, ИНН 7813313860, исключительные
|
||||||
|
права которого подтверждаются Свидетельством о государственной регистрации в Реестре программ
|
||||||
|
для ЭВМ № 2021610848 от 19.01.2021 года.
|
||||||
|
c) Пользователь – юридическое или физическое лицо, получившее через скачивание с сайта
|
||||||
|
https://entaxy.ru или иным образом, дистрибутив ПО, пользующееся ПО.
|
||||||
|
d) ИС – интеллектуальная собственность – закреплённое законом исключительное право, а также
|
||||||
|
личные неимущественные права авторов произведений на результат интеллектуальной деятельности.
|
||||||
|
e) Подписка – это коммерческое предложение Правообладателя, состоящее из Лицензии на использование
|
||||||
|
ПО и доступа к технической поддержке программного обеспечения на срок Подписки. Подписка
|
||||||
|
включает предоставление Пользователю неисключительного права использования ПО, в том числе
|
||||||
|
получение обновлений функционала ПО и безопасности ПО, исправление ошибок ПО и получение
|
||||||
|
патчей с обновлениями и исправлениями программного обеспечения. Подписка приобретается
|
||||||
|
Пользователем на период времени, указанный в Сертификате. Количество подписок устанавливается
|
||||||
|
для каждого Пользователя индивидуально в Сертификате.
|
||||||
|
f) Сертификат – документ, выдаваемый Дистрибъютором или Авторизованным партнёром (Партнёром),
|
||||||
|
подтверждающий факт приобретения физическим или юридическим лицом Подписки на программное
|
||||||
|
обеспечение в ограниченном объёме и на определённый период времени.
|
||||||
|
g) Лицензия (простая (неисключительная) – совокупность ограниченных прав использования ПО,
|
||||||
|
предоставленных Пользователю согласно условиям Подписки.
|
||||||
|
h) Библиотека – совокупность подпрограмм и объектов, используемых для разработки программного
|
||||||
|
обеспечения.
|
||||||
|
i) Исходный код – текст компьютерной программы на каком-либо языке программирования, состоящий
|
||||||
|
из одного или нескольких файлов, который может быть прочтён человеком.
|
||||||
|
j) Объектный код – файл (часть машинного кода) с промежуточным представлением отдельного модуля
|
||||||
|
программы, полученный в результате обработки исходного кода, еще не связанный в полную программу.
|
||||||
|
Это машинный код для одной конкретной библиотеки или модуля, который будет составлять готовый
|
||||||
|
продукт.
|
||||||
|
k) Некоммерческое использование – индивидуальное личное использование Пользователем программного
|
||||||
|
обеспечения с целью обучения работе с Программным обеспечением, для оценки или демонстрации
|
||||||
|
возможностей Программного обеспечения, при котором, Пользователем не извлекается коммерческая
|
||||||
|
выгода и/или не идёт в доход денежное вознаграждение при использовании Программного обеспечения.
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
2. ДОПУСТИМЫЕ СПОСОБЫ ИСПОЛЬЗОВАНИЯ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
2.1. Правообладатель предоставляет Пользователю ограниченное право использования Программного
|
||||||
exercising permissions granted by this License.
|
обеспечения на условиях простой (неисключительной) лицензии в объёме, ограниченном правом
|
||||||
|
воспроизведения полной рабочей версии программного обеспечения, новых версий программного обеспечения
|
||||||
|
в памяти оборудования и его запуска на оборудовании в соответствии со ст. 1280 ГК РФ.
|
||||||
|
2.2. Право на использование Программного обеспечения, предоставляемое Пользователю, носит
|
||||||
|
неисключительный характер.
|
||||||
|
2.3. Пользователю предоставляется всемирная, неисключительная, не подлежащая сублицензированию,
|
||||||
|
лицензия на ограниченное использование Программного обеспечения.
|
||||||
|
2.4. Пользователь, имеющий Базовую (некоммерческую) версию лицензии для пробного использования
|
||||||
|
имеет право приобрести Подписку на программное обеспечение. В этом случае Пользователь обязан
|
||||||
|
обратиться в службу поддержки Правообладателя по адресу: https://entaxy.ru/ для изменения
|
||||||
|
вида лицензии с Базовой бесплатной версии на Подписки.
|
||||||
|
2.5. Срок использования скачанной Пользователем базовой (некоммерческой) версии лицензии для
|
||||||
|
пробного использования программного обеспечения – не ограничен.
|
||||||
|
2.6. Использование Пользователем настоящего программного обеспечения в целях разработки,
|
||||||
|
модификации, обновления другого ПО, принадлежащего третьим лицам, а не Правообладателю,
|
||||||
|
без разрешения Правообладателя не допускается.
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
3. АВТОРСКОЕ ПРАВО.
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
3.1. Все авторские права, все права интеллектуальной собственности на Программное обеспечение
|
||||||
transformation or translation of a Source form, including but
|
и любые его копии принадлежат Правообладателю.
|
||||||
not limited to compiled object code, generated documentation,
|
3.2. Все авторские права, все права интеллектуальной собственности в отношении любого контента,
|
||||||
and conversions to other media types.
|
к которому можно получить доступ с помощью Программного обеспечения, является собственностью
|
||||||
|
соответствующего владельца контента и защищается применимым законодательством об авторском
|
||||||
|
праве или другими законами и договорами об интеллектуальной собственности.
|
||||||
|
3.3. Условия использования Программного обеспечения.
|
||||||
|
Лицензия, предоставленная Пользователю, действительна только в том случае, если Пользователь
|
||||||
|
придерживается следующих условий:
|
||||||
|
3.3.1. Принятие уведомлений об авторских правах. Пользователю запрещается удалять или изменять
|
||||||
|
какие-либо уведомления об авторских правах или лицензиях, которые появляются при использовании
|
||||||
|
Программного обеспечения или на нем.
|
||||||
|
3.3.2. Модификация. Пользователю запрещается модифицировать, изменять, декомпилировать,
|
||||||
|
расшифровывать, дизассемблировать, переводить или реверсировать, перепроектировать
|
||||||
|
Программное обеспечение.
|
||||||
|
3.3.3. Распространение. Пользователю запрещается сублицензировать, передавать право использования
|
||||||
|
ПО или иным образом распространять или предоставлять Программное обеспечение любой третьей стороне.
|
||||||
|
3.3.4. SaaS. За исключением случаев, когда это разрешено Правообладателем, Пользователю запрещено
|
||||||
|
использовать Программное обеспечение в коммерческих целях для оказания услуг третьим лицам.
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
4. ОТВЕТСТВЕННОСТЬ ПРАВООБЛАДАТЕЛЯ ПРИ НАРУШЕНИИ ПОЛЬЗОВАТЕЛЕМ ПРАВ «ИС»
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
4.1. Правообладатель не несет никаких обязательств в отношении каких-либо претензий к Пользователю
|
||||||
form, that is based on (or derived from) the Work and for which the
|
на предмет нарушения последним прав Интеллектуальной собственности, возникших в связи с
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
использованием Пользователем:
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
4.1.1. Любых компонентов программного обеспечения с открытым исходным кодом, включенных в
|
||||||
of this License, Derivative Works shall not include works that remain
|
Программное обеспечение;
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
4.1.2. Любого нарушения правил использования Программного обеспечения, установленного условиями
|
||||||
the Work and Derivative Works thereof.
|
настоящего соглашения;
|
||||||
|
4.1.3. Любого использования Программного обеспечения в сочетании с другими ПО, оборудованием,
|
||||||
|
или данными, не предоставленными Пользователю Правообладателем;
|
||||||
|
4.1.4. Любого изменения Программного обеспечения любым третьим лицом, а не Правообладателем.
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
5. НАСТОЯЩИМ ПРАВООБЛАДАТЕЛЬ ЗАЯВЛЯЕТ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ ПОЛЬЗОВАТЕЛЮ
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
ПО ПРИНЦИПУ «AS IS» - «КАК ЕСТЬ». НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ НЕ ГАРАНТИРУЕТ
|
||||||
subsequently incorporated within the Work.
|
И НЕ ОБЕЩАЕТ, ЧТО ПРЕДОСТАВЛЕННОЕ ИМ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ПОДХОДИТЬ ИЛИ НЕ ПОДХОДИТЬ
|
||||||
|
ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ОТВЕЧАТЬ ВСЕМ КОММЕРЧЕСКИМ
|
||||||
|
И ЛИЧНЫМ СУБЪЕКТИВНЫМ ОЖИДАНИЯМ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ РАБОТАТЬ
|
||||||
|
ИСПРАВНО, БЕЗ ТЕХНИЧЕСКИХ ОШИБОК, БЫСТРО И БЕСПЕРЕБОЙНО.
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
6. ОГРАНИЧЕНИЕ ОТВЕТСТВЕННОСТИ.
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ ИЛИ ЕГО АФФИЛЛИРОВАННЫЕ ЛИЦА НЕ НЕСУТ ПЕРЕД ПОЛЬЗОВАТЕЛЕМ
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
ОТВЕТСТВЕННОСТИ ЗА ЛЮБЫЕ ПРЯМЫЕ ИЛИ КОСВЕННЫЕ УБЫТКИ ПОЛЬЗОВАТЕЛЯ, ЕГО РАСХОДЫ ИЛИ РЕАЛЬНЫЙ УЩЕРБ,
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
ВКЛЮЧАЯ, ПОМИМО ПРОЧЕГО, ПРОСТОИ; УТРАТУ БИЗНЕСА; УПУЩЕННУЮ ВЫГОДУ; НЕДОПОЛУЧЕННУЮ ПРИБЫЛЬ;
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
ПОТЕРЮ ИЛИ ПОВРЕЖДЕНИЕ ДАННЫХ, ИМУЩЕСТВА И ИНОЕ.
|
||||||
Work and such Derivative Works in Source or Object form.
|
ОГРАНИЧЕНИЯ ПРИМЕНЯЮТСЯ НЕЗАВИСИМО ОТ ОСНОВАНИЯ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ; В ТОМ ЧИСЛЕ ВСЛЕДСТВИЕ
|
||||||
|
ДЕЙСТВИЯ ИЛИ БЕЗДЕЙСТВИЯ, НЕБРЕЖНОСТИ, УМЫСЛА, ПРЯМОГО ИЛИ КОСВЕННОГО; НЕОСТОРОЖНОСТИ; ЗАБЛУЖДЕНИЯ;
|
||||||
|
КЛЕВЕТЫ; НАРУШЕНИЯ КОНФИДЕНЦИАЛЬНОСТИ ИЛИ ПРАВА ИНТЕЛЛЕКТУАЛЬНОЙ СОБСТВЕННОСТИ; ИЛИ ЛЮБОЕ ДРУГОЕ
|
||||||
|
ОСНОВАНИЕ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ.
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
7. ОБЯЗАННОСТЬ ПОЛЬЗОВАТЕЛЯ:
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
Не осуществлять самостоятельно и (или) с привлечением третьих лиц нижеследующие действия
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
(включая, но не ограничиваясь) по:
|
||||||
(except as stated in this section) patent license to make, have made,
|
-дизассемблированию и (или) декомпилированию (преобразованию объектного кода в исходный код)
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
Программного обеспечения;
|
||||||
where such license applies only to those patent claims licensable
|
-модификации Программного обеспечения, в том числе вносить изменения в объектный код, исходный
|
||||||
by such Contributor that are necessarily infringed by their
|
код Программного обеспечения, за исключением тех изменений, которые вносятся средствами,
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
включёнными в Программное обеспечение и описанными непосредственно в документации к нему;
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
-созданию условий для использования Программного обеспечения лицами, не имеющими прав на
|
||||||
institute patent litigation against any entity (including a
|
использование данного Программного обеспечения, включая (но не ограничиваясь) вмешательство
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
третьих лиц в функционирование Программного обеспечения, предоставление третьим лицам доступа
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
к исследованию и (или) замене настроек Программного обеспечения, включая его первичную установку;
|
||||||
or contributory patent infringement, then any patent licenses
|
-распространению Программного обеспечения в целом или в части (включая приложенную к нему документацию).
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
8. БИБЛИОТЕКА ПО. ИСПОЛЬЗУЕМЫЕ ПРОГРАММНЫЕ СРЕДСТВА.
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
8.1. Настоящим, Правообладатель заверяет, что Библиотека программного обеспечения состоит из
|
||||||
Derivative Works a copy of this License; and
|
лицензионных продуктов, используемых на законных основаниях, а
|
||||||
|
именно https://entaxy.ru/libs/licenses/root-aggregated.deps.
|
||||||
|
8.2. Любые программные средства, применяемые Пользователем при работе с ПО, должны быть
|
||||||
|
совместимы с библиотекой ПО, указанной в п.8.1. настоящего соглашения.
|
||||||
|
8.3. Перечень внешних модулей ПО, указанный в п.8.1 настоящего соглашения, может изменяться
|
||||||
|
Правообладателем в одностороннем порядке, в зависимости от выпуска релизов программного обеспечения,
|
||||||
|
содержащих все изменения и дополнения программного обеспечения.
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
9. ВНЕСЕНИЕ ИЗМЕНЕНИЙ В ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ.
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
9.1. Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) является свободно распространяемым
|
||||||
that You distribute, all copyright, patent, trademark, and
|
программным обеспечением.
|
||||||
attribution notices from the Source form of the Work,
|
9.2. Пользователь имеет право вносить изменения в исходный код программного обеспечения исключительно
|
||||||
excluding those notices that do not pertain to any part of
|
с согласия Правообладателя в порядке предложения изменений/правок/дополнений через механизм
|
||||||
the Derivative Works; and
|
«Pull Requests» в открытом репозитории Правообладателя по адресу: https://git.entaxy.ru/entaxy/entaxy-public.
|
||||||
|
9.3. Любые изменения программного обеспечения, осуществляемые Пользователем без соблюдения условий
|
||||||
|
пункта 9.2. настоящего документа, являются нарушением авторских и смежных прав Правообладателя,
|
||||||
|
прав интеллектуальной собственности Правообладателя и влекут применение к Пользователю мер
|
||||||
|
ответственности в соответствии с условиями настоящей Лицензии, а также применимого законодательства
|
||||||
|
Российской Федерации.
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
10. ЗАКЛЮЧИТЕЛЬНЫЕ ПОЛОЖЕНИЯ.
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
10.1. В случае нарушения Пользователем любого из условий настоящей Лицензии, Правообладатель имеет
|
||||||
may provide additional or different license terms and conditions
|
право взыскать с Пользователя любые причинённые таким нарушением убытки, реальный ущерб,
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
недополученную прибыль, упущенную выгоду, а также в случае нарушения Пользователем условий
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
пункта 9.2 настоящего соглашения, в том числе, взыскать с Пользователя штраф в размере
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
2 000 000 (Два миллиона) рублей за каждый установленный случай несанкционированного изменения
|
||||||
the conditions stated in this License.
|
исходного или объектного кода Программного обеспечения «Энтакси» (Entaxy).
|
||||||
|
10.2. В рамках исполнения Пользователем обязательств по настоящей Лицензии, применимое
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
законодательство – Российской Федерации.
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
10.3. Если какое-либо положение настоящей Лицензии будет признано судом недействительным,
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
остальные положения будут продолжать своё действие, а Пользователь будет обязан продолжать
|
||||||
this License, without any additional terms or conditions.
|
исполнять свои обязанности в соответствии с этими положениями.
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
|
@ -1,201 +1,175 @@
|
|||||||
Apache License
|
ЛИЦЕНЗИЯ ОГРАНИЧЕННОГО ПРИМЕНЕНИЯ
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
Настоящий документ устанавливает для Пользователя условия применения Базовой (некоммерческой)
|
||||||
|
версии лицензии для пробного использования программного обеспечения ENTAXY, принадлежащего
|
||||||
|
Правообладателю – Обществу с ограниченной ответственностью "ЕМДЕВ" (ОГРН 1057810026658, ИНН
|
||||||
|
7813313860, юридический адрес: 197022, Россия, г. Санкт-Петербург, ул. Профессора Попова,
|
||||||
|
д. 23, литера В, помещение 3Н), расположенной в сети Интернет по адресу
|
||||||
|
https://www.emdev.ru/about (далее - Компания).
|
||||||
|
|
||||||
1. Definitions.
|
Используя или получая доступ к Программному обеспечению, или нажав «Я согласен с Условиями»
|
||||||
|
(или аналогичную кнопку или флажок) после загрузки или установки Программного обеспечения,
|
||||||
|
Пользователь выражает свое согласие на обязательность условий и ограничений, изложенных в
|
||||||
|
настоящем документе, в противном случае, он должен не использовать или не получать доступ
|
||||||
|
к Программному обеспечению.
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
1. ТЕРМИНЫ И ОПРЕДЕЛЕНИЯ
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
a) ПО – Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) в любой ее версии
|
||||||
the copyright owner that is granting the License.
|
или редакции, исключительные права на которую принадлежат Правообладателю.
|
||||||
|
b) Правообладатель (Компания) – ООО «ЕМДЕВ», ОГРН 1057810026658, ИНН 7813313860, исключительные
|
||||||
|
права которого подтверждаются Свидетельством о государственной регистрации в Реестре программ
|
||||||
|
для ЭВМ № 2021610848 от 19.01.2021 года.
|
||||||
|
c) Пользователь – юридическое или физическое лицо, получившее через скачивание с сайта
|
||||||
|
https://entaxy.ru или иным образом, дистрибутив ПО, пользующееся ПО.
|
||||||
|
d) ИС – интеллектуальная собственность – закреплённое законом исключительное право, а также
|
||||||
|
личные неимущественные права авторов произведений на результат интеллектуальной деятельности.
|
||||||
|
e) Подписка – это коммерческое предложение Правообладателя, состоящее из Лицензии на использование
|
||||||
|
ПО и доступа к технической поддержке программного обеспечения на срок Подписки. Подписка
|
||||||
|
включает предоставление Пользователю неисключительного права использования ПО, в том числе
|
||||||
|
получение обновлений функционала ПО и безопасности ПО, исправление ошибок ПО и получение
|
||||||
|
патчей с обновлениями и исправлениями программного обеспечения. Подписка приобретается
|
||||||
|
Пользователем на период времени, указанный в Сертификате. Количество подписок устанавливается
|
||||||
|
для каждого Пользователя индивидуально в Сертификате.
|
||||||
|
f) Сертификат – документ, выдаваемый Дистрибъютором или Авторизованным партнёром (Партнёром),
|
||||||
|
подтверждающий факт приобретения физическим или юридическим лицом Подписки на программное
|
||||||
|
обеспечение в ограниченном объёме и на определённый период времени.
|
||||||
|
g) Лицензия (простая (неисключительная) – совокупность ограниченных прав использования ПО,
|
||||||
|
предоставленных Пользователю согласно условиям Подписки.
|
||||||
|
h) Библиотека – совокупность подпрограмм и объектов, используемых для разработки программного
|
||||||
|
обеспечения.
|
||||||
|
i) Исходный код – текст компьютерной программы на каком-либо языке программирования, состоящий
|
||||||
|
из одного или нескольких файлов, который может быть прочтён человеком.
|
||||||
|
j) Объектный код – файл (часть машинного кода) с промежуточным представлением отдельного модуля
|
||||||
|
программы, полученный в результате обработки исходного кода, еще не связанный в полную программу.
|
||||||
|
Это машинный код для одной конкретной библиотеки или модуля, который будет составлять готовый
|
||||||
|
продукт.
|
||||||
|
k) Некоммерческое использование – индивидуальное личное использование Пользователем программного
|
||||||
|
обеспечения с целью обучения работе с Программным обеспечением, для оценки или демонстрации
|
||||||
|
возможностей Программного обеспечения, при котором, Пользователем не извлекается коммерческая
|
||||||
|
выгода и/или не идёт в доход денежное вознаграждение при использовании Программного обеспечения.
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
2. ДОПУСТИМЫЕ СПОСОБЫ ИСПОЛЬЗОВАНИЯ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
2.1. Правообладатель предоставляет Пользователю ограниченное право использования Программного
|
||||||
exercising permissions granted by this License.
|
обеспечения на условиях простой (неисключительной) лицензии в объёме, ограниченном правом
|
||||||
|
воспроизведения полной рабочей версии программного обеспечения, новых версий программного обеспечения
|
||||||
|
в памяти оборудования и его запуска на оборудовании в соответствии со ст. 1280 ГК РФ.
|
||||||
|
2.2. Право на использование Программного обеспечения, предоставляемое Пользователю, носит
|
||||||
|
неисключительный характер.
|
||||||
|
2.3. Пользователю предоставляется всемирная, неисключительная, не подлежащая сублицензированию,
|
||||||
|
лицензия на ограниченное использование Программного обеспечения.
|
||||||
|
2.4. Пользователь, имеющий Базовую (некоммерческую) версию лицензии для пробного использования
|
||||||
|
имеет право приобрести Подписку на программное обеспечение. В этом случае Пользователь обязан
|
||||||
|
обратиться в службу поддержки Правообладателя по адресу: https://entaxy.ru/ для изменения
|
||||||
|
вида лицензии с Базовой бесплатной версии на Подписки.
|
||||||
|
2.5. Срок использования скачанной Пользователем базовой (некоммерческой) версии лицензии для
|
||||||
|
пробного использования программного обеспечения – не ограничен.
|
||||||
|
2.6. Использование Пользователем настоящего программного обеспечения в целях разработки,
|
||||||
|
модификации, обновления другого ПО, принадлежащего третьим лицам, а не Правообладателю,
|
||||||
|
без разрешения Правообладателя не допускается.
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
3. АВТОРСКОЕ ПРАВО.
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
3.1. Все авторские права, все права интеллектуальной собственности на Программное обеспечение
|
||||||
transformation or translation of a Source form, including but
|
и любые его копии принадлежат Правообладателю.
|
||||||
not limited to compiled object code, generated documentation,
|
3.2. Все авторские права, все права интеллектуальной собственности в отношении любого контента,
|
||||||
and conversions to other media types.
|
к которому можно получить доступ с помощью Программного обеспечения, является собственностью
|
||||||
|
соответствующего владельца контента и защищается применимым законодательством об авторском
|
||||||
|
праве или другими законами и договорами об интеллектуальной собственности.
|
||||||
|
3.3. Условия использования Программного обеспечения.
|
||||||
|
Лицензия, предоставленная Пользователю, действительна только в том случае, если Пользователь
|
||||||
|
придерживается следующих условий:
|
||||||
|
3.3.1. Принятие уведомлений об авторских правах. Пользователю запрещается удалять или изменять
|
||||||
|
какие-либо уведомления об авторских правах или лицензиях, которые появляются при использовании
|
||||||
|
Программного обеспечения или на нем.
|
||||||
|
3.3.2. Модификация. Пользователю запрещается модифицировать, изменять, декомпилировать,
|
||||||
|
расшифровывать, дизассемблировать, переводить или реверсировать, перепроектировать
|
||||||
|
Программное обеспечение.
|
||||||
|
3.3.3. Распространение. Пользователю запрещается сублицензировать, передавать право использования
|
||||||
|
ПО или иным образом распространять или предоставлять Программное обеспечение любой третьей стороне.
|
||||||
|
3.3.4. SaaS. За исключением случаев, когда это разрешено Правообладателем, Пользователю запрещено
|
||||||
|
использовать Программное обеспечение в коммерческих целях для оказания услуг третьим лицам.
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
4. ОТВЕТСТВЕННОСТЬ ПРАВООБЛАДАТЕЛЯ ПРИ НАРУШЕНИИ ПОЛЬЗОВАТЕЛЕМ ПРАВ «ИС»
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
4.1. Правообладатель не несет никаких обязательств в отношении каких-либо претензий к Пользователю
|
||||||
form, that is based on (or derived from) the Work and for which the
|
на предмет нарушения последним прав Интеллектуальной собственности, возникших в связи с
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
использованием Пользователем:
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
4.1.1. Любых компонентов программного обеспечения с открытым исходным кодом, включенных в
|
||||||
of this License, Derivative Works shall not include works that remain
|
Программное обеспечение;
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
4.1.2. Любого нарушения правил использования Программного обеспечения, установленного условиями
|
||||||
the Work and Derivative Works thereof.
|
настоящего соглашения;
|
||||||
|
4.1.3. Любого использования Программного обеспечения в сочетании с другими ПО, оборудованием,
|
||||||
|
или данными, не предоставленными Пользователю Правообладателем;
|
||||||
|
4.1.4. Любого изменения Программного обеспечения любым третьим лицом, а не Правообладателем.
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
5. НАСТОЯЩИМ ПРАВООБЛАДАТЕЛЬ ЗАЯВЛЯЕТ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ ПОЛЬЗОВАТЕЛЮ
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
ПО ПРИНЦИПУ «AS IS» - «КАК ЕСТЬ». НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ НЕ ГАРАНТИРУЕТ
|
||||||
subsequently incorporated within the Work.
|
И НЕ ОБЕЩАЕТ, ЧТО ПРЕДОСТАВЛЕННОЕ ИМ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ПОДХОДИТЬ ИЛИ НЕ ПОДХОДИТЬ
|
||||||
|
ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ОТВЕЧАТЬ ВСЕМ КОММЕРЧЕСКИМ
|
||||||
|
И ЛИЧНЫМ СУБЪЕКТИВНЫМ ОЖИДАНИЯМ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ РАБОТАТЬ
|
||||||
|
ИСПРАВНО, БЕЗ ТЕХНИЧЕСКИХ ОШИБОК, БЫСТРО И БЕСПЕРЕБОЙНО.
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
6. ОГРАНИЧЕНИЕ ОТВЕТСТВЕННОСТИ.
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ ИЛИ ЕГО АФФИЛЛИРОВАННЫЕ ЛИЦА НЕ НЕСУТ ПЕРЕД ПОЛЬЗОВАТЕЛЕМ
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
ОТВЕТСТВЕННОСТИ ЗА ЛЮБЫЕ ПРЯМЫЕ ИЛИ КОСВЕННЫЕ УБЫТКИ ПОЛЬЗОВАТЕЛЯ, ЕГО РАСХОДЫ ИЛИ РЕАЛЬНЫЙ УЩЕРБ,
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
ВКЛЮЧАЯ, ПОМИМО ПРОЧЕГО, ПРОСТОИ; УТРАТУ БИЗНЕСА; УПУЩЕННУЮ ВЫГОДУ; НЕДОПОЛУЧЕННУЮ ПРИБЫЛЬ;
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
ПОТЕРЮ ИЛИ ПОВРЕЖДЕНИЕ ДАННЫХ, ИМУЩЕСТВА И ИНОЕ.
|
||||||
Work and such Derivative Works in Source or Object form.
|
ОГРАНИЧЕНИЯ ПРИМЕНЯЮТСЯ НЕЗАВИСИМО ОТ ОСНОВАНИЯ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ; В ТОМ ЧИСЛЕ ВСЛЕДСТВИЕ
|
||||||
|
ДЕЙСТВИЯ ИЛИ БЕЗДЕЙСТВИЯ, НЕБРЕЖНОСТИ, УМЫСЛА, ПРЯМОГО ИЛИ КОСВЕННОГО; НЕОСТОРОЖНОСТИ; ЗАБЛУЖДЕНИЯ;
|
||||||
|
КЛЕВЕТЫ; НАРУШЕНИЯ КОНФИДЕНЦИАЛЬНОСТИ ИЛИ ПРАВА ИНТЕЛЛЕКТУАЛЬНОЙ СОБСТВЕННОСТИ; ИЛИ ЛЮБОЕ ДРУГОЕ
|
||||||
|
ОСНОВАНИЕ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ.
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
7. ОБЯЗАННОСТЬ ПОЛЬЗОВАТЕЛЯ:
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
Не осуществлять самостоятельно и (или) с привлечением третьих лиц нижеследующие действия
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
(включая, но не ограничиваясь) по:
|
||||||
(except as stated in this section) patent license to make, have made,
|
-дизассемблированию и (или) декомпилированию (преобразованию объектного кода в исходный код)
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
Программного обеспечения;
|
||||||
where such license applies only to those patent claims licensable
|
-модификации Программного обеспечения, в том числе вносить изменения в объектный код, исходный
|
||||||
by such Contributor that are necessarily infringed by their
|
код Программного обеспечения, за исключением тех изменений, которые вносятся средствами,
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
включёнными в Программное обеспечение и описанными непосредственно в документации к нему;
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
-созданию условий для использования Программного обеспечения лицами, не имеющими прав на
|
||||||
institute patent litigation against any entity (including a
|
использование данного Программного обеспечения, включая (но не ограничиваясь) вмешательство
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
третьих лиц в функционирование Программного обеспечения, предоставление третьим лицам доступа
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
к исследованию и (или) замене настроек Программного обеспечения, включая его первичную установку;
|
||||||
or contributory patent infringement, then any patent licenses
|
-распространению Программного обеспечения в целом или в части (включая приложенную к нему документацию).
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
8. БИБЛИОТЕКА ПО. ИСПОЛЬЗУЕМЫЕ ПРОГРАММНЫЕ СРЕДСТВА.
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
8.1. Настоящим, Правообладатель заверяет, что Библиотека программного обеспечения состоит из
|
||||||
Derivative Works a copy of this License; and
|
лицензионных продуктов, используемых на законных основаниях, а
|
||||||
|
именно https://entaxy.ru/libs/licenses/root-aggregated.deps.
|
||||||
|
8.2. Любые программные средства, применяемые Пользователем при работе с ПО, должны быть
|
||||||
|
совместимы с библиотекой ПО, указанной в п.8.1. настоящего соглашения.
|
||||||
|
8.3. Перечень внешних модулей ПО, указанный в п.8.1 настоящего соглашения, может изменяться
|
||||||
|
Правообладателем в одностороннем порядке, в зависимости от выпуска релизов программного обеспечения,
|
||||||
|
содержащих все изменения и дополнения программного обеспечения.
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
9. ВНЕСЕНИЕ ИЗМЕНЕНИЙ В ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ.
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
9.1. Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) является свободно распространяемым
|
||||||
that You distribute, all copyright, patent, trademark, and
|
программным обеспечением.
|
||||||
attribution notices from the Source form of the Work,
|
9.2. Пользователь имеет право вносить изменения в исходный код программного обеспечения исключительно
|
||||||
excluding those notices that do not pertain to any part of
|
с согласия Правообладателя в порядке предложения изменений/правок/дополнений через механизм
|
||||||
the Derivative Works; and
|
«Pull Requests» в открытом репозитории Правообладателя по адресу: https://git.entaxy.ru/entaxy/entaxy-public.
|
||||||
|
9.3. Любые изменения программного обеспечения, осуществляемые Пользователем без соблюдения условий
|
||||||
|
пункта 9.2. настоящего документа, являются нарушением авторских и смежных прав Правообладателя,
|
||||||
|
прав интеллектуальной собственности Правообладателя и влекут применение к Пользователю мер
|
||||||
|
ответственности в соответствии с условиями настоящей Лицензии, а также применимого законодательства
|
||||||
|
Российской Федерации.
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
10. ЗАКЛЮЧИТЕЛЬНЫЕ ПОЛОЖЕНИЯ.
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
10.1. В случае нарушения Пользователем любого из условий настоящей Лицензии, Правообладатель имеет
|
||||||
may provide additional or different license terms and conditions
|
право взыскать с Пользователя любые причинённые таким нарушением убытки, реальный ущерб,
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
недополученную прибыль, упущенную выгоду, а также в случае нарушения Пользователем условий
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
пункта 9.2 настоящего соглашения, в том числе, взыскать с Пользователя штраф в размере
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
2 000 000 (Два миллиона) рублей за каждый установленный случай несанкционированного изменения
|
||||||
the conditions stated in this License.
|
исходного или объектного кода Программного обеспечения «Энтакси» (Entaxy).
|
||||||
|
10.2. В рамках исполнения Пользователем обязательств по настоящей Лицензии, применимое
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
законодательство – Российской Федерации.
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
10.3. Если какое-либо положение настоящей Лицензии будет признано судом недействительным,
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
остальные положения будут продолжать своё действие, а Пользователь будет обязан продолжать
|
||||||
this License, without any additional terms or conditions.
|
исполнять свои обязанности в соответствии с этими положениями.
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
|
@ -1,201 +1,175 @@
|
|||||||
Apache License
|
ЛИЦЕНЗИЯ ОГРАНИЧЕННОГО ПРИМЕНЕНИЯ
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
Настоящий документ устанавливает для Пользователя условия применения Базовой (некоммерческой)
|
||||||
|
версии лицензии для пробного использования программного обеспечения ENTAXY, принадлежащего
|
||||||
|
Правообладателю – Обществу с ограниченной ответственностью "ЕМДЕВ" (ОГРН 1057810026658, ИНН
|
||||||
|
7813313860, юридический адрес: 197022, Россия, г. Санкт-Петербург, ул. Профессора Попова,
|
||||||
|
д. 23, литера В, помещение 3Н), расположенной в сети Интернет по адресу
|
||||||
|
https://www.emdev.ru/about (далее - Компания).
|
||||||
|
|
||||||
1. Definitions.
|
Используя или получая доступ к Программному обеспечению, или нажав «Я согласен с Условиями»
|
||||||
|
(или аналогичную кнопку или флажок) после загрузки или установки Программного обеспечения,
|
||||||
|
Пользователь выражает свое согласие на обязательность условий и ограничений, изложенных в
|
||||||
|
настоящем документе, в противном случае, он должен не использовать или не получать доступ
|
||||||
|
к Программному обеспечению.
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
1. ТЕРМИНЫ И ОПРЕДЕЛЕНИЯ
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
a) ПО – Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) в любой ее версии
|
||||||
the copyright owner that is granting the License.
|
или редакции, исключительные права на которую принадлежат Правообладателю.
|
||||||
|
b) Правообладатель (Компания) – ООО «ЕМДЕВ», ОГРН 1057810026658, ИНН 7813313860, исключительные
|
||||||
|
права которого подтверждаются Свидетельством о государственной регистрации в Реестре программ
|
||||||
|
для ЭВМ № 2021610848 от 19.01.2021 года.
|
||||||
|
c) Пользователь – юридическое или физическое лицо, получившее через скачивание с сайта
|
||||||
|
https://entaxy.ru или иным образом, дистрибутив ПО, пользующееся ПО.
|
||||||
|
d) ИС – интеллектуальная собственность – закреплённое законом исключительное право, а также
|
||||||
|
личные неимущественные права авторов произведений на результат интеллектуальной деятельности.
|
||||||
|
e) Подписка – это коммерческое предложение Правообладателя, состоящее из Лицензии на использование
|
||||||
|
ПО и доступа к технической поддержке программного обеспечения на срок Подписки. Подписка
|
||||||
|
включает предоставление Пользователю неисключительного права использования ПО, в том числе
|
||||||
|
получение обновлений функционала ПО и безопасности ПО, исправление ошибок ПО и получение
|
||||||
|
патчей с обновлениями и исправлениями программного обеспечения. Подписка приобретается
|
||||||
|
Пользователем на период времени, указанный в Сертификате. Количество подписок устанавливается
|
||||||
|
для каждого Пользователя индивидуально в Сертификате.
|
||||||
|
f) Сертификат – документ, выдаваемый Дистрибъютором или Авторизованным партнёром (Партнёром),
|
||||||
|
подтверждающий факт приобретения физическим или юридическим лицом Подписки на программное
|
||||||
|
обеспечение в ограниченном объёме и на определённый период времени.
|
||||||
|
g) Лицензия (простая (неисключительная) – совокупность ограниченных прав использования ПО,
|
||||||
|
предоставленных Пользователю согласно условиям Подписки.
|
||||||
|
h) Библиотека – совокупность подпрограмм и объектов, используемых для разработки программного
|
||||||
|
обеспечения.
|
||||||
|
i) Исходный код – текст компьютерной программы на каком-либо языке программирования, состоящий
|
||||||
|
из одного или нескольких файлов, который может быть прочтён человеком.
|
||||||
|
j) Объектный код – файл (часть машинного кода) с промежуточным представлением отдельного модуля
|
||||||
|
программы, полученный в результате обработки исходного кода, еще не связанный в полную программу.
|
||||||
|
Это машинный код для одной конкретной библиотеки или модуля, который будет составлять готовый
|
||||||
|
продукт.
|
||||||
|
k) Некоммерческое использование – индивидуальное личное использование Пользователем программного
|
||||||
|
обеспечения с целью обучения работе с Программным обеспечением, для оценки или демонстрации
|
||||||
|
возможностей Программного обеспечения, при котором, Пользователем не извлекается коммерческая
|
||||||
|
выгода и/или не идёт в доход денежное вознаграждение при использовании Программного обеспечения.
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
2. ДОПУСТИМЫЕ СПОСОБЫ ИСПОЛЬЗОВАНИЯ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
2.1. Правообладатель предоставляет Пользователю ограниченное право использования Программного
|
||||||
exercising permissions granted by this License.
|
обеспечения на условиях простой (неисключительной) лицензии в объёме, ограниченном правом
|
||||||
|
воспроизведения полной рабочей версии программного обеспечения, новых версий программного обеспечения
|
||||||
|
в памяти оборудования и его запуска на оборудовании в соответствии со ст. 1280 ГК РФ.
|
||||||
|
2.2. Право на использование Программного обеспечения, предоставляемое Пользователю, носит
|
||||||
|
неисключительный характер.
|
||||||
|
2.3. Пользователю предоставляется всемирная, неисключительная, не подлежащая сублицензированию,
|
||||||
|
лицензия на ограниченное использование Программного обеспечения.
|
||||||
|
2.4. Пользователь, имеющий Базовую (некоммерческую) версию лицензии для пробного использования
|
||||||
|
имеет право приобрести Подписку на программное обеспечение. В этом случае Пользователь обязан
|
||||||
|
обратиться в службу поддержки Правообладателя по адресу: https://entaxy.ru/ для изменения
|
||||||
|
вида лицензии с Базовой бесплатной версии на Подписки.
|
||||||
|
2.5. Срок использования скачанной Пользователем базовой (некоммерческой) версии лицензии для
|
||||||
|
пробного использования программного обеспечения – не ограничен.
|
||||||
|
2.6. Использование Пользователем настоящего программного обеспечения в целях разработки,
|
||||||
|
модификации, обновления другого ПО, принадлежащего третьим лицам, а не Правообладателю,
|
||||||
|
без разрешения Правообладателя не допускается.
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
3. АВТОРСКОЕ ПРАВО.
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
3.1. Все авторские права, все права интеллектуальной собственности на Программное обеспечение
|
||||||
transformation or translation of a Source form, including but
|
и любые его копии принадлежат Правообладателю.
|
||||||
not limited to compiled object code, generated documentation,
|
3.2. Все авторские права, все права интеллектуальной собственности в отношении любого контента,
|
||||||
and conversions to other media types.
|
к которому можно получить доступ с помощью Программного обеспечения, является собственностью
|
||||||
|
соответствующего владельца контента и защищается применимым законодательством об авторском
|
||||||
|
праве или другими законами и договорами об интеллектуальной собственности.
|
||||||
|
3.3. Условия использования Программного обеспечения.
|
||||||
|
Лицензия, предоставленная Пользователю, действительна только в том случае, если Пользователь
|
||||||
|
придерживается следующих условий:
|
||||||
|
3.3.1. Принятие уведомлений об авторских правах. Пользователю запрещается удалять или изменять
|
||||||
|
какие-либо уведомления об авторских правах или лицензиях, которые появляются при использовании
|
||||||
|
Программного обеспечения или на нем.
|
||||||
|
3.3.2. Модификация. Пользователю запрещается модифицировать, изменять, декомпилировать,
|
||||||
|
расшифровывать, дизассемблировать, переводить или реверсировать, перепроектировать
|
||||||
|
Программное обеспечение.
|
||||||
|
3.3.3. Распространение. Пользователю запрещается сублицензировать, передавать право использования
|
||||||
|
ПО или иным образом распространять или предоставлять Программное обеспечение любой третьей стороне.
|
||||||
|
3.3.4. SaaS. За исключением случаев, когда это разрешено Правообладателем, Пользователю запрещено
|
||||||
|
использовать Программное обеспечение в коммерческих целях для оказания услуг третьим лицам.
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
4. ОТВЕТСТВЕННОСТЬ ПРАВООБЛАДАТЕЛЯ ПРИ НАРУШЕНИИ ПОЛЬЗОВАТЕЛЕМ ПРАВ «ИС»
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
4.1. Правообладатель не несет никаких обязательств в отношении каких-либо претензий к Пользователю
|
||||||
form, that is based on (or derived from) the Work and for which the
|
на предмет нарушения последним прав Интеллектуальной собственности, возникших в связи с
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
использованием Пользователем:
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
4.1.1. Любых компонентов программного обеспечения с открытым исходным кодом, включенных в
|
||||||
of this License, Derivative Works shall not include works that remain
|
Программное обеспечение;
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
4.1.2. Любого нарушения правил использования Программного обеспечения, установленного условиями
|
||||||
the Work and Derivative Works thereof.
|
настоящего соглашения;
|
||||||
|
4.1.3. Любого использования Программного обеспечения в сочетании с другими ПО, оборудованием,
|
||||||
|
или данными, не предоставленными Пользователю Правообладателем;
|
||||||
|
4.1.4. Любого изменения Программного обеспечения любым третьим лицом, а не Правообладателем.
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
5. НАСТОЯЩИМ ПРАВООБЛАДАТЕЛЬ ЗАЯВЛЯЕТ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ ПОЛЬЗОВАТЕЛЮ
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
ПО ПРИНЦИПУ «AS IS» - «КАК ЕСТЬ». НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ НЕ ГАРАНТИРУЕТ
|
||||||
subsequently incorporated within the Work.
|
И НЕ ОБЕЩАЕТ, ЧТО ПРЕДОСТАВЛЕННОЕ ИМ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ПОДХОДИТЬ ИЛИ НЕ ПОДХОДИТЬ
|
||||||
|
ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ОТВЕЧАТЬ ВСЕМ КОММЕРЧЕСКИМ
|
||||||
|
И ЛИЧНЫМ СУБЪЕКТИВНЫМ ОЖИДАНИЯМ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ РАБОТАТЬ
|
||||||
|
ИСПРАВНО, БЕЗ ТЕХНИЧЕСКИХ ОШИБОК, БЫСТРО И БЕСПЕРЕБОЙНО.
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
6. ОГРАНИЧЕНИЕ ОТВЕТСТВЕННОСТИ.
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ ИЛИ ЕГО АФФИЛЛИРОВАННЫЕ ЛИЦА НЕ НЕСУТ ПЕРЕД ПОЛЬЗОВАТЕЛЕМ
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
ОТВЕТСТВЕННОСТИ ЗА ЛЮБЫЕ ПРЯМЫЕ ИЛИ КОСВЕННЫЕ УБЫТКИ ПОЛЬЗОВАТЕЛЯ, ЕГО РАСХОДЫ ИЛИ РЕАЛЬНЫЙ УЩЕРБ,
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
ВКЛЮЧАЯ, ПОМИМО ПРОЧЕГО, ПРОСТОИ; УТРАТУ БИЗНЕСА; УПУЩЕННУЮ ВЫГОДУ; НЕДОПОЛУЧЕННУЮ ПРИБЫЛЬ;
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
ПОТЕРЮ ИЛИ ПОВРЕЖДЕНИЕ ДАННЫХ, ИМУЩЕСТВА И ИНОЕ.
|
||||||
Work and such Derivative Works in Source or Object form.
|
ОГРАНИЧЕНИЯ ПРИМЕНЯЮТСЯ НЕЗАВИСИМО ОТ ОСНОВАНИЯ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ; В ТОМ ЧИСЛЕ ВСЛЕДСТВИЕ
|
||||||
|
ДЕЙСТВИЯ ИЛИ БЕЗДЕЙСТВИЯ, НЕБРЕЖНОСТИ, УМЫСЛА, ПРЯМОГО ИЛИ КОСВЕННОГО; НЕОСТОРОЖНОСТИ; ЗАБЛУЖДЕНИЯ;
|
||||||
|
КЛЕВЕТЫ; НАРУШЕНИЯ КОНФИДЕНЦИАЛЬНОСТИ ИЛИ ПРАВА ИНТЕЛЛЕКТУАЛЬНОЙ СОБСТВЕННОСТИ; ИЛИ ЛЮБОЕ ДРУГОЕ
|
||||||
|
ОСНОВАНИЕ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ.
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
7. ОБЯЗАННОСТЬ ПОЛЬЗОВАТЕЛЯ:
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
Не осуществлять самостоятельно и (или) с привлечением третьих лиц нижеследующие действия
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
(включая, но не ограничиваясь) по:
|
||||||
(except as stated in this section) patent license to make, have made,
|
-дизассемблированию и (или) декомпилированию (преобразованию объектного кода в исходный код)
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
Программного обеспечения;
|
||||||
where such license applies only to those patent claims licensable
|
-модификации Программного обеспечения, в том числе вносить изменения в объектный код, исходный
|
||||||
by such Contributor that are necessarily infringed by their
|
код Программного обеспечения, за исключением тех изменений, которые вносятся средствами,
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
включёнными в Программное обеспечение и описанными непосредственно в документации к нему;
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
-созданию условий для использования Программного обеспечения лицами, не имеющими прав на
|
||||||
institute patent litigation against any entity (including a
|
использование данного Программного обеспечения, включая (но не ограничиваясь) вмешательство
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
третьих лиц в функционирование Программного обеспечения, предоставление третьим лицам доступа
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
к исследованию и (или) замене настроек Программного обеспечения, включая его первичную установку;
|
||||||
or contributory patent infringement, then any patent licenses
|
-распространению Программного обеспечения в целом или в части (включая приложенную к нему документацию).
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
8. БИБЛИОТЕКА ПО. ИСПОЛЬЗУЕМЫЕ ПРОГРАММНЫЕ СРЕДСТВА.
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
8.1. Настоящим, Правообладатель заверяет, что Библиотека программного обеспечения состоит из
|
||||||
Derivative Works a copy of this License; and
|
лицензионных продуктов, используемых на законных основаниях, а
|
||||||
|
именно https://entaxy.ru/libs/licenses/root-aggregated.deps.
|
||||||
|
8.2. Любые программные средства, применяемые Пользователем при работе с ПО, должны быть
|
||||||
|
совместимы с библиотекой ПО, указанной в п.8.1. настоящего соглашения.
|
||||||
|
8.3. Перечень внешних модулей ПО, указанный в п.8.1 настоящего соглашения, может изменяться
|
||||||
|
Правообладателем в одностороннем порядке, в зависимости от выпуска релизов программного обеспечения,
|
||||||
|
содержащих все изменения и дополнения программного обеспечения.
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
9. ВНЕСЕНИЕ ИЗМЕНЕНИЙ В ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ.
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
9.1. Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) является свободно распространяемым
|
||||||
that You distribute, all copyright, patent, trademark, and
|
программным обеспечением.
|
||||||
attribution notices from the Source form of the Work,
|
9.2. Пользователь имеет право вносить изменения в исходный код программного обеспечения исключительно
|
||||||
excluding those notices that do not pertain to any part of
|
с согласия Правообладателя в порядке предложения изменений/правок/дополнений через механизм
|
||||||
the Derivative Works; and
|
«Pull Requests» в открытом репозитории Правообладателя по адресу: https://git.entaxy.ru/entaxy/entaxy-public.
|
||||||
|
9.3. Любые изменения программного обеспечения, осуществляемые Пользователем без соблюдения условий
|
||||||
|
пункта 9.2. настоящего документа, являются нарушением авторских и смежных прав Правообладателя,
|
||||||
|
прав интеллектуальной собственности Правообладателя и влекут применение к Пользователю мер
|
||||||
|
ответственности в соответствии с условиями настоящей Лицензии, а также применимого законодательства
|
||||||
|
Российской Федерации.
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
10. ЗАКЛЮЧИТЕЛЬНЫЕ ПОЛОЖЕНИЯ.
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
10.1. В случае нарушения Пользователем любого из условий настоящей Лицензии, Правообладатель имеет
|
||||||
may provide additional or different license terms and conditions
|
право взыскать с Пользователя любые причинённые таким нарушением убытки, реальный ущерб,
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
недополученную прибыль, упущенную выгоду, а также в случае нарушения Пользователем условий
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
пункта 9.2 настоящего соглашения, в том числе, взыскать с Пользователя штраф в размере
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
2 000 000 (Два миллиона) рублей за каждый установленный случай несанкционированного изменения
|
||||||
the conditions stated in this License.
|
исходного или объектного кода Программного обеспечения «Энтакси» (Entaxy).
|
||||||
|
10.2. В рамках исполнения Пользователем обязательств по настоящей Лицензии, применимое
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
законодательство – Российской Федерации.
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
10.3. Если какое-либо положение настоящей Лицензии будет признано судом недействительным,
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
остальные положения будут продолжать своё действие, а Пользователь будет обязан продолжать
|
||||||
this License, without any additional terms or conditions.
|
исполнять свои обязанности в соответствии с этими положениями.
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>ru.entaxy.esb.platform.runtime</groupId>
|
<groupId>ru.entaxy.esb.platform.runtime</groupId>
|
||||||
<artifactId>base</artifactId>
|
<artifactId>base</artifactId>
|
||||||
<version>1.8.3</version>
|
<version>1.10.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base</groupId>
|
<groupId>ru.entaxy.esb.platform.runtime.base</groupId>
|
||||||
<artifactId>base-support</artifactId>
|
<artifactId>base-support</artifactId>
|
||||||
@ -16,10 +16,17 @@
|
|||||||
ru.entaxy.platform.base.support,
|
ru.entaxy.platform.base.support,
|
||||||
ru.entaxy.platform.base.support.xml,
|
ru.entaxy.platform.base.support.xml,
|
||||||
ru.entaxy.platform.base.support.osgi,
|
ru.entaxy.platform.base.support.osgi,
|
||||||
|
ru.entaxy.platform.base.support.osgi.bundle,
|
||||||
|
ru.entaxy.platform.base.support.osgi.feature,
|
||||||
|
ru.entaxy.platform.base.support.osgi.service,
|
||||||
ru.entaxy.platform.base.support.osgi.tracker,
|
ru.entaxy.platform.base.support.osgi.tracker,
|
||||||
ru.entaxy.platform.base.support.osgi.tracker.filter,
|
ru.entaxy.platform.base.support.osgi.tracker.filter,
|
||||||
ru.entaxy.platform.base.support.osgi.filter
|
ru.entaxy.platform.base.support.osgi.filter,
|
||||||
|
ru.entaxy.platform.base.support.karaf.shell
|
||||||
</bundle.osgi.export.pkg>
|
</bundle.osgi.export.pkg>
|
||||||
|
<bundle.osgi.private.pkg>
|
||||||
|
org.apache.felix.gogo.runtime.threadio
|
||||||
|
</bundle.osgi.private.pkg>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@ -46,8 +53,29 @@
|
|||||||
<artifactId>commons-codec</artifactId>
|
<artifactId>commons-codec</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.google.code.gson</groupId>
|
<groupId>ru.entaxy.bundles-repacked</groupId>
|
||||||
<artifactId>gson</artifactId>
|
<artifactId>ru.entaxy.bundles-repacked.com.google.code.gson-2.8.5.entaxy</artifactId>
|
||||||
|
<version>${gson.version}-ENTAXY</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.karaf.shell</groupId>
|
||||||
|
<artifactId>org.apache.karaf.shell.core</artifactId>
|
||||||
|
<version>${karaf.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.karaf.features</groupId>
|
||||||
|
<artifactId>org.apache.karaf.features.core</artifactId>
|
||||||
|
<version>${karaf.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.karaf.bundle</groupId>
|
||||||
|
<artifactId>org.apache.karaf.bundle.core</artifactId>
|
||||||
|
<version>${karaf.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.fusesource.jansi</groupId>
|
||||||
|
<artifactId>jansi</artifactId>
|
||||||
|
<version>1.18</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* base-support
|
* base-support
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.support;
|
package ru.entaxy.platform.base.support;
|
||||||
@ -27,6 +33,7 @@ import java.util.Dictionary;
|
|||||||
import java.util.Enumeration;
|
import java.util.Enumeration;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.ListIterator;
|
import java.util.ListIterator;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -151,8 +158,10 @@ public class CommonUtils {
|
|||||||
public static String getUUID() {
|
public static String getUUID() {
|
||||||
return UUID.randomUUID().toString().toLowerCase().replace("-", "");
|
return UUID.randomUUID().toString().toLowerCase().replace("-", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates UUID consisting of specified char
|
* Generates UUID consisting of specified char
|
||||||
|
*
|
||||||
* @param c
|
* @param c
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ -171,6 +180,7 @@ public class CommonUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates GUID consisting of specified char
|
* Generates GUID consisting of specified char
|
||||||
|
*
|
||||||
* @param c
|
* @param c
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ -180,6 +190,7 @@ public class CommonUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts UUID to GUID
|
* Converts UUID to GUID
|
||||||
|
*
|
||||||
* @param uid
|
* @param uid
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ -189,6 +200,7 @@ public class CommonUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts GUID to UUID
|
* Converts GUID to UUID
|
||||||
|
*
|
||||||
* @param uid
|
* @param uid
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ -221,6 +233,7 @@ public class CommonUtils {
|
|||||||
public static String padLeft(String data, int length) {
|
public static String padLeft(String data, int length) {
|
||||||
return padLeft(data, length, ' ');
|
return padLeft(data, length, ' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String padRight(String data, int length) {
|
public static String padRight(String data, int length) {
|
||||||
return padRight(data, length, ' ');
|
return padRight(data, length, ' ');
|
||||||
}
|
}
|
||||||
@ -237,6 +250,7 @@ public class CommonUtils {
|
|||||||
val = c + val;
|
val = c + val;
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String padRight(String data, int length, Character c) {
|
public static String padRight(String data, int length, Character c) {
|
||||||
String val = data;
|
String val = data;
|
||||||
if (data == null)
|
if (data == null)
|
||||||
@ -263,9 +277,9 @@ public class CommonUtils {
|
|||||||
|
|
||||||
public static void stream2file(InputStream input, String file) throws Exception {
|
public static void stream2file(InputStream input, String file) throws Exception {
|
||||||
File f = new File(file);
|
File f = new File(file);
|
||||||
FileOutputStream output = new FileOutputStream(f);
|
try (FileOutputStream output = new FileOutputStream(f)) {
|
||||||
IOUtils.copy(input, output);
|
IOUtils.copy(input, output);
|
||||||
output.close();
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static <K, V> Map<K, V> addDictionaryToMap(Dictionary<K, V> source, Map<K, V> sink) {
|
public static <K, V> Map<K, V> addDictionaryToMap(Dictionary<K, V> source, Map<K, V> sink) {
|
||||||
@ -282,4 +296,10 @@ public class CommonUtils {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static <V> Map<String, V> prefixMap(Map<String, V> map, String prefix) {
|
||||||
|
Map<String, V> result = new LinkedHashMap<>();
|
||||||
|
for (Map.Entry<String, V> entry : map.entrySet())
|
||||||
|
result.put(String.format("%s%s", prefix, entry.getKey()), entry.getValue());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,23 +2,30 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* test-producers
|
* test-producers
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.support;
|
package ru.entaxy.platform.base.support;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
@ -35,8 +42,7 @@ public class DependencySorter {
|
|||||||
// add independent objects
|
// add independent objects
|
||||||
result.addAll(
|
result.addAll(
|
||||||
origin.stream().filter(obj -> provider.getDependencies(obj).isEmpty())
|
origin.stream().filter(obj -> provider.getDependencies(obj).isEmpty())
|
||||||
.collect(Collectors.toList())
|
.collect(Collectors.toList()));
|
||||||
);
|
|
||||||
|
|
||||||
while (result.size() < origin.size()) {
|
while (result.size() < origin.size()) {
|
||||||
List<T> nextObjects = origin.stream().filter(obj -> !result.contains(obj))
|
List<T> nextObjects = origin.stream().filter(obj -> !result.contains(obj))
|
||||||
@ -46,8 +52,7 @@ public class DependencySorter {
|
|||||||
// TODO create more informative exception
|
// TODO create more informative exception
|
||||||
throw new UnsatisfiedDependenciesException(
|
throw new UnsatisfiedDependenciesException(
|
||||||
origin.stream().filter(obj -> !result.contains(obj))
|
origin.stream().filter(obj -> !result.contains(obj))
|
||||||
.collect(Collectors.toList())
|
.collect(Collectors.toList()));
|
||||||
);
|
|
||||||
result.addAll(nextObjects);
|
result.addAll(nextObjects);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,7 +66,7 @@ public class DependencySorter {
|
|||||||
|
|
||||||
public UnsatisfiedDependenciesException(List<?> list) {
|
public UnsatisfiedDependenciesException(List<?> list) {
|
||||||
super("Contains unsatisfied dependencies");
|
super("Contains unsatisfied dependencies");
|
||||||
this.objects.addAll(list);
|
this.objects = new ArrayList(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Object> getObjects() {
|
public List<Object> getObjects() {
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* base-support
|
* base-support
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.support;
|
package ru.entaxy.platform.base.support;
|
||||||
|
@ -1,19 +1,20 @@
|
|||||||
/* ~~~~~~licensing~~~~~~
|
/*
|
||||||
* base-support
|
* ~~~~~~licensing~~~~~~ base-support ========== Copyright (C) 2020 - 2023 EmDev LLC ========== You
|
||||||
* ==========
|
* may not use this file except in accordance with the License Terms of the Copyright Holder located
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* 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
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Copyright Holder, the User is prohibited from using the Software for commercial purposes to
|
||||||
* you may not use this file except in compliance with the License.
|
* provide services to third parties.
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable to the User for
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* any direct or indirect losses of the User, his expenses or actual damage, including, downtime;
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* loss of bussines; lost profit; lost earnings; loss or damage to data, property, etc.
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.support;
|
package ru.entaxy.platform.base.support;
|
||||||
@ -32,6 +33,8 @@ import java.util.Map.Entry;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
import com.google.gson.Gson;
|
||||||
|
import com.google.gson.GsonBuilder;
|
||||||
import com.google.gson.JsonArray;
|
import com.google.gson.JsonArray;
|
||||||
import com.google.gson.JsonElement;
|
import com.google.gson.JsonElement;
|
||||||
import com.google.gson.JsonObject;
|
import com.google.gson.JsonObject;
|
||||||
@ -40,6 +43,7 @@ import com.google.gson.JsonPrimitive;
|
|||||||
|
|
||||||
public class JSONUtils {
|
public class JSONUtils {
|
||||||
|
|
||||||
|
public static final Gson GSON = new GsonBuilder().setPrettyPrinting().serializeNulls().create();
|
||||||
public static final String PROP_VALUE = "_value";
|
public static final String PROP_VALUE = "_value";
|
||||||
|
|
||||||
public static Map<String, Object> element2map(JsonElement element) {
|
public static Map<String, Object> element2map(JsonElement element) {
|
||||||
@ -49,15 +53,12 @@ public class JSONUtils {
|
|||||||
for (Entry<String, JsonElement> entry : jsonObject.entrySet()) {
|
for (Entry<String, JsonElement> entry : jsonObject.entrySet()) {
|
||||||
result.put(entry.getKey(), element2object(entry.getValue()));
|
result.put(entry.getKey(), element2object(entry.getValue()));
|
||||||
}
|
}
|
||||||
} else
|
} else if (element.isJsonArray()) {
|
||||||
if (element.isJsonArray()) {
|
|
||||||
JsonArray array = element.getAsJsonArray();
|
JsonArray array = element.getAsJsonArray();
|
||||||
result.put(PROP_VALUE, element2list(element));
|
result.put(PROP_VALUE, element2list(element));
|
||||||
} else
|
} else if (element.isJsonNull()) {
|
||||||
if (element.isJsonNull()) {
|
|
||||||
result.put(PROP_VALUE, null);
|
result.put(PROP_VALUE, null);
|
||||||
} else
|
} else if (element.isJsonPrimitive()) {
|
||||||
if (element.isJsonPrimitive()) {
|
|
||||||
result.put(PROP_VALUE, element2value(element));
|
result.put(PROP_VALUE, element2value(element));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,7 +85,8 @@ public class JSONUtils {
|
|||||||
result = primitive.getAsNumber();
|
result = primitive.getAsNumber();
|
||||||
else if (primitive.isBoolean())
|
else if (primitive.isBoolean())
|
||||||
result = primitive.getAsBoolean();
|
result = primitive.getAsBoolean();
|
||||||
else result = primitive.getAsString();
|
else
|
||||||
|
result = primitive.getAsString();
|
||||||
} catch (Exception e1) {
|
} catch (Exception e1) {
|
||||||
try {
|
try {
|
||||||
result = element.getAsBoolean();
|
result = element.getAsBoolean();
|
||||||
@ -128,6 +130,12 @@ public class JSONUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static JsonObject getJsonRootObjectUnsafe(String jsonData) throws Exception {
|
||||||
|
JsonElement je = (new JsonParser()).parse(jsonData);
|
||||||
|
JsonObject root = je.getAsJsonObject();
|
||||||
|
return root;
|
||||||
|
}
|
||||||
|
|
||||||
public static void mergeObjects(JsonObject source, JsonObject target) {
|
public static void mergeObjects(JsonObject source, JsonObject target) {
|
||||||
if (source == null)
|
if (source == null)
|
||||||
return;
|
return;
|
||||||
@ -151,9 +159,34 @@ public class JSONUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean setValue(JsonObject origin, String path, JsonElement replacement, boolean ifMissing) {
|
public static boolean setValue(JsonObject origin, String path, JsonElement replacement, boolean ifMissing) {
|
||||||
String preparedPath = path.replaceAll("(\\[\\d+\\])", ".$1");
|
return setValue(origin, path, replacement, ifMissing, false);
|
||||||
String[] pathSplitted = preparedPath.split("\\.");
|
}
|
||||||
|
|
||||||
|
public static boolean setValue(JsonObject origin, String path, JsonElement replacement, boolean ifMissing,
|
||||||
|
boolean createFragments) {
|
||||||
|
String separator = path.indexOf('/') >= 0
|
||||||
|
? "/"
|
||||||
|
: ".";
|
||||||
|
String preparedPath = path.replaceAll("(\\[\\d+\\])", separator + "$1");
|
||||||
|
|
||||||
|
List<String> fragmentsList = new ArrayList<>();
|
||||||
|
int sepIndex = preparedPath.indexOf(separator);
|
||||||
|
while (sepIndex >= 0) {
|
||||||
|
if (sepIndex == 0) {
|
||||||
|
preparedPath = preparedPath.substring(separator.length());
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
fragmentsList.add(preparedPath.substring(0, sepIndex));
|
||||||
|
preparedPath = preparedPath.substring(sepIndex + separator.length());
|
||||||
|
sepIndex = preparedPath.indexOf(separator);
|
||||||
|
}
|
||||||
|
if (CommonUtils.isValid(preparedPath))
|
||||||
|
fragmentsList.add(preparedPath);
|
||||||
|
|
||||||
|
String[] pathSplitted = fragmentsList.toArray(new String[] {});
|
||||||
|
// String[] pathSplitted = preparedPath.split("\\\\" + separator);
|
||||||
JsonElement currentElement = origin;
|
JsonElement currentElement = origin;
|
||||||
|
JsonElement previousElement = null;
|
||||||
for (int i = 0; i < pathSplitted.length - 1; i++) {
|
for (int i = 0; i < pathSplitted.length - 1; i++) {
|
||||||
String fragment = pathSplitted[i];
|
String fragment = pathSplitted[i];
|
||||||
if (fragment.startsWith("[") && fragment.endsWith("]")) {
|
if (fragment.startsWith("[") && fragment.endsWith("]")) {
|
||||||
@ -172,7 +205,31 @@ public class JSONUtils {
|
|||||||
// System.out.println("ERROR: found indexed property on non-array value");
|
// System.out.println("ERROR: found indexed property on non-array value");
|
||||||
}
|
}
|
||||||
} else if (currentElement.isJsonObject()) {
|
} else if (currentElement.isJsonObject()) {
|
||||||
|
previousElement = currentElement;
|
||||||
currentElement = currentElement.getAsJsonObject().get(fragment);
|
currentElement = currentElement.getAsJsonObject().get(fragment);
|
||||||
|
if (currentElement == null) {
|
||||||
|
if (!createFragments)
|
||||||
|
break;
|
||||||
|
if (i == pathSplitted.length - 2) {
|
||||||
|
// it's last fragment -> create object
|
||||||
|
currentElement = new JsonObject();
|
||||||
|
} else {
|
||||||
|
// check the next element
|
||||||
|
String nextFragment = pathSplitted[i + 1];
|
||||||
|
if (!CommonUtils.isValid(nextFragment)) {
|
||||||
|
currentElement = new JsonObject();
|
||||||
|
} else {
|
||||||
|
if (nextFragment.startsWith("[") && nextFragment.endsWith("]")) {
|
||||||
|
// next element is array index, so we create array
|
||||||
|
currentElement = new JsonObject();
|
||||||
|
} else {
|
||||||
|
currentElement = new JsonObject();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
previousElement.getAsJsonObject().add(fragment, currentElement);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// TODO process
|
// TODO process
|
||||||
// System.out.println("ERROR: currentElement can't be traversed");
|
// System.out.println("ERROR: currentElement can't be traversed");
|
||||||
@ -186,7 +243,8 @@ public class JSONUtils {
|
|||||||
if (finalFragment.startsWith("[") && finalFragment.endsWith("]")) {
|
if (finalFragment.startsWith("[") && finalFragment.endsWith("]")) {
|
||||||
// array index
|
// array index
|
||||||
if (currentElement.isJsonArray()) {
|
if (currentElement.isJsonArray()) {
|
||||||
// System.out.println("INDEX: [" + finalFragment.substring(1, finalFragment.length()-1) + "]");
|
// System.out.println("INDEX: [" + finalFragment.substring(1,
|
||||||
|
// finalFragment.length()-1) + "]");
|
||||||
int index = Integer.parseInt(finalFragment.substring(1, finalFragment.length() - 1));
|
int index = Integer.parseInt(finalFragment.substring(1, finalFragment.length() - 1));
|
||||||
JsonArray arr = currentElement.getAsJsonArray();
|
JsonArray arr = currentElement.getAsJsonArray();
|
||||||
if (arr.size() > index) {
|
if (arr.size() > index) {
|
||||||
@ -214,10 +272,22 @@ public class JSONUtils {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated(forRemoval = true, since = "1.9")
|
||||||
public static JsonElement findElement(JsonObject jsonObject, String pathFragment) {
|
public static JsonElement findElement(JsonObject jsonObject, String pathFragment) {
|
||||||
JsonElement result = findElement(jsonObject, pathFragment, "");
|
JsonElement result = findElement(jsonObject, pathFragment, "");
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static JsonElement findElementExt(JsonObject jsonObject, String pathFragment) {
|
||||||
|
JsonElement result = null;
|
||||||
|
if (pathFragment.startsWith("?.")) {
|
||||||
|
result = findElement(jsonObject, pathFragment.substring(2), "");
|
||||||
|
} else {
|
||||||
|
result = getElement(jsonObject, pathFragment);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static JsonElement findElement(JsonObject jsonObject, String pathFragment, String parentPath) {
|
public static JsonElement findElement(JsonObject jsonObject, String pathFragment, String parentPath) {
|
||||||
@ -247,6 +317,43 @@ public class JSONUtils {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static JsonElement getElement(JsonObject jsonObject, String pathFragment) {
|
||||||
|
|
||||||
|
int ind = 0;
|
||||||
|
String currentFragment = "";
|
||||||
|
String newFragment = null;
|
||||||
|
|
||||||
|
if (pathFragment.startsWith("'")) {
|
||||||
|
int closing = pathFragment.indexOf("'", 1);
|
||||||
|
if (closing > 1) {
|
||||||
|
currentFragment = pathFragment.substring(1, closing);
|
||||||
|
ind = pathFragment.indexOf('.', closing);
|
||||||
|
if (ind > 0) {
|
||||||
|
newFragment = pathFragment.substring(ind + 1);
|
||||||
|
} else {
|
||||||
|
newFragment = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
ind = pathFragment.indexOf(".");
|
||||||
|
if (ind > 0) {
|
||||||
|
currentFragment = pathFragment.substring(0, ind);
|
||||||
|
newFragment = pathFragment.substring(ind + 1);
|
||||||
|
} else {
|
||||||
|
currentFragment = pathFragment;
|
||||||
|
newFragment = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!jsonObject.has(currentFragment))
|
||||||
|
return null;
|
||||||
|
JsonElement je = jsonObject.get(currentFragment);
|
||||||
|
if (newFragment == null)
|
||||||
|
return je;
|
||||||
|
if (!je.isJsonObject())
|
||||||
|
return null;
|
||||||
|
return getElement(je.getAsJsonObject(), newFragment);
|
||||||
|
}
|
||||||
|
|
||||||
public static class JsonTraverse {
|
public static class JsonTraverse {
|
||||||
|
|
||||||
@ -300,15 +407,12 @@ public class JSONUtils {
|
|||||||
for (Entry<String, JsonElement> entry : jsonObject.entrySet()) {
|
for (Entry<String, JsonElement> entry : jsonObject.entrySet()) {
|
||||||
result.put(entry.getKey(), element2object(entry.getValue(), context, path + "." + entry.getKey()));
|
result.put(entry.getKey(), element2object(entry.getValue(), context, path + "." + entry.getKey()));
|
||||||
}
|
}
|
||||||
} else
|
} else if (element.isJsonArray()) {
|
||||||
if (element.isJsonArray()) {
|
|
||||||
JsonArray array = element.getAsJsonArray();
|
JsonArray array = element.getAsJsonArray();
|
||||||
result.put(PROP_VALUE, element2list(element, context, path));
|
result.put(PROP_VALUE, element2list(element, context, path));
|
||||||
} else
|
} else if (element.isJsonNull()) {
|
||||||
if (element.isJsonNull()) {
|
|
||||||
result.put(PROP_VALUE, null);
|
result.put(PROP_VALUE, null);
|
||||||
} else
|
} else if (element.isJsonPrimitive()) {
|
||||||
if (element.isJsonPrimitive()) {
|
|
||||||
result.put(PROP_VALUE, element2value(element, context, path));
|
result.put(PROP_VALUE, element2value(element, context, path));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -325,7 +429,8 @@ public class JSONUtils {
|
|||||||
result = primitive.getAsNumber();
|
result = primitive.getAsNumber();
|
||||||
else if (primitive.isBoolean())
|
else if (primitive.isBoolean())
|
||||||
result = primitive.getAsBoolean();
|
result = primitive.getAsBoolean();
|
||||||
else result = primitive.getAsString();
|
else
|
||||||
|
result = primitive.getAsString();
|
||||||
} catch (Exception e1) {
|
} catch (Exception e1) {
|
||||||
try {
|
try {
|
||||||
result = element.getAsBoolean();
|
result = element.getAsBoolean();
|
||||||
@ -428,4 +533,222 @@ public class JSONUtils {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static class JsonBuilder {
|
||||||
|
|
||||||
|
public static JsonObjectBuilder create(JsonObject jsonObject) {
|
||||||
|
return new JsonObjectBuilder(jsonObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static abstract class CommonObjectBuilder<T extends CommonObjectBuilder<T>> {
|
||||||
|
|
||||||
|
protected JsonObject currentObject;
|
||||||
|
|
||||||
|
protected CommonObjectBuilder(JsonObject jsonObject) {
|
||||||
|
this.currentObject = jsonObject;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected T me() {
|
||||||
|
return (T) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public T string(String name, String value) {
|
||||||
|
return this.string(name, value, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public T string(String name, String value, boolean replace) {
|
||||||
|
JSONUtils.setValue(currentObject, name, new JsonPrimitive(value), replace);
|
||||||
|
return me();
|
||||||
|
}
|
||||||
|
|
||||||
|
public T bool(String name, boolean value) {
|
||||||
|
return this.bool(name, value, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public T bool(String name, boolean value, boolean replace) {
|
||||||
|
JSONUtils.setValue(currentObject, name, new JsonPrimitive(value), replace);
|
||||||
|
return me();
|
||||||
|
}
|
||||||
|
|
||||||
|
public T number(String name, Number value) {
|
||||||
|
return this.number(name, value, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public T number(String name, Number value, boolean replace) {
|
||||||
|
JSONUtils.setValue(currentObject, name, new JsonPrimitive(value), replace);
|
||||||
|
return me();
|
||||||
|
}
|
||||||
|
|
||||||
|
public JsonArrayBuilder<T> array(String name) {
|
||||||
|
return this.array(name, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public JsonArrayBuilder<T> array(String name, boolean replace) {
|
||||||
|
if (replace)
|
||||||
|
this.currentObject.remove(name);
|
||||||
|
if (!this.currentObject.has(name)) {
|
||||||
|
this.currentObject.add(name, new JsonArray());
|
||||||
|
}
|
||||||
|
JsonElement je = this.currentObject.get(name);
|
||||||
|
if (!je.isJsonArray()) {
|
||||||
|
this.currentObject.remove(name);
|
||||||
|
this.currentObject.add(name, new JsonArray());
|
||||||
|
}
|
||||||
|
|
||||||
|
return new JsonArrayBuilder<T>(this.currentObject.get(name).getAsJsonArray(), me());
|
||||||
|
}
|
||||||
|
|
||||||
|
protected JsonObject getCreateobject(String name, boolean replace) {
|
||||||
|
if (replace)
|
||||||
|
this.currentObject.remove(name);
|
||||||
|
if (!this.currentObject.has(name)) {
|
||||||
|
this.currentObject.add(name, new JsonObject());
|
||||||
|
}
|
||||||
|
JsonElement je = this.currentObject.get(name);
|
||||||
|
if (!je.isJsonObject()) {
|
||||||
|
this.currentObject.remove(name);
|
||||||
|
this.currentObject.add(name, new JsonObject());
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.currentObject.get(name).getAsJsonObject();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class JsonObjectBuilder extends CommonObjectBuilder<JsonObjectBuilder> {
|
||||||
|
|
||||||
|
protected JsonObjectBuilder parentBuilder = null;
|
||||||
|
|
||||||
|
protected JsonObjectBuilder(JsonObject jsonObject) {
|
||||||
|
super(jsonObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected JsonObjectBuilder(JsonObject jsonObject, JsonObjectBuilder parent) {
|
||||||
|
this(jsonObject);
|
||||||
|
this.parentBuilder = parent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JsonObjectBuilder object(String name) {
|
||||||
|
return this.object(name, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public JsonObjectBuilder object(String name, boolean replace) {
|
||||||
|
|
||||||
|
return new JsonObjectBuilder(getCreateobject(name, replace), this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public JsonObjectBuilder up() {
|
||||||
|
return this.parentBuilder;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class JsonObjectInArrayBuilder<T extends AbstractJsonArrayBuilder<T>>
|
||||||
|
extends CommonObjectBuilder<JsonObjectInArrayBuilder<T>> {
|
||||||
|
|
||||||
|
protected T parentBuilder = null;
|
||||||
|
|
||||||
|
protected JsonObjectInArrayBuilder(JsonObject jsonObject, T parent) {
|
||||||
|
super(jsonObject);
|
||||||
|
this.parentBuilder = parent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JsonObjectBuilder object(String name) {
|
||||||
|
return this.object(name, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public JsonObjectBuilder object(String name, boolean replace) {
|
||||||
|
|
||||||
|
return new JsonObjectBuilder(getCreateobject(name, replace));
|
||||||
|
}
|
||||||
|
|
||||||
|
public T up() {
|
||||||
|
return this.parentBuilder;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static class AbstractJsonArrayBuilder<T extends AbstractJsonArrayBuilder<T>> {
|
||||||
|
|
||||||
|
JsonArray currentArray;
|
||||||
|
|
||||||
|
protected AbstractJsonArrayBuilder(JsonArray jsonArray) {
|
||||||
|
this.currentArray = jsonArray;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected T me() {
|
||||||
|
return (T) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public T clear() {
|
||||||
|
for (int i = 0; i < this.currentArray.size(); i++)
|
||||||
|
this.currentArray.remove(0);
|
||||||
|
return me();
|
||||||
|
}
|
||||||
|
|
||||||
|
public T string(String value) {
|
||||||
|
this.currentArray.add(value);
|
||||||
|
return me();
|
||||||
|
}
|
||||||
|
|
||||||
|
public T bool(boolean value) {
|
||||||
|
this.currentArray.add(value);
|
||||||
|
return me();
|
||||||
|
}
|
||||||
|
|
||||||
|
public T number(Number value) {
|
||||||
|
this.currentArray.add(value);
|
||||||
|
return me();
|
||||||
|
}
|
||||||
|
|
||||||
|
public JsonObjectInArrayBuilder<T> object() {
|
||||||
|
JsonObject jo = new JsonObject();
|
||||||
|
this.currentArray.add(jo);
|
||||||
|
return new JsonObjectInArrayBuilder<>(jo, me());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class JsonArrayBuilder<T extends CommonObjectBuilder<T>>
|
||||||
|
extends AbstractJsonArrayBuilder<JsonArrayBuilder<T>> {
|
||||||
|
|
||||||
|
T parentBuilder;
|
||||||
|
|
||||||
|
protected JsonArrayBuilder(JsonArray jsonArray, T parent) {
|
||||||
|
super(jsonArray);
|
||||||
|
this.parentBuilder = parent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JsonArrayInArrayBuilder<JsonArrayBuilder<T>> array() {
|
||||||
|
JsonArray ja = new JsonArray();
|
||||||
|
this.currentArray.add(ja);
|
||||||
|
return new JsonArrayInArrayBuilder<JsonArrayBuilder<T>>(ja, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public T up() {
|
||||||
|
return parentBuilder;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class JsonArrayInArrayBuilder<T extends AbstractJsonArrayBuilder<T>>
|
||||||
|
extends AbstractJsonArrayBuilder<JsonArrayInArrayBuilder<T>> {
|
||||||
|
|
||||||
|
T parentBuilder;
|
||||||
|
|
||||||
|
protected JsonArrayInArrayBuilder(JsonArray jsonArray, T parent) {
|
||||||
|
super(jsonArray);
|
||||||
|
this.parentBuilder = parent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JsonArrayInArrayBuilder<JsonArrayInArrayBuilder<T>> array() {
|
||||||
|
JsonArray ja = new JsonArray();
|
||||||
|
this.currentArray.add(ja);
|
||||||
|
return new JsonArrayInArrayBuilder<JsonArrayInArrayBuilder<T>>(ja, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public T up() {
|
||||||
|
return parentBuilder;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* base-support
|
* base-support
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.support.osgi;
|
package ru.entaxy.platform.base.support.osgi;
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* base-support
|
* base-support
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.support.osgi;
|
package ru.entaxy.platform.base.support.osgi;
|
||||||
|
@ -0,0 +1,92 @@
|
|||||||
|
/*-
|
||||||
|
* ~~~~~~licensing~~~~~~
|
||||||
|
* base-support
|
||||||
|
* ==========
|
||||||
|
* Copyright (C) 2020 - 2024 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.base.support.osgi.bundle;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.osgi.framework.Bundle;
|
||||||
|
import org.osgi.framework.wiring.BundleCapability;
|
||||||
|
import org.osgi.framework.wiring.BundleRevision;
|
||||||
|
import org.osgi.framework.wiring.BundleWiring;
|
||||||
|
|
||||||
|
public class BundleCapabilityHelper extends CapabilityHelper {
|
||||||
|
|
||||||
|
protected Bundle bundle;
|
||||||
|
|
||||||
|
protected boolean isLoaded = false;
|
||||||
|
|
||||||
|
public BundleCapabilityHelper(Bundle bundle) {
|
||||||
|
super();
|
||||||
|
this.bundle = bundle;
|
||||||
|
setMultipleNamespacesSupported(true);
|
||||||
|
load();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void load() {
|
||||||
|
List<BundleCapability> capabilities = null;
|
||||||
|
BundleWiring bundleWiring = bundle.adapt(BundleWiring.class);
|
||||||
|
if (bundleWiring != null) {
|
||||||
|
capabilities = bundleWiring.getCapabilities(null);
|
||||||
|
} else {
|
||||||
|
BundleRevision bundleRevision = bundle.adapt(BundleRevision.class);
|
||||||
|
if (bundleRevision != null) {
|
||||||
|
capabilities = bundleRevision.getDeclaredCapabilities(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (capabilities == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
for (BundleCapability cap : capabilities) {
|
||||||
|
CapabilityDescriptorImpl descriptor = new CapabilityDescriptorImpl();
|
||||||
|
descriptor.namespace(cap.getNamespace());
|
||||||
|
for (Map.Entry<String, Object> attr : cap.getAttributes().entrySet())
|
||||||
|
descriptor.attribute(attr.getKey(), attr.getValue());
|
||||||
|
addProvidedCapability(descriptor);
|
||||||
|
}
|
||||||
|
|
||||||
|
isLoaded = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CapabilityDescriptor findObjectDeclaration(String objectId, String objectType) {
|
||||||
|
if (this.providedCapabilities == null)
|
||||||
|
return null;
|
||||||
|
if (this.providedCapabilities.get(objectType) == null)
|
||||||
|
return null;
|
||||||
|
for (CapabilityDescriptor desc : this.providedCapabilities.get(objectType))
|
||||||
|
if (objectId.equals(desc.getAttributes().getOrDefault("objectId", "").toString()))
|
||||||
|
return desc;
|
||||||
|
return null;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isLoaded() {
|
||||||
|
return isLoaded;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,77 @@
|
|||||||
|
/*-
|
||||||
|
* ~~~~~~licensing~~~~~~
|
||||||
|
* artifact-management
|
||||||
|
* ==========
|
||||||
|
* Copyright (C) 2020 - 2024 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.base.support.osgi.bundle;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.osgi.resource.Capability;
|
||||||
|
|
||||||
|
public interface CapabilityDescriptor extends Capability {
|
||||||
|
|
||||||
|
public static final String HEADER_PROVIDE_CAPABILITY = "Provide-Capability";
|
||||||
|
public static final String HEADER_REQUIRE_CAPABILITY = "Require-Capability";
|
||||||
|
|
||||||
|
public static interface ATTRIBUTE_TYPES {
|
||||||
|
|
||||||
|
public static final String STRING = "String";
|
||||||
|
public static final String VERSION = "Version";
|
||||||
|
public static final String LONG = "Long";
|
||||||
|
public static final String DOUBLE = "Double";
|
||||||
|
public static final String LIST = "List";
|
||||||
|
|
||||||
|
public static String TYPED_LIST(String itemType) {
|
||||||
|
return LIST + "<" + itemType + ">";
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean isList(String itemType) {
|
||||||
|
return (itemType != null) && (itemType.startsWith(LIST));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String itemType(String listType) {
|
||||||
|
if (!isList(listType))
|
||||||
|
return null;
|
||||||
|
|
||||||
|
return listType.substring(listType.indexOf("<"), listType.indexOf(">"));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get attributes as they exist without extracting and transforming
|
||||||
|
*
|
||||||
|
* @return map of attributes
|
||||||
|
*/
|
||||||
|
public Map<String, Object> getRawAttributes();
|
||||||
|
|
||||||
|
public CapabilityDescriptor namespace(String namespace);
|
||||||
|
|
||||||
|
public CapabilityDescriptor attributes(Map<String, Object> attributes);
|
||||||
|
|
||||||
|
public CapabilityDescriptor attribute(String name, Object value);
|
||||||
|
|
||||||
|
public CapabilityDescriptor attribute(String name, Object value, String type);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,219 @@
|
|||||||
|
/*-
|
||||||
|
* ~~~~~~licensing~~~~~~
|
||||||
|
* artifact-management
|
||||||
|
* ==========
|
||||||
|
* Copyright (C) 2020 - 2024 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.base.support.osgi.bundle;
|
||||||
|
|
||||||
|
import java.nio.charset.CharsetEncoder;
|
||||||
|
import java.nio.charset.StandardCharsets;
|
||||||
|
import java.util.Base64;
|
||||||
|
import java.util.Base64.Decoder;
|
||||||
|
import java.util.Base64.Encoder;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Map.Entry;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
import org.osgi.resource.Resource;
|
||||||
|
|
||||||
|
import ru.entaxy.platform.base.support.CommonUtils;
|
||||||
|
|
||||||
|
public class CapabilityDescriptorImpl implements CapabilityDescriptor {
|
||||||
|
|
||||||
|
protected String namespace;
|
||||||
|
|
||||||
|
protected Map<String, String> directives = new HashMap<>();
|
||||||
|
protected Map<String, AttributeDescriptor> attributes = new HashMap<>();
|
||||||
|
|
||||||
|
private static class AttributeDescriptor {
|
||||||
|
|
||||||
|
public static final String MARKER_BASE64 = "@BASE64";
|
||||||
|
|
||||||
|
private static final CharsetEncoder ENCODER = StandardCharsets.ISO_8859_1.newEncoder();
|
||||||
|
|
||||||
|
private static final Encoder BASE64_ENCODER = Base64.getEncoder();
|
||||||
|
|
||||||
|
private static final Decoder BASE64_DECODER = Base64.getDecoder();
|
||||||
|
|
||||||
|
String type;
|
||||||
|
Object value;
|
||||||
|
|
||||||
|
public AttributeDescriptor(Object value) {
|
||||||
|
this(value, CapabilityTypeHelper.getTypeName(value));
|
||||||
|
}
|
||||||
|
|
||||||
|
public AttributeDescriptor(Object value, String type) {
|
||||||
|
this.type = type;
|
||||||
|
this.value = value == null ? "" : value; // .toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPackedStringValue(String data) {
|
||||||
|
if (ENCODER.canEncode(data))
|
||||||
|
return data;
|
||||||
|
return BASE64_ENCODER.encodeToString(data.getBytes()).concat(MARKER_BASE64);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUnpackedStringValue(String data) {
|
||||||
|
if (data.endsWith(MARKER_BASE64))
|
||||||
|
return new String(BASE64_DECODER.decode(data.substring(0, data.length() - MARKER_BASE64.length())));
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getValue() {
|
||||||
|
if (!CapabilityDescriptor.ATTRIBUTE_TYPES.STRING.equals(type))
|
||||||
|
return value;
|
||||||
|
return getUnpackedStringValue(value.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getValueAsString() {
|
||||||
|
if (value == null)
|
||||||
|
return null;
|
||||||
|
if (CapabilityDescriptor.ATTRIBUTE_TYPES.isList(type))
|
||||||
|
return CapabilityTypeHelper.getListAsString((List<?>) value);
|
||||||
|
if (CapabilityDescriptor.ATTRIBUTE_TYPES.STRING.equals(type))
|
||||||
|
return "\"" + getPackedStringValue(value.toString()) + "\"";
|
||||||
|
return value.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRawValueAsString() {
|
||||||
|
if (value == null)
|
||||||
|
return null;
|
||||||
|
if (CapabilityDescriptor.ATTRIBUTE_TYPES.isList(type))
|
||||||
|
return CapabilityTypeHelper.getListAsString((List<?>) value);
|
||||||
|
if (CapabilityDescriptor.ATTRIBUTE_TYPES.STRING.equals(type))
|
||||||
|
return "\"" + value.toString() + "\"";
|
||||||
|
return value.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public CapabilityDescriptorImpl() {
|
||||||
|
// TODO Auto-generated constructor stub
|
||||||
|
}
|
||||||
|
|
||||||
|
public CapabilityDescriptorImpl(String namespace) {
|
||||||
|
this();
|
||||||
|
namespace(namespace);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAttributesAsString() {
|
||||||
|
return this.attributes.entrySet().stream()
|
||||||
|
.map(entry -> entry.getKey()
|
||||||
|
+ /* (!ATTRIBUTE_TYPES.STRING.equals(entry.getValue().type)?( */":" + entry.getValue().type/*
|
||||||
|
* )
|
||||||
|
* :
|
||||||
|
* "")
|
||||||
|
*/
|
||||||
|
+ "=" + entry.getValue().getValueAsString())
|
||||||
|
.collect(Collectors.joining(";"));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getNamespace() {
|
||||||
|
return this.namespace;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, String> getDirectives() {
|
||||||
|
return this.directives;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, Object> getAttributes() {
|
||||||
|
Map<String, Object> result = new HashMap<>();
|
||||||
|
for (Map.Entry<String, AttributeDescriptor> entry : this.attributes.entrySet())
|
||||||
|
result.put(entry.getKey(), entry.getValue().getValue());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, Object> getRawAttributes() {
|
||||||
|
Map<String, Object> result = new HashMap<>();
|
||||||
|
for (Map.Entry<String, AttributeDescriptor> entry : this.attributes.entrySet())
|
||||||
|
result.put(entry.getKey(), entry.getValue().value);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Resource getResource() {
|
||||||
|
// not implemented
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public CapabilityDescriptor namespace(String namespace) {
|
||||||
|
this.namespace = namespace;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public CapabilityDescriptor attribute(String name, Object value) {
|
||||||
|
this.attributes.put(name, new AttributeDescriptor(value));
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public CapabilityDescriptor attribute(String name, Object value, String type) {
|
||||||
|
this.attributes.put(name, new AttributeDescriptor(value, type));
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CapabilityDescriptor parseAttribute(String attributeData) {
|
||||||
|
|
||||||
|
String nameType = attributeData.substring(0, attributeData.indexOf("="));
|
||||||
|
if (!CommonUtils.isValid(nameType))
|
||||||
|
return this;
|
||||||
|
String[] nameTypeSplit = nameType.split(":");
|
||||||
|
|
||||||
|
String name = nameTypeSplit[0].trim();
|
||||||
|
|
||||||
|
String type = (nameTypeSplit.length > 1 ? nameTypeSplit[1] : CapabilityDescriptor.ATTRIBUTE_TYPES.STRING);
|
||||||
|
if (!CommonUtils.isValid(type))
|
||||||
|
type = CapabilityDescriptor.ATTRIBUTE_TYPES.STRING;
|
||||||
|
type = type.trim();
|
||||||
|
|
||||||
|
String value = attributeData.substring(attributeData.indexOf("=") + 1);
|
||||||
|
if (!CommonUtils.isValid(value))
|
||||||
|
value = "";
|
||||||
|
value = value.trim();
|
||||||
|
|
||||||
|
Object typedValue = CapabilityTypeHelper.getTypedValue(type, value);
|
||||||
|
this.attribute(name, typedValue, type);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public CapabilityDescriptor attributes(Map<String, Object> attributes) {
|
||||||
|
if (attributes == null)
|
||||||
|
return this;
|
||||||
|
for (Entry<String, Object> entry : attributes.entrySet()) {
|
||||||
|
this.attribute(entry.getKey(), entry.getValue());
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,171 @@
|
|||||||
|
/*-
|
||||||
|
* ~~~~~~licensing~~~~~~
|
||||||
|
* test-producers
|
||||||
|
* ==========
|
||||||
|
* Copyright (C) 2020 - 2024 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.base.support.osgi.bundle;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
import ru.entaxy.platform.base.support.CommonUtils;
|
||||||
|
|
||||||
|
public class CapabilityHelper {
|
||||||
|
|
||||||
|
protected boolean isMultipleNamespacesSupported = false;
|
||||||
|
|
||||||
|
protected Map<String, CapabilityDescriptorImpl> requiredCapabilities = new HashMap<>();
|
||||||
|
protected Map<String, List<CapabilityDescriptorImpl>> providedCapabilities = new HashMap<>();
|
||||||
|
|
||||||
|
protected Set<String> osgiCapabilities = new HashSet<>();
|
||||||
|
|
||||||
|
public CapabilityHelper() {
|
||||||
|
super();
|
||||||
|
osgiCapabilities.add("osgi.identity");
|
||||||
|
osgiCapabilities.add("osgi.wiring.bundle");
|
||||||
|
osgiCapabilities.add("osgi.wiring.host");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void load() {
|
||||||
|
/*
|
||||||
|
* String existing =
|
||||||
|
* this.manifest.getCustomAttributes().get(CapabilityDescriptor.HEADER_PROVIDE_CAPABILITY);
|
||||||
|
* if (CommonUtils.isValid(existing)) { List<CapabilityDescriptorImpl> list =
|
||||||
|
* parse(existing); for (CapabilityDescriptorImpl c: list) addProvidedCapability(c); }
|
||||||
|
* existing =
|
||||||
|
* this.manifest.getCustomAttributes().get(CapabilityDescriptor.HEADER_REQUIRE_CAPABILITY);
|
||||||
|
* if (CommonUtils.isValid(existing)) { List<CapabilityDescriptorImpl> list =
|
||||||
|
* parse(existing); for (CapabilityDescriptorImpl c: list) addRequiredCapability(c); }
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addProvidedCapability(CapabilityDescriptorImpl capabilityDescriptorImpl) {
|
||||||
|
if (capabilityDescriptorImpl == null)
|
||||||
|
return;
|
||||||
|
if (!isMultipleNamespacesSupported) {
|
||||||
|
this.providedCapabilities.put(capabilityDescriptorImpl.getNamespace(),
|
||||||
|
Collections.singletonList(capabilityDescriptorImpl));
|
||||||
|
} else {
|
||||||
|
if (!this.providedCapabilities.containsKey(capabilityDescriptorImpl.getNamespace()))
|
||||||
|
this.providedCapabilities.put(capabilityDescriptorImpl.getNamespace(), new ArrayList<>());
|
||||||
|
this.providedCapabilities.get(capabilityDescriptorImpl.getNamespace())
|
||||||
|
.add(capabilityDescriptorImpl);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
protected void addRequiredCapability(CapabilityDescriptorImpl capabilityDescriptorImpl) {
|
||||||
|
if (capabilityDescriptorImpl == null)
|
||||||
|
return;
|
||||||
|
this.requiredCapabilities.put(capabilityDescriptorImpl.getNamespace(), capabilityDescriptorImpl);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected List<CapabilityDescriptorImpl> parse(String capabilities) {
|
||||||
|
List<CapabilityDescriptorImpl> result = new ArrayList<>();
|
||||||
|
String[] caps = capabilities.split(",");
|
||||||
|
for (int i = 0; i < caps.length; i++)
|
||||||
|
if (CommonUtils.isValid(caps[i])) {
|
||||||
|
result.add(parseCapability(caps[i]));
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected CapabilityDescriptorImpl parseCapability(String capability) {
|
||||||
|
String[] parsed = capability.split(";");
|
||||||
|
CapabilityDescriptorImpl result = new CapabilityDescriptorImpl(parsed[0].trim());
|
||||||
|
for (int i = 1; i < parsed.length; i++) {
|
||||||
|
if (!CommonUtils.isValid(parsed[i]))
|
||||||
|
continue;
|
||||||
|
result.parseAttribute(parsed[i]);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<CapabilityDescriptor> getProvidedCapabilities() {
|
||||||
|
return this.providedCapabilities.values().stream()
|
||||||
|
.flatMap(List::stream)
|
||||||
|
.map(c -> (CapabilityDescriptor) c)
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<CapabilityDescriptor> getEntaxyObjectsProvidedCapabilities() {
|
||||||
|
return this.providedCapabilities.entrySet().stream()
|
||||||
|
.filter(e -> !osgiCapabilities.contains(e.getKey()))
|
||||||
|
.map(e -> e.getValue())
|
||||||
|
.flatMap(List::stream)
|
||||||
|
.map(c -> (CapabilityDescriptor) c)
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<CapabilityDescriptor> getProvidedCapabilities(String namespace) {
|
||||||
|
if (!this.providedCapabilities.containsKey(namespace))
|
||||||
|
return new ArrayList<>();
|
||||||
|
return this.providedCapabilities.get(namespace)
|
||||||
|
.stream()
|
||||||
|
.map(c -> (CapabilityDescriptor) c)
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public List<CapabilityDescriptor> getRequiredCapabilities() {
|
||||||
|
return this.requiredCapabilities.values().stream()
|
||||||
|
.map(c -> (CapabilityDescriptor) c)
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isCapabilityProvided(String namespace) {
|
||||||
|
return this.providedCapabilities.containsKey(namespace);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isCapabilityRequired(String namespace) {
|
||||||
|
return this.requiredCapabilities.containsKey(namespace);
|
||||||
|
}
|
||||||
|
|
||||||
|
public CapabilityDescriptor provideCapability(String namespace) {
|
||||||
|
CapabilityDescriptorImpl desc = new CapabilityDescriptorImpl(namespace);
|
||||||
|
addProvidedCapability(desc);
|
||||||
|
return desc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CapabilityDescriptor requireCapability(String namespace) {
|
||||||
|
if (!this.requiredCapabilities.containsKey(namespace))
|
||||||
|
this.requiredCapabilities.put(namespace, new CapabilityDescriptorImpl(namespace));
|
||||||
|
return this.requiredCapabilities.get(namespace);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isMultipleNamespacesSupported() {
|
||||||
|
return isMultipleNamespacesSupported;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMultipleNamespacesSupported(boolean isMultipleNamespacesSupported) {
|
||||||
|
this.isMultipleNamespacesSupported = isMultipleNamespacesSupported;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -2,29 +2,35 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* test-producers
|
* test-producers
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.core.artifact.capabilities;
|
package ru.entaxy.platform.base.support.osgi.bundle;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import ru.entaxy.platform.base.support.CommonUtils;
|
import ru.entaxy.platform.base.support.CommonUtils;
|
||||||
import ru.entaxy.platform.core.artifact.capabilities.CapabilityDescriptor.ATTRIBUTE_TYPES;
|
import ru.entaxy.platform.base.support.osgi.bundle.CapabilityDescriptor.ATTRIBUTE_TYPES;
|
||||||
|
|
||||||
public class CapabilityTypeHelper {
|
public class CapabilityTypeHelper {
|
||||||
|
|
@ -0,0 +1,76 @@
|
|||||||
|
/*-
|
||||||
|
* ~~~~~~licensing~~~~~~
|
||||||
|
* system-commons
|
||||||
|
* ==========
|
||||||
|
* Copyright (C) 2020 - 2024 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.base.support.osgi.service;
|
||||||
|
|
||||||
|
import org.osgi.framework.ServiceReference;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
|
public abstract class CommonNamedReferenceListener<T> implements NamedReferenceListener<T> {
|
||||||
|
|
||||||
|
protected Map<String, T> registeredReferences = new HashMap<String, T>();
|
||||||
|
|
||||||
|
public void register(T service) throws Exception {
|
||||||
|
if (service instanceof ServiceReference)
|
||||||
|
return;
|
||||||
|
String key = getObjectName(service);
|
||||||
|
registeredReferences.put(key, service);
|
||||||
|
doAfterRegister(service);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void doAfterRegister(T service) throws Exception {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void doBeforeUnregister(T service) throws Exception {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void unregister(T service) throws Exception {
|
||||||
|
if (service == null || service instanceof ServiceReference)
|
||||||
|
return;
|
||||||
|
doBeforeUnregister(service);
|
||||||
|
registeredReferences.remove(getObjectName(service));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<String> getReferenceNames() {
|
||||||
|
List<String> result = new ArrayList<String>(registeredReferences.keySet());
|
||||||
|
Collections.sort(result);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public T getReference(String referenceName) {
|
||||||
|
return registeredReferences.get(referenceName);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isRegistered(String referenceName) {
|
||||||
|
return registeredReferences.containsKey(referenceName);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected abstract String getObjectName(T object);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
/*-
|
||||||
|
* ~~~~~~licensing~~~~~~
|
||||||
|
* system-commons
|
||||||
|
* ==========
|
||||||
|
* Copyright (C) 2020 - 2024 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.base.support.osgi.service;
|
||||||
|
|
||||||
|
import org.osgi.framework.ServiceReference;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class CommonReferenceListener<T> implements ReferenceListener<T> {
|
||||||
|
|
||||||
|
protected List<T> registeredReferences = new ArrayList<T>();
|
||||||
|
|
||||||
|
public void register(T service) {
|
||||||
|
if (service instanceof ServiceReference)
|
||||||
|
return;
|
||||||
|
registeredReferences.add(service);
|
||||||
|
doAfterRegister(service);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void doAfterRegister(T service) {
|
||||||
|
// to override
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void doBeforeUnregister(T service) {
|
||||||
|
// to override
|
||||||
|
}
|
||||||
|
|
||||||
|
public void unregister(T service) {
|
||||||
|
if (service instanceof ServiceReference)
|
||||||
|
return;
|
||||||
|
if (registeredReferences.contains(service)) {
|
||||||
|
doBeforeUnregister(service);
|
||||||
|
registeredReferences.remove(service);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,38 @@
|
|||||||
|
/*-
|
||||||
|
* ~~~~~~licensing~~~~~~
|
||||||
|
* system-commons
|
||||||
|
* ==========
|
||||||
|
* Copyright (C) 2020 - 2024 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.base.support.osgi.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface NamedReferenceListener<T> extends ReferenceListener<T> {
|
||||||
|
|
||||||
|
public List<String> getReferenceNames();
|
||||||
|
|
||||||
|
public T getReference(String referenceName);
|
||||||
|
|
||||||
|
public boolean isRegistered(String referenceName);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
/*-
|
||||||
|
* ~~~~~~licensing~~~~~~
|
||||||
|
* system-commons
|
||||||
|
* ==========
|
||||||
|
* Copyright (C) 2020 - 2024 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.base.support.osgi.service;
|
||||||
|
|
||||||
|
public interface ReferenceListener<T> {
|
||||||
|
public void register(T service) throws Exception;
|
||||||
|
|
||||||
|
public void unregister(T service) throws Exception;
|
||||||
|
}
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* profile-management
|
* profile-management
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.support.osgi.tracker;
|
package ru.entaxy.platform.base.support.osgi.tracker;
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* profile-management
|
* profile-management
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.support.osgi.tracker;
|
package ru.entaxy.platform.base.support.osgi.tracker;
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* profile-management
|
* profile-management
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.support.osgi.tracker;
|
package ru.entaxy.platform.base.support.osgi.tracker;
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* profile-management
|
* profile-management
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.support.osgi.tracker;
|
package ru.entaxy.platform.base.support.osgi.tracker;
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* profile-management
|
* profile-management
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.support.osgi.tracker;
|
package ru.entaxy.platform.base.support.osgi.tracker;
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* base-support
|
* base-support
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.support.osgi.tracker.filter;
|
package ru.entaxy.platform.base.support.osgi.tracker.filter;
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* profile-management
|
* profile-management
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.support.osgi.tracker.filter;
|
package ru.entaxy.platform.base.support.osgi.tracker.filter;
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* base-support
|
* base-support
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.support.osgi.tracker.filter;
|
package ru.entaxy.platform.base.support.osgi.tracker.filter;
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* base-support
|
* base-support
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.support.xml;
|
package ru.entaxy.platform.base.support.xml;
|
||||||
@ -32,16 +38,20 @@ import javax.xml.bind.Marshaller;
|
|||||||
import javax.xml.bind.Unmarshaller;
|
import javax.xml.bind.Unmarshaller;
|
||||||
import javax.xml.parsers.DocumentBuilder;
|
import javax.xml.parsers.DocumentBuilder;
|
||||||
import javax.xml.parsers.DocumentBuilderFactory;
|
import javax.xml.parsers.DocumentBuilderFactory;
|
||||||
|
import javax.xml.parsers.ParserConfigurationException;
|
||||||
import javax.xml.transform.OutputKeys;
|
import javax.xml.transform.OutputKeys;
|
||||||
import javax.xml.transform.Result;
|
import javax.xml.transform.Result;
|
||||||
import javax.xml.transform.Transformer;
|
import javax.xml.transform.Transformer;
|
||||||
|
import javax.xml.transform.TransformerConfigurationException;
|
||||||
import javax.xml.transform.TransformerFactory;
|
import javax.xml.transform.TransformerFactory;
|
||||||
import javax.xml.transform.dom.DOMSource;
|
import javax.xml.transform.dom.DOMSource;
|
||||||
import javax.xml.transform.stream.StreamResult;
|
import javax.xml.transform.stream.StreamResult;
|
||||||
|
|
||||||
/*import net.sf.saxon.TransformerFactoryImpl;
|
/*
|
||||||
import net.sf.saxon.lib.NamespaceConstant;
|
* import net.sf.saxon.TransformerFactoryImpl; import net.sf.saxon.lib.NamespaceConstant;
|
||||||
*/
|
*/
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.w3c.dom.Document;
|
import org.w3c.dom.Document;
|
||||||
import org.w3c.dom.Node;
|
import org.w3c.dom.Node;
|
||||||
import org.w3c.dom.NodeList;
|
import org.w3c.dom.NodeList;
|
||||||
@ -50,6 +60,11 @@ import org.xml.sax.InputSource;
|
|||||||
import ru.entaxy.platform.base.support.CommonUtils;
|
import ru.entaxy.platform.base.support.CommonUtils;
|
||||||
|
|
||||||
public class CommonXMLUtils {
|
public class CommonXMLUtils {
|
||||||
|
public static final Logger log = LoggerFactory.getLogger(CommonXMLUtils.class);
|
||||||
|
private static final String XML_SAX_EXTERNAL_GENERAL_ENTITIES =
|
||||||
|
"http://xml.org/sax/features/external-general-entities";
|
||||||
|
private static final String XML_SAX_EXTERNAL_PARAMETER_ENTITIES =
|
||||||
|
"http://xml.org/sax/features/external-parameter-entities";
|
||||||
|
|
||||||
// GETTING DOCUMENT
|
// GETTING DOCUMENT
|
||||||
|
|
||||||
@ -60,6 +75,7 @@ public class CommonXMLUtils {
|
|||||||
public static Document getDocument(InputStream stream) throws Exception {
|
public static Document getDocument(InputStream stream) throws Exception {
|
||||||
return getDocument(false, stream);
|
return getDocument(false, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Document getDocument(boolean namespaceAware, InputStream stream) throws Exception {
|
public static Document getDocument(boolean namespaceAware, InputStream stream) throws Exception {
|
||||||
InputSource is = new InputSource(stream);
|
InputSource is = new InputSource(stream);
|
||||||
return getDocument(namespaceAware, is);
|
return getDocument(namespaceAware, is);
|
||||||
@ -68,11 +84,14 @@ public class CommonXMLUtils {
|
|||||||
public static Document newDocument(boolean namespaceAware) throws Exception {
|
public static Document newDocument(boolean namespaceAware) throws Exception {
|
||||||
return getDocument(namespaceAware, (File) null);
|
return getDocument(namespaceAware, (File) null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Document getDocument(boolean namespaceAware, String path) throws Exception {
|
public static Document getDocument(boolean namespaceAware, String path) throws Exception {
|
||||||
return getDocument(namespaceAware, CommonUtils.isValid(path) ? (new File(path)) : null);
|
return getDocument(namespaceAware, CommonUtils.isValid(path) ? (new File(path)) : null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Document getDocument(boolean namespaceAware, File file) throws Exception {
|
public static Document getDocument(boolean namespaceAware, File file) throws Exception {
|
||||||
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
|
DocumentBuilderFactory dbf = newDocumentBuilderFactoryInstance();
|
||||||
|
|
||||||
dbf.setNamespaceAware(namespaceAware);
|
dbf.setNamespaceAware(namespaceAware);
|
||||||
DocumentBuilder db = dbf.newDocumentBuilder();
|
DocumentBuilder db = dbf.newDocumentBuilder();
|
||||||
if (file != null)
|
if (file != null)
|
||||||
@ -81,29 +100,66 @@ public class CommonXMLUtils {
|
|||||||
return db.newDocument();
|
return db.newDocument();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Document newDocument() throws Exception {
|
public static Document newDocument() throws Exception {
|
||||||
return newDocument(false);
|
return newDocument(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Document getDocument(String path) throws Exception {
|
public static Document getDocument(String path) throws Exception {
|
||||||
return getDocument(false, path);
|
return getDocument(false, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Document parseString(boolean namespaceAware, String xmlData) throws Exception {
|
public static Document parseString(boolean namespaceAware, String xmlData) throws Exception {
|
||||||
InputSource is = new InputSource(new StringReader(xmlData));
|
InputSource is = new InputSource(new StringReader(xmlData));
|
||||||
return getDocument(namespaceAware, is);
|
return getDocument(namespaceAware, is);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Document getDocument(InputSource source) throws Exception {
|
public static Document getDocument(InputSource source) throws Exception {
|
||||||
return getDocument(false, source);
|
return getDocument(false, source);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Document getDocument(boolean namespaceAware, InputSource source) throws Exception {
|
public static Document getDocument(boolean namespaceAware, InputSource source) throws Exception {
|
||||||
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
DocumentBuilderFactory factory = newDocumentBuilderFactoryInstance();
|
||||||
|
|
||||||
factory.setNamespaceAware(namespaceAware);
|
factory.setNamespaceAware(namespaceAware);
|
||||||
DocumentBuilder builder = factory.newDocumentBuilder();
|
DocumentBuilder builder = factory.newDocumentBuilder();
|
||||||
Document d = builder.parse(source);
|
Document d = builder.parse(source);
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static DocumentBuilderFactory newDocumentBuilderFactoryInstance() {
|
||||||
|
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
||||||
|
|
||||||
|
// Disable external entities declarations
|
||||||
|
try {
|
||||||
|
factory.setFeature(XML_SAX_EXTERNAL_GENERAL_ENTITIES, false);
|
||||||
|
factory.setFeature(XML_SAX_EXTERNAL_PARAMETER_ENTITIES, false);
|
||||||
|
} catch (ParserConfigurationException e) {
|
||||||
|
// log.warn(e.getMessage(), e);
|
||||||
|
log.warn(e.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
|
return factory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static TransformerFactory newTransformerFactoryInstance() {
|
||||||
|
System.setProperty("javax.xml.transform.TransformerFactory", "net.sf.saxon.TransformerFactoryImpl");
|
||||||
|
TransformerFactory transformerFactory = TransformerFactory.newInstance();
|
||||||
|
// Disable external entities declarations
|
||||||
|
try {
|
||||||
|
transformerFactory.setFeature(XML_SAX_EXTERNAL_GENERAL_ENTITIES, false);
|
||||||
|
transformerFactory.setFeature(XML_SAX_EXTERNAL_PARAMETER_ENTITIES, false);
|
||||||
|
} catch (TransformerConfigurationException e) {
|
||||||
|
// log.warn(e.getMessage(), e);
|
||||||
|
log.warn(e.getMessage());
|
||||||
|
}
|
||||||
|
return transformerFactory;
|
||||||
|
}
|
||||||
|
|
||||||
public static String doc2string(Document doc) throws Exception {
|
public static String doc2string(Document doc) throws Exception {
|
||||||
// set up a transformer
|
// set up a transformer
|
||||||
TransformerFactory transfac = TransformerFactory.newInstance();
|
TransformerFactory transfac = newTransformerFactoryInstance();
|
||||||
|
|
||||||
Transformer trans = transfac.newTransformer();
|
Transformer trans = transfac.newTransformer();
|
||||||
trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
|
trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
|
||||||
trans.setOutputProperty(OutputKeys.INDENT, "yes");
|
trans.setOutputProperty(OutputKeys.INDENT, "yes");
|
||||||
@ -119,7 +175,9 @@ public class CommonXMLUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String node2string(Node node) throws Exception {
|
public static String node2string(Node node) throws Exception {
|
||||||
Transformer t = TransformerFactory.newInstance().newTransformer();
|
TransformerFactory transfac = newTransformerFactoryInstance();
|
||||||
|
|
||||||
|
Transformer t = transfac.newTransformer();
|
||||||
t.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
|
t.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
|
||||||
StringWriter sw = new StringWriter();
|
StringWriter sw = new StringWriter();
|
||||||
t.transform(new DOMSource(node), new StreamResult(sw));
|
t.transform(new DOMSource(node), new StreamResult(sw));
|
||||||
@ -135,7 +193,10 @@ public class CommonXMLUtils {
|
|||||||
public static void saveDocument(Document doc, File file) throws Exception {
|
public static void saveDocument(Document doc, File file) throws Exception {
|
||||||
DOMSource source = new DOMSource(doc);
|
DOMSource source = new DOMSource(doc);
|
||||||
Result result = new StreamResult(file);
|
Result result = new StreamResult(file);
|
||||||
Transformer xformer = TransformerFactory.newInstance().newTransformer();
|
|
||||||
|
TransformerFactory transfac = newTransformerFactoryInstance();
|
||||||
|
|
||||||
|
Transformer xformer = transfac.newTransformer();
|
||||||
xformer.transform(source, result);
|
xformer.transform(source, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,11 +205,13 @@ public class CommonXMLUtils {
|
|||||||
Marshaller m = context.createMarshaller();
|
Marshaller m = context.createMarshaller();
|
||||||
jaxbMarshall(m, object, node);
|
jaxbMarshall(m, object, node);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void jaxbMarshall(Marshaller m, JAXBElement<?> object, Node node) throws Exception {
|
public static void jaxbMarshall(Marshaller m, JAXBElement<?> object, Node node) throws Exception {
|
||||||
if (node == null || node.getNodeType() != Node.ELEMENT_NODE)
|
if (node == null || node.getNodeType() != Node.ELEMENT_NODE)
|
||||||
throw new IllegalArgumentException("Node is not Element");
|
throw new IllegalArgumentException("Node is not Element");
|
||||||
m.marshal(object, node);
|
m.marshal(object, node);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String jaxbMarshall(JAXBContext context, JAXBElement<?> object) throws Exception {
|
public static String jaxbMarshall(JAXBContext context, JAXBElement<?> object) throws Exception {
|
||||||
String result = null;
|
String result = null;
|
||||||
|
|
||||||
@ -159,6 +222,7 @@ public class CommonXMLUtils {
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// UNMARSHAL
|
// UNMARSHAL
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -169,11 +233,14 @@ public class CommonXMLUtils {
|
|||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public static JAXBElement<?> jaxbUnmarshall(JAXBContext context, Node node, HashMap<String, Class<? extends Object>> classMap) throws Exception{
|
public static JAXBElement<?> jaxbUnmarshall(JAXBContext context, Node node,
|
||||||
|
HashMap<String, Class<? extends Object>> classMap) throws Exception {
|
||||||
Unmarshaller um = context.createUnmarshaller();
|
Unmarshaller um = context.createUnmarshaller();
|
||||||
return jaxbUnmarshall(um, node, classMap);
|
return jaxbUnmarshall(um, node, classMap);
|
||||||
}
|
}
|
||||||
public static JAXBElement<?> jaxbUnmarshall(Unmarshaller um, Node node, HashMap<String, Class<? extends Object>> classMap) throws Exception{
|
|
||||||
|
public static JAXBElement<?> jaxbUnmarshall(Unmarshaller um, Node node,
|
||||||
|
HashMap<String, Class<? extends Object>> classMap) throws Exception {
|
||||||
if (node.getNodeType() != Node.ELEMENT_NODE)
|
if (node.getNodeType() != Node.ELEMENT_NODE)
|
||||||
throw new IllegalArgumentException("Node is not Element");
|
throw new IllegalArgumentException("Node is not Element");
|
||||||
String nodeName = node.getNodeName();
|
String nodeName = node.getNodeName();
|
||||||
@ -201,14 +268,17 @@ public class CommonXMLUtils {
|
|||||||
throw new Exception("Root element not found in document");
|
throw new Exception("Root element not found in document");
|
||||||
return jaxbUnmarshall(context.createUnmarshaller(), node, type);
|
return jaxbUnmarshall(context.createUnmarshaller(), node, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static JAXBElement<?> jaxbUnmarshall(Class<?> type, Node node) throws Exception {
|
public static JAXBElement<?> jaxbUnmarshall(Class<?> type, Node node) throws Exception {
|
||||||
JAXBContext context = JAXBContext.newInstance(
|
JAXBContext context = JAXBContext.newInstance(
|
||||||
type.getPackage().getName(), type.getClassLoader());
|
type.getPackage().getName(), type.getClassLoader());
|
||||||
return jaxbUnmarshall(context.createUnmarshaller(), node, type);
|
return jaxbUnmarshall(context.createUnmarshaller(), node, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static JAXBElement<?> jaxbUnmarshall(JAXBContext context, Node node, Class<?> type) throws Exception {
|
public static JAXBElement<?> jaxbUnmarshall(JAXBContext context, Node node, Class<?> type) throws Exception {
|
||||||
return jaxbUnmarshall(context.createUnmarshaller(), node, type);
|
return jaxbUnmarshall(context.createUnmarshaller(), node, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static JAXBElement<?> jaxbUnmarshall(Unmarshaller um, Node node, Class<?> type) throws Exception {
|
public static JAXBElement<?> jaxbUnmarshall(Unmarshaller um, Node node, Class<?> type) throws Exception {
|
||||||
Object obj = um.unmarshal(node, type);
|
Object obj = um.unmarshal(node, type);
|
||||||
return (JAXBElement<?>) obj;
|
return (JAXBElement<?>) obj;
|
||||||
|
@ -1,201 +1,175 @@
|
|||||||
Apache License
|
ЛИЦЕНЗИЯ ОГРАНИЧЕННОГО ПРИМЕНЕНИЯ
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
Настоящий документ устанавливает для Пользователя условия применения Базовой (некоммерческой)
|
||||||
|
версии лицензии для пробного использования программного обеспечения ENTAXY, принадлежащего
|
||||||
|
Правообладателю – Обществу с ограниченной ответственностью "ЕМДЕВ" (ОГРН 1057810026658, ИНН
|
||||||
|
7813313860, юридический адрес: 197022, Россия, г. Санкт-Петербург, ул. Профессора Попова,
|
||||||
|
д. 23, литера В, помещение 3Н), расположенной в сети Интернет по адресу
|
||||||
|
https://www.emdev.ru/about (далее - Компания).
|
||||||
|
|
||||||
1. Definitions.
|
Используя или получая доступ к Программному обеспечению, или нажав «Я согласен с Условиями»
|
||||||
|
(или аналогичную кнопку или флажок) после загрузки или установки Программного обеспечения,
|
||||||
|
Пользователь выражает свое согласие на обязательность условий и ограничений, изложенных в
|
||||||
|
настоящем документе, в противном случае, он должен не использовать или не получать доступ
|
||||||
|
к Программному обеспечению.
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
1. ТЕРМИНЫ И ОПРЕДЕЛЕНИЯ
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
a) ПО – Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) в любой ее версии
|
||||||
the copyright owner that is granting the License.
|
или редакции, исключительные права на которую принадлежат Правообладателю.
|
||||||
|
b) Правообладатель (Компания) – ООО «ЕМДЕВ», ОГРН 1057810026658, ИНН 7813313860, исключительные
|
||||||
|
права которого подтверждаются Свидетельством о государственной регистрации в Реестре программ
|
||||||
|
для ЭВМ № 2021610848 от 19.01.2021 года.
|
||||||
|
c) Пользователь – юридическое или физическое лицо, получившее через скачивание с сайта
|
||||||
|
https://entaxy.ru или иным образом, дистрибутив ПО, пользующееся ПО.
|
||||||
|
d) ИС – интеллектуальная собственность – закреплённое законом исключительное право, а также
|
||||||
|
личные неимущественные права авторов произведений на результат интеллектуальной деятельности.
|
||||||
|
e) Подписка – это коммерческое предложение Правообладателя, состоящее из Лицензии на использование
|
||||||
|
ПО и доступа к технической поддержке программного обеспечения на срок Подписки. Подписка
|
||||||
|
включает предоставление Пользователю неисключительного права использования ПО, в том числе
|
||||||
|
получение обновлений функционала ПО и безопасности ПО, исправление ошибок ПО и получение
|
||||||
|
патчей с обновлениями и исправлениями программного обеспечения. Подписка приобретается
|
||||||
|
Пользователем на период времени, указанный в Сертификате. Количество подписок устанавливается
|
||||||
|
для каждого Пользователя индивидуально в Сертификате.
|
||||||
|
f) Сертификат – документ, выдаваемый Дистрибъютором или Авторизованным партнёром (Партнёром),
|
||||||
|
подтверждающий факт приобретения физическим или юридическим лицом Подписки на программное
|
||||||
|
обеспечение в ограниченном объёме и на определённый период времени.
|
||||||
|
g) Лицензия (простая (неисключительная) – совокупность ограниченных прав использования ПО,
|
||||||
|
предоставленных Пользователю согласно условиям Подписки.
|
||||||
|
h) Библиотека – совокупность подпрограмм и объектов, используемых для разработки программного
|
||||||
|
обеспечения.
|
||||||
|
i) Исходный код – текст компьютерной программы на каком-либо языке программирования, состоящий
|
||||||
|
из одного или нескольких файлов, который может быть прочтён человеком.
|
||||||
|
j) Объектный код – файл (часть машинного кода) с промежуточным представлением отдельного модуля
|
||||||
|
программы, полученный в результате обработки исходного кода, еще не связанный в полную программу.
|
||||||
|
Это машинный код для одной конкретной библиотеки или модуля, который будет составлять готовый
|
||||||
|
продукт.
|
||||||
|
k) Некоммерческое использование – индивидуальное личное использование Пользователем программного
|
||||||
|
обеспечения с целью обучения работе с Программным обеспечением, для оценки или демонстрации
|
||||||
|
возможностей Программного обеспечения, при котором, Пользователем не извлекается коммерческая
|
||||||
|
выгода и/или не идёт в доход денежное вознаграждение при использовании Программного обеспечения.
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
2. ДОПУСТИМЫЕ СПОСОБЫ ИСПОЛЬЗОВАНИЯ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
2.1. Правообладатель предоставляет Пользователю ограниченное право использования Программного
|
||||||
exercising permissions granted by this License.
|
обеспечения на условиях простой (неисключительной) лицензии в объёме, ограниченном правом
|
||||||
|
воспроизведения полной рабочей версии программного обеспечения, новых версий программного обеспечения
|
||||||
|
в памяти оборудования и его запуска на оборудовании в соответствии со ст. 1280 ГК РФ.
|
||||||
|
2.2. Право на использование Программного обеспечения, предоставляемое Пользователю, носит
|
||||||
|
неисключительный характер.
|
||||||
|
2.3. Пользователю предоставляется всемирная, неисключительная, не подлежащая сублицензированию,
|
||||||
|
лицензия на ограниченное использование Программного обеспечения.
|
||||||
|
2.4. Пользователь, имеющий Базовую (некоммерческую) версию лицензии для пробного использования
|
||||||
|
имеет право приобрести Подписку на программное обеспечение. В этом случае Пользователь обязан
|
||||||
|
обратиться в службу поддержки Правообладателя по адресу: https://entaxy.ru/ для изменения
|
||||||
|
вида лицензии с Базовой бесплатной версии на Подписки.
|
||||||
|
2.5. Срок использования скачанной Пользователем базовой (некоммерческой) версии лицензии для
|
||||||
|
пробного использования программного обеспечения – не ограничен.
|
||||||
|
2.6. Использование Пользователем настоящего программного обеспечения в целях разработки,
|
||||||
|
модификации, обновления другого ПО, принадлежащего третьим лицам, а не Правообладателю,
|
||||||
|
без разрешения Правообладателя не допускается.
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
3. АВТОРСКОЕ ПРАВО.
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
3.1. Все авторские права, все права интеллектуальной собственности на Программное обеспечение
|
||||||
transformation or translation of a Source form, including but
|
и любые его копии принадлежат Правообладателю.
|
||||||
not limited to compiled object code, generated documentation,
|
3.2. Все авторские права, все права интеллектуальной собственности в отношении любого контента,
|
||||||
and conversions to other media types.
|
к которому можно получить доступ с помощью Программного обеспечения, является собственностью
|
||||||
|
соответствующего владельца контента и защищается применимым законодательством об авторском
|
||||||
|
праве или другими законами и договорами об интеллектуальной собственности.
|
||||||
|
3.3. Условия использования Программного обеспечения.
|
||||||
|
Лицензия, предоставленная Пользователю, действительна только в том случае, если Пользователь
|
||||||
|
придерживается следующих условий:
|
||||||
|
3.3.1. Принятие уведомлений об авторских правах. Пользователю запрещается удалять или изменять
|
||||||
|
какие-либо уведомления об авторских правах или лицензиях, которые появляются при использовании
|
||||||
|
Программного обеспечения или на нем.
|
||||||
|
3.3.2. Модификация. Пользователю запрещается модифицировать, изменять, декомпилировать,
|
||||||
|
расшифровывать, дизассемблировать, переводить или реверсировать, перепроектировать
|
||||||
|
Программное обеспечение.
|
||||||
|
3.3.3. Распространение. Пользователю запрещается сублицензировать, передавать право использования
|
||||||
|
ПО или иным образом распространять или предоставлять Программное обеспечение любой третьей стороне.
|
||||||
|
3.3.4. SaaS. За исключением случаев, когда это разрешено Правообладателем, Пользователю запрещено
|
||||||
|
использовать Программное обеспечение в коммерческих целях для оказания услуг третьим лицам.
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
4. ОТВЕТСТВЕННОСТЬ ПРАВООБЛАДАТЕЛЯ ПРИ НАРУШЕНИИ ПОЛЬЗОВАТЕЛЕМ ПРАВ «ИС»
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
4.1. Правообладатель не несет никаких обязательств в отношении каких-либо претензий к Пользователю
|
||||||
form, that is based on (or derived from) the Work and for which the
|
на предмет нарушения последним прав Интеллектуальной собственности, возникших в связи с
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
использованием Пользователем:
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
4.1.1. Любых компонентов программного обеспечения с открытым исходным кодом, включенных в
|
||||||
of this License, Derivative Works shall not include works that remain
|
Программное обеспечение;
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
4.1.2. Любого нарушения правил использования Программного обеспечения, установленного условиями
|
||||||
the Work and Derivative Works thereof.
|
настоящего соглашения;
|
||||||
|
4.1.3. Любого использования Программного обеспечения в сочетании с другими ПО, оборудованием,
|
||||||
|
или данными, не предоставленными Пользователю Правообладателем;
|
||||||
|
4.1.4. Любого изменения Программного обеспечения любым третьим лицом, а не Правообладателем.
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
5. НАСТОЯЩИМ ПРАВООБЛАДАТЕЛЬ ЗАЯВЛЯЕТ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ ПОЛЬЗОВАТЕЛЮ
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
ПО ПРИНЦИПУ «AS IS» - «КАК ЕСТЬ». НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ НЕ ГАРАНТИРУЕТ
|
||||||
subsequently incorporated within the Work.
|
И НЕ ОБЕЩАЕТ, ЧТО ПРЕДОСТАВЛЕННОЕ ИМ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ПОДХОДИТЬ ИЛИ НЕ ПОДХОДИТЬ
|
||||||
|
ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ОТВЕЧАТЬ ВСЕМ КОММЕРЧЕСКИМ
|
||||||
|
И ЛИЧНЫМ СУБЪЕКТИВНЫМ ОЖИДАНИЯМ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ РАБОТАТЬ
|
||||||
|
ИСПРАВНО, БЕЗ ТЕХНИЧЕСКИХ ОШИБОК, БЫСТРО И БЕСПЕРЕБОЙНО.
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
6. ОГРАНИЧЕНИЕ ОТВЕТСТВЕННОСТИ.
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ ИЛИ ЕГО АФФИЛЛИРОВАННЫЕ ЛИЦА НЕ НЕСУТ ПЕРЕД ПОЛЬЗОВАТЕЛЕМ
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
ОТВЕТСТВЕННОСТИ ЗА ЛЮБЫЕ ПРЯМЫЕ ИЛИ КОСВЕННЫЕ УБЫТКИ ПОЛЬЗОВАТЕЛЯ, ЕГО РАСХОДЫ ИЛИ РЕАЛЬНЫЙ УЩЕРБ,
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
ВКЛЮЧАЯ, ПОМИМО ПРОЧЕГО, ПРОСТОИ; УТРАТУ БИЗНЕСА; УПУЩЕННУЮ ВЫГОДУ; НЕДОПОЛУЧЕННУЮ ПРИБЫЛЬ;
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
ПОТЕРЮ ИЛИ ПОВРЕЖДЕНИЕ ДАННЫХ, ИМУЩЕСТВА И ИНОЕ.
|
||||||
Work and such Derivative Works in Source or Object form.
|
ОГРАНИЧЕНИЯ ПРИМЕНЯЮТСЯ НЕЗАВИСИМО ОТ ОСНОВАНИЯ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ; В ТОМ ЧИСЛЕ ВСЛЕДСТВИЕ
|
||||||
|
ДЕЙСТВИЯ ИЛИ БЕЗДЕЙСТВИЯ, НЕБРЕЖНОСТИ, УМЫСЛА, ПРЯМОГО ИЛИ КОСВЕННОГО; НЕОСТОРОЖНОСТИ; ЗАБЛУЖДЕНИЯ;
|
||||||
|
КЛЕВЕТЫ; НАРУШЕНИЯ КОНФИДЕНЦИАЛЬНОСТИ ИЛИ ПРАВА ИНТЕЛЛЕКТУАЛЬНОЙ СОБСТВЕННОСТИ; ИЛИ ЛЮБОЕ ДРУГОЕ
|
||||||
|
ОСНОВАНИЕ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ.
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
7. ОБЯЗАННОСТЬ ПОЛЬЗОВАТЕЛЯ:
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
Не осуществлять самостоятельно и (или) с привлечением третьих лиц нижеследующие действия
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
(включая, но не ограничиваясь) по:
|
||||||
(except as stated in this section) patent license to make, have made,
|
-дизассемблированию и (или) декомпилированию (преобразованию объектного кода в исходный код)
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
Программного обеспечения;
|
||||||
where such license applies only to those patent claims licensable
|
-модификации Программного обеспечения, в том числе вносить изменения в объектный код, исходный
|
||||||
by such Contributor that are necessarily infringed by their
|
код Программного обеспечения, за исключением тех изменений, которые вносятся средствами,
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
включёнными в Программное обеспечение и описанными непосредственно в документации к нему;
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
-созданию условий для использования Программного обеспечения лицами, не имеющими прав на
|
||||||
institute patent litigation against any entity (including a
|
использование данного Программного обеспечения, включая (но не ограничиваясь) вмешательство
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
третьих лиц в функционирование Программного обеспечения, предоставление третьим лицам доступа
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
к исследованию и (или) замене настроек Программного обеспечения, включая его первичную установку;
|
||||||
or contributory patent infringement, then any patent licenses
|
-распространению Программного обеспечения в целом или в части (включая приложенную к нему документацию).
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
8. БИБЛИОТЕКА ПО. ИСПОЛЬЗУЕМЫЕ ПРОГРАММНЫЕ СРЕДСТВА.
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
8.1. Настоящим, Правообладатель заверяет, что Библиотека программного обеспечения состоит из
|
||||||
Derivative Works a copy of this License; and
|
лицензионных продуктов, используемых на законных основаниях, а
|
||||||
|
именно https://entaxy.ru/libs/licenses/root-aggregated.deps.
|
||||||
|
8.2. Любые программные средства, применяемые Пользователем при работе с ПО, должны быть
|
||||||
|
совместимы с библиотекой ПО, указанной в п.8.1. настоящего соглашения.
|
||||||
|
8.3. Перечень внешних модулей ПО, указанный в п.8.1 настоящего соглашения, может изменяться
|
||||||
|
Правообладателем в одностороннем порядке, в зависимости от выпуска релизов программного обеспечения,
|
||||||
|
содержащих все изменения и дополнения программного обеспечения.
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
9. ВНЕСЕНИЕ ИЗМЕНЕНИЙ В ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ.
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
9.1. Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) является свободно распространяемым
|
||||||
that You distribute, all copyright, patent, trademark, and
|
программным обеспечением.
|
||||||
attribution notices from the Source form of the Work,
|
9.2. Пользователь имеет право вносить изменения в исходный код программного обеспечения исключительно
|
||||||
excluding those notices that do not pertain to any part of
|
с согласия Правообладателя в порядке предложения изменений/правок/дополнений через механизм
|
||||||
the Derivative Works; and
|
«Pull Requests» в открытом репозитории Правообладателя по адресу: https://git.entaxy.ru/entaxy/entaxy-public.
|
||||||
|
9.3. Любые изменения программного обеспечения, осуществляемые Пользователем без соблюдения условий
|
||||||
|
пункта 9.2. настоящего документа, являются нарушением авторских и смежных прав Правообладателя,
|
||||||
|
прав интеллектуальной собственности Правообладателя и влекут применение к Пользователю мер
|
||||||
|
ответственности в соответствии с условиями настоящей Лицензии, а также применимого законодательства
|
||||||
|
Российской Федерации.
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
10. ЗАКЛЮЧИТЕЛЬНЫЕ ПОЛОЖЕНИЯ.
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
10.1. В случае нарушения Пользователем любого из условий настоящей Лицензии, Правообладатель имеет
|
||||||
may provide additional or different license terms and conditions
|
право взыскать с Пользователя любые причинённые таким нарушением убытки, реальный ущерб,
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
недополученную прибыль, упущенную выгоду, а также в случае нарушения Пользователем условий
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
пункта 9.2 настоящего соглашения, в том числе, взыскать с Пользователя штраф в размере
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
2 000 000 (Два миллиона) рублей за каждый установленный случай несанкционированного изменения
|
||||||
the conditions stated in this License.
|
исходного или объектного кода Программного обеспечения «Энтакси» (Entaxy).
|
||||||
|
10.2. В рамках исполнения Пользователем обязательств по настоящей Лицензии, применимое
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
законодательство – Российской Федерации.
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
10.3. Если какое-либо положение настоящей Лицензии будет признано судом недействительным,
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
остальные положения будут продолжать своё действие, а Пользователь будет обязан продолжать
|
||||||
this License, without any additional terms or conditions.
|
исполнять свои обязанности в соответствии с этими положениями.
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>ru.entaxy.esb.platform.runtime</groupId>
|
<groupId>ru.entaxy.esb.platform.runtime</groupId>
|
||||||
<artifactId>base</artifactId>
|
<artifactId>base</artifactId>
|
||||||
<version>1.8.3</version>
|
<version>1.10.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
@ -40,7 +40,7 @@
|
|||||||
<version>1.12</version>
|
<version>1.12</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>attach-artifacts</id>
|
<id>attach-branding-properties</id>
|
||||||
<phase>package</phase>
|
<phase>package</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>attach-artifact</goal>
|
<goal>attach-artifact</goal>
|
||||||
@ -60,5 +60,4 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
@ -2,19 +2,25 @@
|
|||||||
# ~~~~~~licensing~~~~~~
|
# ~~~~~~licensing~~~~~~
|
||||||
# branding
|
# branding
|
||||||
# ==========
|
# ==========
|
||||||
# Copyright (C) 2020 - 2023 EmDev LLC
|
# Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
# ==========
|
# ==========
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
# you may not use this file except in compliance with the License.
|
# Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
# You may obtain a copy of the License at
|
# 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.
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# 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.
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
# See the License for the specific language governing permissions and
|
# or damage to data, property, etc.
|
||||||
# limitations under the License.
|
|
||||||
# ~~~~~~/licensing~~~~~~
|
# ~~~~~~/licensing~~~~~~
|
||||||
###
|
###
|
||||||
welcome = \
|
welcome = \
|
||||||
|
@ -1,201 +1,175 @@
|
|||||||
Apache License
|
ЛИЦЕНЗИЯ ОГРАНИЧЕННОГО ПРИМЕНЕНИЯ
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
Настоящий документ устанавливает для Пользователя условия применения Базовой (некоммерческой)
|
||||||
|
версии лицензии для пробного использования программного обеспечения ENTAXY, принадлежащего
|
||||||
|
Правообладателю – Обществу с ограниченной ответственностью "ЕМДЕВ" (ОГРН 1057810026658, ИНН
|
||||||
|
7813313860, юридический адрес: 197022, Россия, г. Санкт-Петербург, ул. Профессора Попова,
|
||||||
|
д. 23, литера В, помещение 3Н), расположенной в сети Интернет по адресу
|
||||||
|
https://www.emdev.ru/about (далее - Компания).
|
||||||
|
|
||||||
1. Definitions.
|
Используя или получая доступ к Программному обеспечению, или нажав «Я согласен с Условиями»
|
||||||
|
(или аналогичную кнопку или флажок) после загрузки или установки Программного обеспечения,
|
||||||
|
Пользователь выражает свое согласие на обязательность условий и ограничений, изложенных в
|
||||||
|
настоящем документе, в противном случае, он должен не использовать или не получать доступ
|
||||||
|
к Программному обеспечению.
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
1. ТЕРМИНЫ И ОПРЕДЕЛЕНИЯ
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
a) ПО – Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) в любой ее версии
|
||||||
the copyright owner that is granting the License.
|
или редакции, исключительные права на которую принадлежат Правообладателю.
|
||||||
|
b) Правообладатель (Компания) – ООО «ЕМДЕВ», ОГРН 1057810026658, ИНН 7813313860, исключительные
|
||||||
|
права которого подтверждаются Свидетельством о государственной регистрации в Реестре программ
|
||||||
|
для ЭВМ № 2021610848 от 19.01.2021 года.
|
||||||
|
c) Пользователь – юридическое или физическое лицо, получившее через скачивание с сайта
|
||||||
|
https://entaxy.ru или иным образом, дистрибутив ПО, пользующееся ПО.
|
||||||
|
d) ИС – интеллектуальная собственность – закреплённое законом исключительное право, а также
|
||||||
|
личные неимущественные права авторов произведений на результат интеллектуальной деятельности.
|
||||||
|
e) Подписка – это коммерческое предложение Правообладателя, состоящее из Лицензии на использование
|
||||||
|
ПО и доступа к технической поддержке программного обеспечения на срок Подписки. Подписка
|
||||||
|
включает предоставление Пользователю неисключительного права использования ПО, в том числе
|
||||||
|
получение обновлений функционала ПО и безопасности ПО, исправление ошибок ПО и получение
|
||||||
|
патчей с обновлениями и исправлениями программного обеспечения. Подписка приобретается
|
||||||
|
Пользователем на период времени, указанный в Сертификате. Количество подписок устанавливается
|
||||||
|
для каждого Пользователя индивидуально в Сертификате.
|
||||||
|
f) Сертификат – документ, выдаваемый Дистрибъютором или Авторизованным партнёром (Партнёром),
|
||||||
|
подтверждающий факт приобретения физическим или юридическим лицом Подписки на программное
|
||||||
|
обеспечение в ограниченном объёме и на определённый период времени.
|
||||||
|
g) Лицензия (простая (неисключительная) – совокупность ограниченных прав использования ПО,
|
||||||
|
предоставленных Пользователю согласно условиям Подписки.
|
||||||
|
h) Библиотека – совокупность подпрограмм и объектов, используемых для разработки программного
|
||||||
|
обеспечения.
|
||||||
|
i) Исходный код – текст компьютерной программы на каком-либо языке программирования, состоящий
|
||||||
|
из одного или нескольких файлов, который может быть прочтён человеком.
|
||||||
|
j) Объектный код – файл (часть машинного кода) с промежуточным представлением отдельного модуля
|
||||||
|
программы, полученный в результате обработки исходного кода, еще не связанный в полную программу.
|
||||||
|
Это машинный код для одной конкретной библиотеки или модуля, который будет составлять готовый
|
||||||
|
продукт.
|
||||||
|
k) Некоммерческое использование – индивидуальное личное использование Пользователем программного
|
||||||
|
обеспечения с целью обучения работе с Программным обеспечением, для оценки или демонстрации
|
||||||
|
возможностей Программного обеспечения, при котором, Пользователем не извлекается коммерческая
|
||||||
|
выгода и/или не идёт в доход денежное вознаграждение при использовании Программного обеспечения.
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
2. ДОПУСТИМЫЕ СПОСОБЫ ИСПОЛЬЗОВАНИЯ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
2.1. Правообладатель предоставляет Пользователю ограниченное право использования Программного
|
||||||
exercising permissions granted by this License.
|
обеспечения на условиях простой (неисключительной) лицензии в объёме, ограниченном правом
|
||||||
|
воспроизведения полной рабочей версии программного обеспечения, новых версий программного обеспечения
|
||||||
|
в памяти оборудования и его запуска на оборудовании в соответствии со ст. 1280 ГК РФ.
|
||||||
|
2.2. Право на использование Программного обеспечения, предоставляемое Пользователю, носит
|
||||||
|
неисключительный характер.
|
||||||
|
2.3. Пользователю предоставляется всемирная, неисключительная, не подлежащая сублицензированию,
|
||||||
|
лицензия на ограниченное использование Программного обеспечения.
|
||||||
|
2.4. Пользователь, имеющий Базовую (некоммерческую) версию лицензии для пробного использования
|
||||||
|
имеет право приобрести Подписку на программное обеспечение. В этом случае Пользователь обязан
|
||||||
|
обратиться в службу поддержки Правообладателя по адресу: https://entaxy.ru/ для изменения
|
||||||
|
вида лицензии с Базовой бесплатной версии на Подписки.
|
||||||
|
2.5. Срок использования скачанной Пользователем базовой (некоммерческой) версии лицензии для
|
||||||
|
пробного использования программного обеспечения – не ограничен.
|
||||||
|
2.6. Использование Пользователем настоящего программного обеспечения в целях разработки,
|
||||||
|
модификации, обновления другого ПО, принадлежащего третьим лицам, а не Правообладателю,
|
||||||
|
без разрешения Правообладателя не допускается.
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
3. АВТОРСКОЕ ПРАВО.
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
3.1. Все авторские права, все права интеллектуальной собственности на Программное обеспечение
|
||||||
transformation or translation of a Source form, including but
|
и любые его копии принадлежат Правообладателю.
|
||||||
not limited to compiled object code, generated documentation,
|
3.2. Все авторские права, все права интеллектуальной собственности в отношении любого контента,
|
||||||
and conversions to other media types.
|
к которому можно получить доступ с помощью Программного обеспечения, является собственностью
|
||||||
|
соответствующего владельца контента и защищается применимым законодательством об авторском
|
||||||
|
праве или другими законами и договорами об интеллектуальной собственности.
|
||||||
|
3.3. Условия использования Программного обеспечения.
|
||||||
|
Лицензия, предоставленная Пользователю, действительна только в том случае, если Пользователь
|
||||||
|
придерживается следующих условий:
|
||||||
|
3.3.1. Принятие уведомлений об авторских правах. Пользователю запрещается удалять или изменять
|
||||||
|
какие-либо уведомления об авторских правах или лицензиях, которые появляются при использовании
|
||||||
|
Программного обеспечения или на нем.
|
||||||
|
3.3.2. Модификация. Пользователю запрещается модифицировать, изменять, декомпилировать,
|
||||||
|
расшифровывать, дизассемблировать, переводить или реверсировать, перепроектировать
|
||||||
|
Программное обеспечение.
|
||||||
|
3.3.3. Распространение. Пользователю запрещается сублицензировать, передавать право использования
|
||||||
|
ПО или иным образом распространять или предоставлять Программное обеспечение любой третьей стороне.
|
||||||
|
3.3.4. SaaS. За исключением случаев, когда это разрешено Правообладателем, Пользователю запрещено
|
||||||
|
использовать Программное обеспечение в коммерческих целях для оказания услуг третьим лицам.
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
4. ОТВЕТСТВЕННОСТЬ ПРАВООБЛАДАТЕЛЯ ПРИ НАРУШЕНИИ ПОЛЬЗОВАТЕЛЕМ ПРАВ «ИС»
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
4.1. Правообладатель не несет никаких обязательств в отношении каких-либо претензий к Пользователю
|
||||||
form, that is based on (or derived from) the Work and for which the
|
на предмет нарушения последним прав Интеллектуальной собственности, возникших в связи с
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
использованием Пользователем:
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
4.1.1. Любых компонентов программного обеспечения с открытым исходным кодом, включенных в
|
||||||
of this License, Derivative Works shall not include works that remain
|
Программное обеспечение;
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
4.1.2. Любого нарушения правил использования Программного обеспечения, установленного условиями
|
||||||
the Work and Derivative Works thereof.
|
настоящего соглашения;
|
||||||
|
4.1.3. Любого использования Программного обеспечения в сочетании с другими ПО, оборудованием,
|
||||||
|
или данными, не предоставленными Пользователю Правообладателем;
|
||||||
|
4.1.4. Любого изменения Программного обеспечения любым третьим лицом, а не Правообладателем.
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
5. НАСТОЯЩИМ ПРАВООБЛАДАТЕЛЬ ЗАЯВЛЯЕТ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ ПОЛЬЗОВАТЕЛЮ
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
ПО ПРИНЦИПУ «AS IS» - «КАК ЕСТЬ». НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ НЕ ГАРАНТИРУЕТ
|
||||||
subsequently incorporated within the Work.
|
И НЕ ОБЕЩАЕТ, ЧТО ПРЕДОСТАВЛЕННОЕ ИМ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ПОДХОДИТЬ ИЛИ НЕ ПОДХОДИТЬ
|
||||||
|
ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ОТВЕЧАТЬ ВСЕМ КОММЕРЧЕСКИМ
|
||||||
|
И ЛИЧНЫМ СУБЪЕКТИВНЫМ ОЖИДАНИЯМ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ РАБОТАТЬ
|
||||||
|
ИСПРАВНО, БЕЗ ТЕХНИЧЕСКИХ ОШИБОК, БЫСТРО И БЕСПЕРЕБОЙНО.
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
6. ОГРАНИЧЕНИЕ ОТВЕТСТВЕННОСТИ.
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ ИЛИ ЕГО АФФИЛЛИРОВАННЫЕ ЛИЦА НЕ НЕСУТ ПЕРЕД ПОЛЬЗОВАТЕЛЕМ
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
ОТВЕТСТВЕННОСТИ ЗА ЛЮБЫЕ ПРЯМЫЕ ИЛИ КОСВЕННЫЕ УБЫТКИ ПОЛЬЗОВАТЕЛЯ, ЕГО РАСХОДЫ ИЛИ РЕАЛЬНЫЙ УЩЕРБ,
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
ВКЛЮЧАЯ, ПОМИМО ПРОЧЕГО, ПРОСТОИ; УТРАТУ БИЗНЕСА; УПУЩЕННУЮ ВЫГОДУ; НЕДОПОЛУЧЕННУЮ ПРИБЫЛЬ;
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
ПОТЕРЮ ИЛИ ПОВРЕЖДЕНИЕ ДАННЫХ, ИМУЩЕСТВА И ИНОЕ.
|
||||||
Work and such Derivative Works in Source or Object form.
|
ОГРАНИЧЕНИЯ ПРИМЕНЯЮТСЯ НЕЗАВИСИМО ОТ ОСНОВАНИЯ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ; В ТОМ ЧИСЛЕ ВСЛЕДСТВИЕ
|
||||||
|
ДЕЙСТВИЯ ИЛИ БЕЗДЕЙСТВИЯ, НЕБРЕЖНОСТИ, УМЫСЛА, ПРЯМОГО ИЛИ КОСВЕННОГО; НЕОСТОРОЖНОСТИ; ЗАБЛУЖДЕНИЯ;
|
||||||
|
КЛЕВЕТЫ; НАРУШЕНИЯ КОНФИДЕНЦИАЛЬНОСТИ ИЛИ ПРАВА ИНТЕЛЛЕКТУАЛЬНОЙ СОБСТВЕННОСТИ; ИЛИ ЛЮБОЕ ДРУГОЕ
|
||||||
|
ОСНОВАНИЕ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ.
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
7. ОБЯЗАННОСТЬ ПОЛЬЗОВАТЕЛЯ:
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
Не осуществлять самостоятельно и (или) с привлечением третьих лиц нижеследующие действия
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
(включая, но не ограничиваясь) по:
|
||||||
(except as stated in this section) patent license to make, have made,
|
-дизассемблированию и (или) декомпилированию (преобразованию объектного кода в исходный код)
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
Программного обеспечения;
|
||||||
where such license applies only to those patent claims licensable
|
-модификации Программного обеспечения, в том числе вносить изменения в объектный код, исходный
|
||||||
by such Contributor that are necessarily infringed by their
|
код Программного обеспечения, за исключением тех изменений, которые вносятся средствами,
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
включёнными в Программное обеспечение и описанными непосредственно в документации к нему;
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
-созданию условий для использования Программного обеспечения лицами, не имеющими прав на
|
||||||
institute patent litigation against any entity (including a
|
использование данного Программного обеспечения, включая (но не ограничиваясь) вмешательство
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
третьих лиц в функционирование Программного обеспечения, предоставление третьим лицам доступа
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
к исследованию и (или) замене настроек Программного обеспечения, включая его первичную установку;
|
||||||
or contributory patent infringement, then any patent licenses
|
-распространению Программного обеспечения в целом или в части (включая приложенную к нему документацию).
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
8. БИБЛИОТЕКА ПО. ИСПОЛЬЗУЕМЫЕ ПРОГРАММНЫЕ СРЕДСТВА.
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
8.1. Настоящим, Правообладатель заверяет, что Библиотека программного обеспечения состоит из
|
||||||
Derivative Works a copy of this License; and
|
лицензионных продуктов, используемых на законных основаниях, а
|
||||||
|
именно https://entaxy.ru/libs/licenses/root-aggregated.deps.
|
||||||
|
8.2. Любые программные средства, применяемые Пользователем при работе с ПО, должны быть
|
||||||
|
совместимы с библиотекой ПО, указанной в п.8.1. настоящего соглашения.
|
||||||
|
8.3. Перечень внешних модулей ПО, указанный в п.8.1 настоящего соглашения, может изменяться
|
||||||
|
Правообладателем в одностороннем порядке, в зависимости от выпуска релизов программного обеспечения,
|
||||||
|
содержащих все изменения и дополнения программного обеспечения.
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
9. ВНЕСЕНИЕ ИЗМЕНЕНИЙ В ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ.
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
9.1. Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) является свободно распространяемым
|
||||||
that You distribute, all copyright, patent, trademark, and
|
программным обеспечением.
|
||||||
attribution notices from the Source form of the Work,
|
9.2. Пользователь имеет право вносить изменения в исходный код программного обеспечения исключительно
|
||||||
excluding those notices that do not pertain to any part of
|
с согласия Правообладателя в порядке предложения изменений/правок/дополнений через механизм
|
||||||
the Derivative Works; and
|
«Pull Requests» в открытом репозитории Правообладателя по адресу: https://git.entaxy.ru/entaxy/entaxy-public.
|
||||||
|
9.3. Любые изменения программного обеспечения, осуществляемые Пользователем без соблюдения условий
|
||||||
|
пункта 9.2. настоящего документа, являются нарушением авторских и смежных прав Правообладателя,
|
||||||
|
прав интеллектуальной собственности Правообладателя и влекут применение к Пользователю мер
|
||||||
|
ответственности в соответствии с условиями настоящей Лицензии, а также применимого законодательства
|
||||||
|
Российской Федерации.
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
10. ЗАКЛЮЧИТЕЛЬНЫЕ ПОЛОЖЕНИЯ.
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
10.1. В случае нарушения Пользователем любого из условий настоящей Лицензии, Правообладатель имеет
|
||||||
may provide additional or different license terms and conditions
|
право взыскать с Пользователя любые причинённые таким нарушением убытки, реальный ущерб,
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
недополученную прибыль, упущенную выгоду, а также в случае нарушения Пользователем условий
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
пункта 9.2 настоящего соглашения, в том числе, взыскать с Пользователя штраф в размере
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
2 000 000 (Два миллиона) рублей за каждый установленный случай несанкционированного изменения
|
||||||
the conditions stated in this License.
|
исходного или объектного кода Программного обеспечения «Энтакси» (Entaxy).
|
||||||
|
10.2. В рамках исполнения Пользователем обязательств по настоящей Лицензии, применимое
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
законодательство – Российской Федерации.
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
10.3. Если какое-либо положение настоящей Лицензии будет признано судом недействительным,
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
остальные положения будут продолжать своё действие, а Пользователь будет обязан продолжать
|
||||||
this License, without any additional terms or conditions.
|
исполнять свои обязанности в соответствии с этими положениями.
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>ru.entaxy.esb.platform.runtime</groupId>
|
<groupId>ru.entaxy.esb.platform.runtime</groupId>
|
||||||
<artifactId>base</artifactId>
|
<artifactId>base</artifactId>
|
||||||
<version>1.8.3</version>
|
<version>1.10.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base</groupId>
|
<groupId>ru.entaxy.esb.platform.runtime.base</groupId>
|
||||||
<artifactId>config-extensions</artifactId>
|
<artifactId>config-extensions</artifactId>
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* config-plugin
|
* config-plugin
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.config;
|
package ru.entaxy.platform.base.config;
|
||||||
@ -37,9 +43,9 @@ import org.slf4j.LoggerFactory;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Configuration plugin providing resolving references from one config to others
|
* Configuration plugin providing resolving references from one config to others in a form
|
||||||
* in a form $PID_OF_OTHER_CONFIG{PROPERTY_NAME}
|
* $PID_OF_OTHER_CONFIG{PROPERTY_NAME} e.g.
|
||||||
* e.g. $org.ops4j.pax.url.mvn{org.ops4j.pax.url.mvn.localRepository}
|
* $org.ops4j.pax.url.mvn{org.ops4j.pax.url.mvn.localRepository}
|
||||||
*
|
*
|
||||||
* If pid or property not found no changes are made
|
* If pid or property not found no changes are made
|
||||||
*
|
*
|
||||||
@ -47,9 +53,8 @@ import org.slf4j.LoggerFactory;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component(service = {ConfigurationPlugin.class}, immediate = true,
|
@Component(service = {ConfigurationPlugin.class}, immediate = true,
|
||||||
property = {ConfigurationPlugin.CM_TARGET + "=*"
|
property = {
|
||||||
, ConfigurationPlugin.CM_RANKING + "=100"
|
ConfigurationPlugin.CM_RANKING + "=100", "config.plugin.id=ConfigLookupConfigurationPlugin"})
|
||||||
, "config.plugin.id=ConfigLookupConfigurationPlugin"})
|
|
||||||
public class ConfigLookupConfigurationPlugin implements ConfigurationPlugin {
|
public class ConfigLookupConfigurationPlugin implements ConfigurationPlugin {
|
||||||
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(ConfigLookupConfigurationPlugin.class);
|
private static final Logger log = LoggerFactory.getLogger(ConfigLookupConfigurationPlugin.class);
|
||||||
@ -72,8 +77,7 @@ public class ConfigLookupConfigurationPlugin implements ConfigurationPlugin {
|
|||||||
log.debug("FOUND :: " + text.substring(matcher.start(), matcher.end()));
|
log.debug("FOUND :: " + text.substring(matcher.start(), matcher.end()));
|
||||||
String placeholder = text.substring(matcher.start(), matcher.end());
|
String placeholder = text.substring(matcher.start(), matcher.end());
|
||||||
String pid = placeholder.substring(1, placeholder.indexOf("{"));
|
String pid = placeholder.substring(1, placeholder.indexOf("{"));
|
||||||
String propName = placeholder.substring(placeholder.indexOf("{")+1
|
String propName = placeholder.substring(placeholder.indexOf("{") + 1, placeholder.indexOf("}"));
|
||||||
, placeholder.indexOf("}"));
|
|
||||||
log.debug("PARSED :: " + pid + ":" + propName);
|
log.debug("PARSED :: " + pid + ":" + propName);
|
||||||
Configuration conf;
|
Configuration conf;
|
||||||
try {
|
try {
|
||||||
@ -81,13 +85,14 @@ public class ConfigLookupConfigurationPlugin implements ConfigurationPlugin {
|
|||||||
if (conf != null) {
|
if (conf != null) {
|
||||||
|
|
||||||
Dictionary<String, Object> props = conf.getProperties();
|
Dictionary<String, Object> props = conf.getProperties();
|
||||||
|
if (props != null) {
|
||||||
Object value = props.get(propName);
|
Object value = props.get(propName);
|
||||||
log.debug("VALUE :: " + placeholder + " = " + value);
|
log.debug("VALUE :: " + placeholder + " = " + value);
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
newValue = newValue.replace(placeholder, (String) value);
|
newValue = newValue.replace(placeholder, (String) value);
|
||||||
log.debug("NEW VALUE :: " + placeholder + " = " + newValue);
|
log.debug("NEW VALUE :: " + placeholder + " = " + newValue);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* configuration-test-1
|
* configuration-test-1
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.config;
|
package ru.entaxy.platform.base.config;
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* configuration-test-1
|
* configuration-test-1
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.config;
|
package ru.entaxy.platform.base.config;
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* configuration-test-1
|
* configuration-test-1
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.config;
|
package ru.entaxy.platform.base.config;
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* configuration-test-1
|
* configuration-test-1
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.config;
|
package ru.entaxy.platform.base.config;
|
||||||
|
@ -2,29 +2,31 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* configuration-test-1
|
* configuration-test-1
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.config;
|
package ru.entaxy.platform.base.config;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Dictionary;
|
import java.util.*;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Hashtable;
|
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
|
||||||
import org.osgi.framework.BundleContext;
|
import org.osgi.framework.BundleContext;
|
||||||
@ -40,8 +42,8 @@ import org.slf4j.Logger;
|
|||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@Component(service = {ConfigurationPlugin.class, ImmutablesCollector.class}, immediate = true,
|
@Component(service = {ConfigurationPlugin.class, ImmutablesCollector.class}, immediate = true,
|
||||||
property = {ConfigurationPlugin.CM_TARGET + "=*"
|
property = {
|
||||||
, ConfigurationPlugin.CM_RANKING + "=100"
|
ConfigurationPlugin.CM_RANKING + "=100"
|
||||||
, "config.plugin.id=ImmutablesConfigurationPlugin"})
|
, "config.plugin.id=ImmutablesConfigurationPlugin"})
|
||||||
public class ImmutablesConfigurationPlugin implements ConfigurationPlugin, ImmutablesCollector {
|
public class ImmutablesConfigurationPlugin implements ConfigurationPlugin, ImmutablesCollector {
|
||||||
|
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
* ~~~~~~licensing~~~~~~
|
* ~~~~~~licensing~~~~~~
|
||||||
* configuration-test-1
|
* configuration-test-1
|
||||||
* ==========
|
* ==========
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||||
* ==========
|
* ==========
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||||
* you may not use this file except in compliance with the License.
|
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||||
* You may obtain a copy of the License at
|
* 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.
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* 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.
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||||
* See the License for the specific language governing permissions and
|
* or damage to data, property, etc.
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
* ~~~~~~/licensing~~~~~~
|
||||||
*/
|
*/
|
||||||
package ru.entaxy.platform.base.config;
|
package ru.entaxy.platform.base.config;
|
||||||
|
@ -1,201 +1,175 @@
|
|||||||
Apache License
|
ЛИЦЕНЗИЯ ОГРАНИЧЕННОГО ПРИМЕНЕНИЯ
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
Настоящий документ устанавливает для Пользователя условия применения Базовой (некоммерческой)
|
||||||
|
версии лицензии для пробного использования программного обеспечения ENTAXY, принадлежащего
|
||||||
|
Правообладателю – Обществу с ограниченной ответственностью "ЕМДЕВ" (ОГРН 1057810026658, ИНН
|
||||||
|
7813313860, юридический адрес: 197022, Россия, г. Санкт-Петербург, ул. Профессора Попова,
|
||||||
|
д. 23, литера В, помещение 3Н), расположенной в сети Интернет по адресу
|
||||||
|
https://www.emdev.ru/about (далее - Компания).
|
||||||
|
|
||||||
1. Definitions.
|
Используя или получая доступ к Программному обеспечению, или нажав «Я согласен с Условиями»
|
||||||
|
(или аналогичную кнопку или флажок) после загрузки или установки Программного обеспечения,
|
||||||
|
Пользователь выражает свое согласие на обязательность условий и ограничений, изложенных в
|
||||||
|
настоящем документе, в противном случае, он должен не использовать или не получать доступ
|
||||||
|
к Программному обеспечению.
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
1. ТЕРМИНЫ И ОПРЕДЕЛЕНИЯ
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
a) ПО – Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) в любой ее версии
|
||||||
the copyright owner that is granting the License.
|
или редакции, исключительные права на которую принадлежат Правообладателю.
|
||||||
|
b) Правообладатель (Компания) – ООО «ЕМДЕВ», ОГРН 1057810026658, ИНН 7813313860, исключительные
|
||||||
|
права которого подтверждаются Свидетельством о государственной регистрации в Реестре программ
|
||||||
|
для ЭВМ № 2021610848 от 19.01.2021 года.
|
||||||
|
c) Пользователь – юридическое или физическое лицо, получившее через скачивание с сайта
|
||||||
|
https://entaxy.ru или иным образом, дистрибутив ПО, пользующееся ПО.
|
||||||
|
d) ИС – интеллектуальная собственность – закреплённое законом исключительное право, а также
|
||||||
|
личные неимущественные права авторов произведений на результат интеллектуальной деятельности.
|
||||||
|
e) Подписка – это коммерческое предложение Правообладателя, состоящее из Лицензии на использование
|
||||||
|
ПО и доступа к технической поддержке программного обеспечения на срок Подписки. Подписка
|
||||||
|
включает предоставление Пользователю неисключительного права использования ПО, в том числе
|
||||||
|
получение обновлений функционала ПО и безопасности ПО, исправление ошибок ПО и получение
|
||||||
|
патчей с обновлениями и исправлениями программного обеспечения. Подписка приобретается
|
||||||
|
Пользователем на период времени, указанный в Сертификате. Количество подписок устанавливается
|
||||||
|
для каждого Пользователя индивидуально в Сертификате.
|
||||||
|
f) Сертификат – документ, выдаваемый Дистрибъютором или Авторизованным партнёром (Партнёром),
|
||||||
|
подтверждающий факт приобретения физическим или юридическим лицом Подписки на программное
|
||||||
|
обеспечение в ограниченном объёме и на определённый период времени.
|
||||||
|
g) Лицензия (простая (неисключительная) – совокупность ограниченных прав использования ПО,
|
||||||
|
предоставленных Пользователю согласно условиям Подписки.
|
||||||
|
h) Библиотека – совокупность подпрограмм и объектов, используемых для разработки программного
|
||||||
|
обеспечения.
|
||||||
|
i) Исходный код – текст компьютерной программы на каком-либо языке программирования, состоящий
|
||||||
|
из одного или нескольких файлов, который может быть прочтён человеком.
|
||||||
|
j) Объектный код – файл (часть машинного кода) с промежуточным представлением отдельного модуля
|
||||||
|
программы, полученный в результате обработки исходного кода, еще не связанный в полную программу.
|
||||||
|
Это машинный код для одной конкретной библиотеки или модуля, который будет составлять готовый
|
||||||
|
продукт.
|
||||||
|
k) Некоммерческое использование – индивидуальное личное использование Пользователем программного
|
||||||
|
обеспечения с целью обучения работе с Программным обеспечением, для оценки или демонстрации
|
||||||
|
возможностей Программного обеспечения, при котором, Пользователем не извлекается коммерческая
|
||||||
|
выгода и/или не идёт в доход денежное вознаграждение при использовании Программного обеспечения.
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
2. ДОПУСТИМЫЕ СПОСОБЫ ИСПОЛЬЗОВАНИЯ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
2.1. Правообладатель предоставляет Пользователю ограниченное право использования Программного
|
||||||
exercising permissions granted by this License.
|
обеспечения на условиях простой (неисключительной) лицензии в объёме, ограниченном правом
|
||||||
|
воспроизведения полной рабочей версии программного обеспечения, новых версий программного обеспечения
|
||||||
|
в памяти оборудования и его запуска на оборудовании в соответствии со ст. 1280 ГК РФ.
|
||||||
|
2.2. Право на использование Программного обеспечения, предоставляемое Пользователю, носит
|
||||||
|
неисключительный характер.
|
||||||
|
2.3. Пользователю предоставляется всемирная, неисключительная, не подлежащая сублицензированию,
|
||||||
|
лицензия на ограниченное использование Программного обеспечения.
|
||||||
|
2.4. Пользователь, имеющий Базовую (некоммерческую) версию лицензии для пробного использования
|
||||||
|
имеет право приобрести Подписку на программное обеспечение. В этом случае Пользователь обязан
|
||||||
|
обратиться в службу поддержки Правообладателя по адресу: https://entaxy.ru/ для изменения
|
||||||
|
вида лицензии с Базовой бесплатной версии на Подписки.
|
||||||
|
2.5. Срок использования скачанной Пользователем базовой (некоммерческой) версии лицензии для
|
||||||
|
пробного использования программного обеспечения – не ограничен.
|
||||||
|
2.6. Использование Пользователем настоящего программного обеспечения в целях разработки,
|
||||||
|
модификации, обновления другого ПО, принадлежащего третьим лицам, а не Правообладателю,
|
||||||
|
без разрешения Правообладателя не допускается.
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
3. АВТОРСКОЕ ПРАВО.
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
3.1. Все авторские права, все права интеллектуальной собственности на Программное обеспечение
|
||||||
transformation or translation of a Source form, including but
|
и любые его копии принадлежат Правообладателю.
|
||||||
not limited to compiled object code, generated documentation,
|
3.2. Все авторские права, все права интеллектуальной собственности в отношении любого контента,
|
||||||
and conversions to other media types.
|
к которому можно получить доступ с помощью Программного обеспечения, является собственностью
|
||||||
|
соответствующего владельца контента и защищается применимым законодательством об авторском
|
||||||
|
праве или другими законами и договорами об интеллектуальной собственности.
|
||||||
|
3.3. Условия использования Программного обеспечения.
|
||||||
|
Лицензия, предоставленная Пользователю, действительна только в том случае, если Пользователь
|
||||||
|
придерживается следующих условий:
|
||||||
|
3.3.1. Принятие уведомлений об авторских правах. Пользователю запрещается удалять или изменять
|
||||||
|
какие-либо уведомления об авторских правах или лицензиях, которые появляются при использовании
|
||||||
|
Программного обеспечения или на нем.
|
||||||
|
3.3.2. Модификация. Пользователю запрещается модифицировать, изменять, декомпилировать,
|
||||||
|
расшифровывать, дизассемблировать, переводить или реверсировать, перепроектировать
|
||||||
|
Программное обеспечение.
|
||||||
|
3.3.3. Распространение. Пользователю запрещается сублицензировать, передавать право использования
|
||||||
|
ПО или иным образом распространять или предоставлять Программное обеспечение любой третьей стороне.
|
||||||
|
3.3.4. SaaS. За исключением случаев, когда это разрешено Правообладателем, Пользователю запрещено
|
||||||
|
использовать Программное обеспечение в коммерческих целях для оказания услуг третьим лицам.
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
4. ОТВЕТСТВЕННОСТЬ ПРАВООБЛАДАТЕЛЯ ПРИ НАРУШЕНИИ ПОЛЬЗОВАТЕЛЕМ ПРАВ «ИС»
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
4.1. Правообладатель не несет никаких обязательств в отношении каких-либо претензий к Пользователю
|
||||||
form, that is based on (or derived from) the Work and for which the
|
на предмет нарушения последним прав Интеллектуальной собственности, возникших в связи с
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
использованием Пользователем:
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
4.1.1. Любых компонентов программного обеспечения с открытым исходным кодом, включенных в
|
||||||
of this License, Derivative Works shall not include works that remain
|
Программное обеспечение;
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
4.1.2. Любого нарушения правил использования Программного обеспечения, установленного условиями
|
||||||
the Work and Derivative Works thereof.
|
настоящего соглашения;
|
||||||
|
4.1.3. Любого использования Программного обеспечения в сочетании с другими ПО, оборудованием,
|
||||||
|
или данными, не предоставленными Пользователю Правообладателем;
|
||||||
|
4.1.4. Любого изменения Программного обеспечения любым третьим лицом, а не Правообладателем.
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
5. НАСТОЯЩИМ ПРАВООБЛАДАТЕЛЬ ЗАЯВЛЯЕТ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ ПОЛЬЗОВАТЕЛЮ
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
ПО ПРИНЦИПУ «AS IS» - «КАК ЕСТЬ». НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ НЕ ГАРАНТИРУЕТ
|
||||||
subsequently incorporated within the Work.
|
И НЕ ОБЕЩАЕТ, ЧТО ПРЕДОСТАВЛЕННОЕ ИМ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ПОДХОДИТЬ ИЛИ НЕ ПОДХОДИТЬ
|
||||||
|
ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ОТВЕЧАТЬ ВСЕМ КОММЕРЧЕСКИМ
|
||||||
|
И ЛИЧНЫМ СУБЪЕКТИВНЫМ ОЖИДАНИЯМ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ РАБОТАТЬ
|
||||||
|
ИСПРАВНО, БЕЗ ТЕХНИЧЕСКИХ ОШИБОК, БЫСТРО И БЕСПЕРЕБОЙНО.
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
6. ОГРАНИЧЕНИЕ ОТВЕТСТВЕННОСТИ.
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ ИЛИ ЕГО АФФИЛЛИРОВАННЫЕ ЛИЦА НЕ НЕСУТ ПЕРЕД ПОЛЬЗОВАТЕЛЕМ
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
ОТВЕТСТВЕННОСТИ ЗА ЛЮБЫЕ ПРЯМЫЕ ИЛИ КОСВЕННЫЕ УБЫТКИ ПОЛЬЗОВАТЕЛЯ, ЕГО РАСХОДЫ ИЛИ РЕАЛЬНЫЙ УЩЕРБ,
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
ВКЛЮЧАЯ, ПОМИМО ПРОЧЕГО, ПРОСТОИ; УТРАТУ БИЗНЕСА; УПУЩЕННУЮ ВЫГОДУ; НЕДОПОЛУЧЕННУЮ ПРИБЫЛЬ;
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
ПОТЕРЮ ИЛИ ПОВРЕЖДЕНИЕ ДАННЫХ, ИМУЩЕСТВА И ИНОЕ.
|
||||||
Work and such Derivative Works in Source or Object form.
|
ОГРАНИЧЕНИЯ ПРИМЕНЯЮТСЯ НЕЗАВИСИМО ОТ ОСНОВАНИЯ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ; В ТОМ ЧИСЛЕ ВСЛЕДСТВИЕ
|
||||||
|
ДЕЙСТВИЯ ИЛИ БЕЗДЕЙСТВИЯ, НЕБРЕЖНОСТИ, УМЫСЛА, ПРЯМОГО ИЛИ КОСВЕННОГО; НЕОСТОРОЖНОСТИ; ЗАБЛУЖДЕНИЯ;
|
||||||
|
КЛЕВЕТЫ; НАРУШЕНИЯ КОНФИДЕНЦИАЛЬНОСТИ ИЛИ ПРАВА ИНТЕЛЛЕКТУАЛЬНОЙ СОБСТВЕННОСТИ; ИЛИ ЛЮБОЕ ДРУГОЕ
|
||||||
|
ОСНОВАНИЕ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ.
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
7. ОБЯЗАННОСТЬ ПОЛЬЗОВАТЕЛЯ:
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
Не осуществлять самостоятельно и (или) с привлечением третьих лиц нижеследующие действия
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
(включая, но не ограничиваясь) по:
|
||||||
(except as stated in this section) patent license to make, have made,
|
-дизассемблированию и (или) декомпилированию (преобразованию объектного кода в исходный код)
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
Программного обеспечения;
|
||||||
where such license applies only to those patent claims licensable
|
-модификации Программного обеспечения, в том числе вносить изменения в объектный код, исходный
|
||||||
by such Contributor that are necessarily infringed by their
|
код Программного обеспечения, за исключением тех изменений, которые вносятся средствами,
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
включёнными в Программное обеспечение и описанными непосредственно в документации к нему;
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
-созданию условий для использования Программного обеспечения лицами, не имеющими прав на
|
||||||
institute patent litigation against any entity (including a
|
использование данного Программного обеспечения, включая (но не ограничиваясь) вмешательство
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
третьих лиц в функционирование Программного обеспечения, предоставление третьим лицам доступа
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
к исследованию и (или) замене настроек Программного обеспечения, включая его первичную установку;
|
||||||
or contributory patent infringement, then any patent licenses
|
-распространению Программного обеспечения в целом или в части (включая приложенную к нему документацию).
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
8. БИБЛИОТЕКА ПО. ИСПОЛЬЗУЕМЫЕ ПРОГРАММНЫЕ СРЕДСТВА.
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
8.1. Настоящим, Правообладатель заверяет, что Библиотека программного обеспечения состоит из
|
||||||
Derivative Works a copy of this License; and
|
лицензионных продуктов, используемых на законных основаниях, а
|
||||||
|
именно https://entaxy.ru/libs/licenses/root-aggregated.deps.
|
||||||
|
8.2. Любые программные средства, применяемые Пользователем при работе с ПО, должны быть
|
||||||
|
совместимы с библиотекой ПО, указанной в п.8.1. настоящего соглашения.
|
||||||
|
8.3. Перечень внешних модулей ПО, указанный в п.8.1 настоящего соглашения, может изменяться
|
||||||
|
Правообладателем в одностороннем порядке, в зависимости от выпуска релизов программного обеспечения,
|
||||||
|
содержащих все изменения и дополнения программного обеспечения.
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
9. ВНЕСЕНИЕ ИЗМЕНЕНИЙ В ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ.
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
9.1. Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) является свободно распространяемым
|
||||||
that You distribute, all copyright, patent, trademark, and
|
программным обеспечением.
|
||||||
attribution notices from the Source form of the Work,
|
9.2. Пользователь имеет право вносить изменения в исходный код программного обеспечения исключительно
|
||||||
excluding those notices that do not pertain to any part of
|
с согласия Правообладателя в порядке предложения изменений/правок/дополнений через механизм
|
||||||
the Derivative Works; and
|
«Pull Requests» в открытом репозитории Правообладателя по адресу: https://git.entaxy.ru/entaxy/entaxy-public.
|
||||||
|
9.3. Любые изменения программного обеспечения, осуществляемые Пользователем без соблюдения условий
|
||||||
|
пункта 9.2. настоящего документа, являются нарушением авторских и смежных прав Правообладателя,
|
||||||
|
прав интеллектуальной собственности Правообладателя и влекут применение к Пользователю мер
|
||||||
|
ответственности в соответствии с условиями настоящей Лицензии, а также применимого законодательства
|
||||||
|
Российской Федерации.
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
10. ЗАКЛЮЧИТЕЛЬНЫЕ ПОЛОЖЕНИЯ.
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
10.1. В случае нарушения Пользователем любого из условий настоящей Лицензии, Правообладатель имеет
|
||||||
may provide additional or different license terms and conditions
|
право взыскать с Пользователя любые причинённые таким нарушением убытки, реальный ущерб,
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
недополученную прибыль, упущенную выгоду, а также в случае нарушения Пользователем условий
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
пункта 9.2 настоящего соглашения, в том числе, взыскать с Пользователя штраф в размере
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
2 000 000 (Два миллиона) рублей за каждый установленный случай несанкционированного изменения
|
||||||
the conditions stated in this License.
|
исходного или объектного кода Программного обеспечения «Энтакси» (Entaxy).
|
||||||
|
10.2. В рамках исполнения Пользователем обязательств по настоящей Лицензии, применимое
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
законодательство – Российской Федерации.
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
10.3. Если какое-либо положение настоящей Лицензии будет признано судом недействительным,
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
остальные положения будут продолжать своё действие, а Пользователь будет обязан продолжать
|
||||||
this License, without any additional terms or conditions.
|
исполнять свои обязанности в соответствии с этими положениями.
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
|
@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
@ -1,90 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<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 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
||||||
|
|
||||||
<parent>
|
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base.connecting</groupId>
|
|
||||||
<artifactId>adapter</artifactId>
|
|
||||||
<version>1.8.3</version>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base.connecting.adapter</groupId>
|
|
||||||
<artifactId>adapters-core</artifactId>
|
|
||||||
<packaging>bundle</packaging>
|
|
||||||
|
|
||||||
<name>ENTAXY :: PLATFORM :: RUNTIME :: BASE :: CONNECTING :: ADAPTER :: ADAPTER CORE</name>
|
|
||||||
<description>ENTAXY :: PLATFORM :: RUNTIME :: BASE :: CONNECTING :: ADAPTER :: ADAPTER CORE</description>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<bundle.osgi.export.pkg>
|
|
||||||
ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.api,
|
|
||||||
ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.impl,
|
|
||||||
ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.management,
|
|
||||||
ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.metadata,
|
|
||||||
ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.tracker,
|
|
||||||
ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.util
|
|
||||||
</bundle.osgi.export.pkg>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.felix</groupId>
|
|
||||||
<artifactId>maven-bundle-plugin</artifactId>
|
|
||||||
<extensions>true</extensions>
|
|
||||||
<configuration>
|
|
||||||
<instructions>
|
|
||||||
<Bundle-Activator>ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.tracker.AdapterTrackerActivator</Bundle-Activator>
|
|
||||||
<_dsannotations>*</_dsannotations>
|
|
||||||
</instructions>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.osgi</groupId>
|
|
||||||
<artifactId>osgi.core</artifactId>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.slf4j</groupId>
|
|
||||||
<artifactId>slf4j-api</artifactId>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.google.code.gson</groupId>
|
|
||||||
<artifactId>gson</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base.connecting.generator</groupId>
|
|
||||||
<artifactId>generator-api</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base</groupId>
|
|
||||||
<artifactId>management-core</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base.connecting.generator</groupId>
|
|
||||||
<artifactId>generator-factory</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.felix</groupId>
|
|
||||||
<artifactId>org.apache.felix.scr</artifactId>
|
|
||||||
<version>2.1.20</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.osgi</groupId>
|
|
||||||
<artifactId>org.osgi.service.component.annotations</artifactId>
|
|
||||||
<version>1.4.0</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,59 +0,0 @@
|
|||||||
/*-
|
|
||||||
* ~~~~~~licensing~~~~~~
|
|
||||||
* adapters-core
|
|
||||||
* ==========
|
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
* ==========
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
|
||||||
*/
|
|
||||||
package ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.api;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import ru.entaxy.esb.platform.runtime.base.connecting.generator.Generated;
|
|
||||||
|
|
||||||
public interface Adapter {
|
|
||||||
public static final String ADAPTER_CLASS_HEADER_NAME = "Entaxy-Adapter-Class";
|
|
||||||
public static final String ADAPTER_HEADER_NAME = "Entaxy-Adapter";
|
|
||||||
public default boolean isInited() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
public default String getId() {
|
|
||||||
return "none";
|
|
||||||
}
|
|
||||||
public default String getName() {
|
|
||||||
return "Undefined";
|
|
||||||
}
|
|
||||||
public default String getDescription() {
|
|
||||||
return "Undefined";
|
|
||||||
}
|
|
||||||
public default Map<String, String> getOptions() {
|
|
||||||
return new HashMap<>();
|
|
||||||
}
|
|
||||||
public default Map<String, String> getProperties() {
|
|
||||||
return new HashMap<>();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
@Deprecated
|
|
||||||
public default Blueprint generateBlueprint(String type, Map<String, Object> map) throws Exception {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
public default Generated generate(String type, Map<String, Object> map) throws Exception {
|
|
||||||
return Generated.create();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,200 +0,0 @@
|
|||||||
/*-
|
|
||||||
* ~~~~~~licensing~~~~~~
|
|
||||||
* adapters-core
|
|
||||||
* ==========
|
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
* ==========
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
|
||||||
*/
|
|
||||||
package ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.impl;
|
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStreamReader;
|
|
||||||
import java.net.URL;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.NoSuchElementException;
|
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
import org.osgi.framework.BundleContext;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
|
||||||
import com.google.gson.GsonBuilder;
|
|
||||||
import com.google.gson.JsonElement;
|
|
||||||
import com.google.gson.JsonObject;
|
|
||||||
import com.google.gson.JsonParser;
|
|
||||||
|
|
||||||
import ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.api.Adapter;
|
|
||||||
import ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.metadata.AdapterFieldElement;
|
|
||||||
import ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.metadata.AdapterGeneratorElement;
|
|
||||||
import ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.metadata.AdapterMetadataElement;
|
|
||||||
import ru.entaxy.esb.platform.runtime.base.connecting.generator.Generated;
|
|
||||||
import ru.entaxy.esb.platform.runtime.base.connecting.generator.Generator;
|
|
||||||
import ru.entaxy.esb.platform.runtime.base.connecting.generator.factory.GeneratorFactory;
|
|
||||||
|
|
||||||
public class DefaultAdapter implements Adapter {
|
|
||||||
|
|
||||||
protected static final Logger log = LoggerFactory.getLogger(DefaultAdapter.class);
|
|
||||||
|
|
||||||
protected BundleContext bundleContext;
|
|
||||||
|
|
||||||
protected boolean isInited = false;
|
|
||||||
protected String defaultId = "none";
|
|
||||||
protected String defaultName = "Undefined";
|
|
||||||
protected String defaultDescription = "Undefined";
|
|
||||||
protected AdapterMetadataElement adapterMetadata;
|
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
protected Map<String, Generator> generatorList = new HashMap<>();
|
|
||||||
protected Map<String, GeneratorDescriptor> generatorDescriptorList = new HashMap<>();
|
|
||||||
|
|
||||||
protected static class GeneratorDescriptor {
|
|
||||||
BundleContext bundleContext;
|
|
||||||
AdapterGeneratorElement generatorElement;
|
|
||||||
Generator generator;
|
|
||||||
boolean linked = false;
|
|
||||||
|
|
||||||
public void linkGenerator() {
|
|
||||||
generator = GeneratorFactory.createGenerator(generatorElement.getGenerator()
|
|
||||||
, generatorElement.getType(), bundleContext);
|
|
||||||
linked = (generator != null);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public DefaultAdapter(BundleContext bundleContext) throws IOException {
|
|
||||||
this.bundleContext = bundleContext;
|
|
||||||
log.debug("Constructor of adapter {}", DefaultAdapter.class.getName());
|
|
||||||
this.isInited = this.init();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected boolean init() throws IOException {
|
|
||||||
URL metadataUrl = this.bundleContext.getBundle().getEntry("/ru/entaxy/adapter/metadata.json");
|
|
||||||
log.debug("Json URL is {}", metadataUrl.toString());
|
|
||||||
|
|
||||||
String metadata = new BufferedReader (
|
|
||||||
new InputStreamReader(
|
|
||||||
metadataUrl.openStream(), StandardCharsets.UTF_8))
|
|
||||||
.lines()
|
|
||||||
.collect(Collectors.joining("\n"));
|
|
||||||
|
|
||||||
log.debug("Adapter json description: \n" + metadata);
|
|
||||||
|
|
||||||
GsonBuilder builder = new GsonBuilder();
|
|
||||||
Gson gson = builder.create();
|
|
||||||
|
|
||||||
JsonElement je = (new JsonParser()).parse(metadata);
|
|
||||||
JsonObject root = je.getAsJsonObject();
|
|
||||||
|
|
||||||
JsonElement adapterElement = root.get("adapter");
|
|
||||||
|
|
||||||
this.adapterMetadata = gson.fromJson(adapterElement, AdapterMetadataElement.class);
|
|
||||||
|
|
||||||
List<AdapterGeneratorElement> generators = adapterMetadata.getGenerators();
|
|
||||||
|
|
||||||
for (AdapterGeneratorElement generator: generators) {
|
|
||||||
GeneratorDescriptor descriptor = new GeneratorDescriptor();
|
|
||||||
descriptor.bundleContext = this.bundleContext;
|
|
||||||
descriptor.generatorElement = generator;
|
|
||||||
if (!generator.isLazy())
|
|
||||||
descriptor.linkGenerator();
|
|
||||||
this.generatorDescriptorList.put(generator.getType(), descriptor);
|
|
||||||
}
|
|
||||||
|
|
||||||
// initGenerators(adapterMetadata.getGenerators());
|
|
||||||
|
|
||||||
return this.adapterMetadata != null && !generatorDescriptorList.isEmpty();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void initGenerators(List<AdapterGeneratorElement> generators) {
|
|
||||||
for (AdapterGeneratorElement generator: generators) {
|
|
||||||
String usageType = generator.getType();
|
|
||||||
String generatorType = generator.getGenerator();
|
|
||||||
generatorList.put(usageType,
|
|
||||||
GeneratorFactory.createGenerator(generatorType, usageType, bundleContext));
|
|
||||||
}
|
|
||||||
log.debug("generatorList: " + generatorList);
|
|
||||||
//TODO checkGeneratorList();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Interface */
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isInited() {
|
|
||||||
return isInited;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getId() {
|
|
||||||
return this.isInited?this.adapterMetadata.getId():this.defaultId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(String id) {
|
|
||||||
this.adapterMetadata.setId(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getName() {
|
|
||||||
return this.isInited?this.adapterMetadata.getName():this.defaultName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.adapterMetadata.setName(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getDescription() {
|
|
||||||
return this.isInited?this.adapterMetadata.getDescription():this.defaultDescription;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDescription(String description) {
|
|
||||||
this.adapterMetadata.setDescription(description);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Map<String, String> getProperties(){
|
|
||||||
return this.adapterMetadata.getFields()
|
|
||||||
.stream()
|
|
||||||
.filter(field -> field.isProperty())
|
|
||||||
.collect(Collectors.toMap(AdapterFieldElement::getName, AdapterFieldElement::getType));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Map<String, String> getOptions(){
|
|
||||||
return this.adapterMetadata.getFields()
|
|
||||||
.stream()
|
|
||||||
.filter(field -> field.isOption())
|
|
||||||
.collect(Collectors.toMap(AdapterFieldElement::getName, AdapterFieldElement::getType));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Generated generate(String type, Map<String, Object> map) throws Exception {
|
|
||||||
GeneratorDescriptor descriptor = generatorDescriptorList.get(type);
|
|
||||||
if (descriptor == null)
|
|
||||||
throw new NoSuchElementException("Generator of type ["
|
|
||||||
+ type + "] not defined for adapter [" + this.getId() + "]");
|
|
||||||
if (!descriptor.linked)
|
|
||||||
descriptor.linkGenerator();
|
|
||||||
if (!descriptor.linked)
|
|
||||||
throw new NoSuchElementException("Generator of type ["
|
|
||||||
+ type + "] not linked for adapter [" + this.getId() + "]");
|
|
||||||
Generator generator = descriptor.generator;
|
|
||||||
return generator.generate(map);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,39 +0,0 @@
|
|||||||
/*-
|
|
||||||
* ~~~~~~licensing~~~~~~
|
|
||||||
* adapters-core
|
|
||||||
* ==========
|
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
* ==========
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
|
||||||
*/
|
|
||||||
package ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.management;
|
|
||||||
|
|
||||||
import ru.entaxy.esb.platform.base.management.core.api.RuntimeTypedMBean;
|
|
||||||
|
|
||||||
public interface AdapterMBean extends RuntimeTypedMBean {
|
|
||||||
|
|
||||||
public boolean isInited();
|
|
||||||
|
|
||||||
public String getId();
|
|
||||||
|
|
||||||
public String getName();
|
|
||||||
|
|
||||||
public String getDescription();
|
|
||||||
|
|
||||||
// public Map<String, String> getOptions();
|
|
||||||
|
|
||||||
// public Map<String, String> getProperties();
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
@ -1,60 +0,0 @@
|
|||||||
/*-
|
|
||||||
* ~~~~~~licensing~~~~~~
|
|
||||||
* adapters-core
|
|
||||||
* ==========
|
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
* ==========
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
|
||||||
*/
|
|
||||||
package ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.management;
|
|
||||||
|
|
||||||
import javax.management.NotCompliantMBeanException;
|
|
||||||
import javax.management.StandardMBean;
|
|
||||||
|
|
||||||
import ru.entaxy.esb.platform.base.management.core.api.EntaxyRuntimeTyped;
|
|
||||||
import ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.api.Adapter;
|
|
||||||
|
|
||||||
//@TODO move string to constant
|
|
||||||
@EntaxyRuntimeTyped(name = "entaxy.runtime.adapter")
|
|
||||||
public class AdapterMBeanImpl extends StandardMBean implements AdapterMBean {
|
|
||||||
|
|
||||||
protected Adapter adapter;
|
|
||||||
|
|
||||||
public AdapterMBeanImpl(Adapter adapter) throws NotCompliantMBeanException {
|
|
||||||
super(AdapterMBean.class);
|
|
||||||
this.adapter = adapter;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getId() {
|
|
||||||
return adapter.getId();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isInited() {
|
|
||||||
return adapter.isInited();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getName() {
|
|
||||||
return adapter.getName();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getDescription() {
|
|
||||||
return adapter.getDescription();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
@ -1,36 +0,0 @@
|
|||||||
/*-
|
|
||||||
* ~~~~~~licensing~~~~~~
|
|
||||||
* adapters-core
|
|
||||||
* ==========
|
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
* ==========
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
|
||||||
*/
|
|
||||||
package ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.management;
|
|
||||||
|
|
||||||
import ru.entaxy.esb.platform.base.management.core.ManagementCore;
|
|
||||||
import ru.entaxy.esb.platform.base.management.core.Qualifier;
|
|
||||||
|
|
||||||
public interface AdaptersMBean {
|
|
||||||
|
|
||||||
public static final String ADAPTERS_KEY = "category";
|
|
||||||
|
|
||||||
public static final String ADAPTERS_VALUE = "adapter";
|
|
||||||
|
|
||||||
public static final Qualifier Q_ADAPTERS = ManagementCore.Q_PLATFORM.qualifier(ADAPTERS_KEY, ADAPTERS_VALUE);
|
|
||||||
|
|
||||||
public static final String Q_ADAPTERS_S = ManagementCore.Q_LOCAL_NODE_S + "," + ADAPTERS_KEY + "=" + ADAPTERS_VALUE;
|
|
||||||
|
|
||||||
public void execute(String value);
|
|
||||||
}
|
|
@ -1,113 +0,0 @@
|
|||||||
/*-
|
|
||||||
* ~~~~~~licensing~~~~~~
|
|
||||||
* adapters-core
|
|
||||||
* ==========
|
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
* ==========
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
|
||||||
*/
|
|
||||||
package ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.management;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Hashtable;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import javax.management.DynamicMBean;
|
|
||||||
import javax.management.MBeanRegistration;
|
|
||||||
import javax.management.NotCompliantMBeanException;
|
|
||||||
import javax.management.StandardMBean;
|
|
||||||
|
|
||||||
import org.osgi.framework.BundleContext;
|
|
||||||
import org.osgi.framework.ServiceRegistration;
|
|
||||||
import org.osgi.service.component.ComponentContext;
|
|
||||||
import org.osgi.service.component.annotations.Activate;
|
|
||||||
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.ServiceScope;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
import ru.entaxy.esb.platform.base.management.core.ManagementCore;
|
|
||||||
import ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.api.Adapter;
|
|
||||||
|
|
||||||
@Component(
|
|
||||||
service = {AdaptersMBean.class, DynamicMBean.class, MBeanRegistration.class},
|
|
||||||
// property = {"jmx.objectname=ru.entaxy.esb:group=platform,category=adapters"},
|
|
||||||
property = {ManagementCore.ENTAXY_JMX_DOMAIN + "=" + AdaptersMBean.Q_ADAPTERS_S},
|
|
||||||
scope = ServiceScope.SINGLETON,
|
|
||||||
immediate = true
|
|
||||||
)
|
|
||||||
public class AdaptersMBeanImpl extends StandardMBean implements AdaptersMBean {
|
|
||||||
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(AdaptersMBeanImpl.class);
|
|
||||||
|
|
||||||
protected Map<Adapter, ServiceRegistration<AdapterMBean>> mbeans = new HashMap<>();
|
|
||||||
|
|
||||||
// @Reference (service = BundleContext.class)
|
|
||||||
protected BundleContext bundleContext;
|
|
||||||
|
|
||||||
public AdaptersMBeanImpl() throws NotCompliantMBeanException {
|
|
||||||
super(AdaptersMBean.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Activate
|
|
||||||
public void activate(ComponentContext componentContext) {
|
|
||||||
log.debug(" >> ACTIVATE <<");
|
|
||||||
this.bundleContext = componentContext.getBundleContext();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Reference (service = Adapter.class, cardinality = ReferenceCardinality.MULTIPLE,
|
|
||||||
unbind = "unbindAdapter", collectionType = CollectionType.SERVICE,
|
|
||||||
policy = ReferencePolicy.DYNAMIC)
|
|
||||||
public void bindAdapter(Adapter adapter) {
|
|
||||||
|
|
||||||
try {
|
|
||||||
AdapterMBeanImpl mbean = new AdapterMBeanImpl(adapter);
|
|
||||||
Hashtable props = new Hashtable<>();
|
|
||||||
// props.put("jmx.objectname", "ru.entaxy.esb:group=platform,category=adapters,id=" + adapter.getId());
|
|
||||||
props.put(ManagementCore.JMX_OBJECTNAME, Q_ADAPTERS.qualifier("id", adapter.getId()).getValue());
|
|
||||||
ServiceRegistration<AdapterMBean> reg = bundleContext.registerService(
|
|
||||||
new String[] {
|
|
||||||
AdapterMBean.class.getName(),
|
|
||||||
DynamicMBean.class.getName(),
|
|
||||||
MBeanRegistration.class.getName()
|
|
||||||
}
|
|
||||||
, mbean
|
|
||||||
, props);
|
|
||||||
this.mbeans.put(adapter, reg);
|
|
||||||
|
|
||||||
} catch (NotCompliantMBeanException e) {
|
|
||||||
log.error("Error creating MBean for adapter: ", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public void unbindAdapter(Adapter adapter) {
|
|
||||||
ServiceRegistration<AdapterMBean> reg = this.mbeans.get(adapter);
|
|
||||||
if (reg != null)
|
|
||||||
reg.unregister();
|
|
||||||
this.mbeans.remove(adapter);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void execute(String value) {
|
|
||||||
log.info(">> EXECUTED");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,71 +0,0 @@
|
|||||||
/*-
|
|
||||||
* ~~~~~~licensing~~~~~~
|
|
||||||
* adapters-core
|
|
||||||
* ==========
|
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
* ==========
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
|
||||||
*/
|
|
||||||
package ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.metadata;
|
|
||||||
|
|
||||||
public class AdapterFieldElement {
|
|
||||||
|
|
||||||
protected String name;
|
|
||||||
protected String type = "String";
|
|
||||||
protected boolean property = false;
|
|
||||||
protected boolean option = false;
|
|
||||||
protected String defaultValue = "";
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getType() {
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setType(String type) {
|
|
||||||
this.type = type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isProperty() {
|
|
||||||
return property;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setProperty(boolean isProperty) {
|
|
||||||
this.property = isProperty;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isOption() {
|
|
||||||
return option;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOption(boolean isOption) {
|
|
||||||
this.option = isOption;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDefault() {
|
|
||||||
return defaultValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDefault(String defaultValue) {
|
|
||||||
this.defaultValue = defaultValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
@ -1,87 +0,0 @@
|
|||||||
/*-
|
|
||||||
* ~~~~~~licensing~~~~~~
|
|
||||||
* adapters-core
|
|
||||||
* ==========
|
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
* ==========
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
|
||||||
*/
|
|
||||||
package ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.metadata;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import com.google.gson.JsonObject;
|
|
||||||
|
|
||||||
import ru.entaxy.platform.base.support.JSONUtils;
|
|
||||||
|
|
||||||
public class AdapterGeneratorElement {
|
|
||||||
protected String type;
|
|
||||||
|
|
||||||
// Default generator is defined in GeneratorFactory
|
|
||||||
// no need to redefine it here
|
|
||||||
protected String generator = "";
|
|
||||||
|
|
||||||
protected JsonObject config;
|
|
||||||
protected Map<String, Object> configMap = new HashMap<>();
|
|
||||||
|
|
||||||
// we can postpone generator linking until it's really needed
|
|
||||||
protected boolean lazy = false;
|
|
||||||
|
|
||||||
public String getType() {
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setType(String type) {
|
|
||||||
this.type = type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGenerator() {
|
|
||||||
return generator;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGenerator(String generator) {
|
|
||||||
this.generator = generator;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Map<String, Object> getConfigMap() {
|
|
||||||
if (configMap.isEmpty() && (this.config != null))
|
|
||||||
configMap = JSONUtils.element2map(this.config);
|
|
||||||
return configMap;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setConfigMap(Map<String, Object> configMap) {
|
|
||||||
this.configMap = configMap;
|
|
||||||
}
|
|
||||||
|
|
||||||
// actually the method is not called by Gson
|
|
||||||
public void setConfig(JsonObject configElement) {
|
|
||||||
this.config = configElement;
|
|
||||||
this.configMap = JSONUtils.element2map(configElement);
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isLazy() {
|
|
||||||
return lazy;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLazy(boolean lazy) {
|
|
||||||
this.lazy = lazy;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String toString() {
|
|
||||||
return "AdapterGeneratorElement: " +
|
|
||||||
"{'type': '" + type + "', " +
|
|
||||||
"'generator': '" + generator + "'}";
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,79 +0,0 @@
|
|||||||
/*-
|
|
||||||
* ~~~~~~licensing~~~~~~
|
|
||||||
* adapters-core
|
|
||||||
* ==========
|
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
* ==========
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
|
||||||
*/
|
|
||||||
package ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.metadata;
|
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class AdapterMetadataElement {
|
|
||||||
|
|
||||||
protected static final Logger log = LoggerFactory.getLogger(AdapterMetadataElement.class);
|
|
||||||
|
|
||||||
protected String id;
|
|
||||||
protected String name;
|
|
||||||
protected String description;
|
|
||||||
|
|
||||||
protected List<AdapterFieldElement> fields = new ArrayList<>();
|
|
||||||
|
|
||||||
public List<AdapterGeneratorElement> getGenerators() {
|
|
||||||
return generators;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGenerators(List<AdapterGeneratorElement> generators) {
|
|
||||||
this.generators = generators;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected List<AdapterGeneratorElement> generators = new ArrayList();
|
|
||||||
|
|
||||||
public void addField(AdapterFieldElement field) {
|
|
||||||
this.fields.add(field);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getFieldsCount() {
|
|
||||||
return this.fields.size();
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<AdapterFieldElement> getFields() {
|
|
||||||
return fields;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
public void setId(String id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
public void setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,91 +0,0 @@
|
|||||||
/*-
|
|
||||||
* ~~~~~~licensing~~~~~~
|
|
||||||
* adapters-core
|
|
||||||
* ==========
|
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
* ==========
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
|
||||||
*/
|
|
||||||
package ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.tracker;
|
|
||||||
|
|
||||||
import org.osgi.framework.Bundle;
|
|
||||||
import org.osgi.framework.BundleContext;
|
|
||||||
import org.osgi.framework.ServiceRegistration;
|
|
||||||
import org.osgi.framework.wiring.BundleWiring;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.api.Adapter;
|
|
||||||
|
|
||||||
import java.lang.reflect.Constructor;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Hashtable;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class AdapterHelper {
|
|
||||||
|
|
||||||
protected static final Logger log = LoggerFactory.getLogger(AdapterHelper.class);
|
|
||||||
|
|
||||||
protected BundleContext bundleContext;
|
|
||||||
|
|
||||||
protected List<Object> objects = new ArrayList<>();
|
|
||||||
protected List<ServiceRegistration> registrations = new ArrayList<>();
|
|
||||||
|
|
||||||
public AdapterHelper(BundleContext bundleContext) {
|
|
||||||
this.bundleContext = bundleContext;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void create(Bundle targetBundle, String className) {
|
|
||||||
log.info("Creating adapter in " + targetBundle.getSymbolicName()
|
|
||||||
+ " of class " + targetBundle.getClass().getName()
|
|
||||||
+ " having context of " + targetBundle.getBundleContext().getClass().getName());
|
|
||||||
BundleWiring wiring = targetBundle.adapt(BundleWiring.class);
|
|
||||||
ClassLoader cl = wiring.getClassLoader();
|
|
||||||
try {
|
|
||||||
Class<?> clazz = cl.loadClass(className);
|
|
||||||
Constructor<?> constructor = clazz.getConstructor(BundleContext.class);
|
|
||||||
Object obj = constructor.newInstance(targetBundle.getBundleContext());
|
|
||||||
log.debug("Created object of class {}", obj.getClass().getName());
|
|
||||||
|
|
||||||
Adapter adapter = (Adapter)obj;
|
|
||||||
if (!adapter.isInited()) {
|
|
||||||
log.warn("Adapter initialization failed.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Hashtable<String, String> properties = new Hashtable<>();
|
|
||||||
properties.put("adapter.id", adapter.getId());
|
|
||||||
properties.put("adapter.name", adapter.getName());
|
|
||||||
properties.put("adapter.description", adapter.getDescription());
|
|
||||||
|
|
||||||
ServiceRegistration sr = targetBundle.getBundleContext().registerService(new String[] {Adapter.class.getName()}, obj, properties);
|
|
||||||
|
|
||||||
// // print out adapter info
|
|
||||||
// String props = "\n";
|
|
||||||
// for (Map.Entry<String, String> entry: adapter.getProperties().entrySet())
|
|
||||||
// props += entry.getKey() + ": " + entry.getValue() + "\n";
|
|
||||||
// String opts = "\n";
|
|
||||||
// for (Map.Entry<String, String> entry: adapter.getOptions().entrySet())
|
|
||||||
// opts += entry.getKey() + ": " + entry.getValue() + "\n";
|
|
||||||
//
|
|
||||||
// log.info("\n\n\tFINAL ADAPTER INFO: \nID: {}\nDescription: {}\nProperties:{}Options:{}"
|
|
||||||
// , adapter.getId()
|
|
||||||
// , adapter.getDescription()
|
|
||||||
// , props
|
|
||||||
// , opts);
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.error("Can't create adapter:\n", e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,56 +0,0 @@
|
|||||||
/*-
|
|
||||||
* ~~~~~~licensing~~~~~~
|
|
||||||
* adapters-core
|
|
||||||
* ==========
|
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
* ==========
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
|
||||||
*/
|
|
||||||
package ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.tracker;
|
|
||||||
|
|
||||||
import org.osgi.framework.Bundle;
|
|
||||||
import org.osgi.framework.BundleContext;
|
|
||||||
import org.osgi.framework.BundleEvent;
|
|
||||||
import org.osgi.util.tracker.BundleTracker;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.api.Adapter;
|
|
||||||
import ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.impl.DefaultAdapter;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public class AdapterTracker extends BundleTracker {
|
|
||||||
|
|
||||||
protected static final Logger log = LoggerFactory.getLogger(AdapterTracker.class);
|
|
||||||
|
|
||||||
protected AdapterHelper helper;
|
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public AdapterTracker(BundleContext bundleContext) {
|
|
||||||
super(bundleContext, Bundle.ACTIVE, null);
|
|
||||||
this.helper = new AdapterHelper(bundleContext);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Object addingBundle(Bundle bundle, BundleEvent event) {
|
|
||||||
String isAdapter = bundle.getHeaders().get(Adapter.ADAPTER_HEADER_NAME);
|
|
||||||
if (Boolean.valueOf(isAdapter)) {
|
|
||||||
String className = Optional.ofNullable(bundle.getHeaders().
|
|
||||||
get(Adapter.ADAPTER_CLASS_HEADER_NAME)).orElse(DefaultAdapter.class.getName());
|
|
||||||
log.debug("Adapter class " + className + " FOUND IN BUNDLE " + bundle.getSymbolicName());
|
|
||||||
helper.create(bundle, className);
|
|
||||||
}
|
|
||||||
return bundle;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,66 +0,0 @@
|
|||||||
/*-
|
|
||||||
* ~~~~~~licensing~~~~~~
|
|
||||||
* adapters-core
|
|
||||||
* ==========
|
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
* ==========
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
|
||||||
*/
|
|
||||||
package ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.tracker;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Hashtable;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import javax.management.DynamicMBean;
|
|
||||||
import javax.management.MBeanRegistration;
|
|
||||||
|
|
||||||
import org.osgi.framework.BundleActivator;
|
|
||||||
import org.osgi.framework.BundleContext;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
import ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.management.AdaptersMBean;
|
|
||||||
import ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.management.AdaptersMBeanImpl;
|
|
||||||
|
|
||||||
public class AdapterTrackerActivator implements BundleActivator {
|
|
||||||
|
|
||||||
protected static final Logger log = LoggerFactory.getLogger(AdapterTrackerActivator.class);
|
|
||||||
|
|
||||||
protected AdapterTracker tracker;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void start(BundleContext context) throws Exception {
|
|
||||||
tracker = new AdapterTracker(context);
|
|
||||||
tracker.open();
|
|
||||||
/* AdaptersMBeanImpl mbean = new AdaptersMBeanImpl();
|
|
||||||
Hashtable props = new Hashtable();
|
|
||||||
props.put("jmx.objectname", "ru.entaxy.esb:type=bundle,name=adapters");
|
|
||||||
List<String> list = new ArrayList<>();
|
|
||||||
list.add(AdaptersMBean.class.getName());
|
|
||||||
list.add(DynamicMBean.class.getName());
|
|
||||||
list.add(MBeanRegistration.class.getName());
|
|
||||||
String[] clazzes = list.toArray(new String[] {});
|
|
||||||
context.registerService(
|
|
||||||
clazzes
|
|
||||||
, mbean
|
|
||||||
, props);*/
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void stop(BundleContext context) throws Exception {
|
|
||||||
tracker.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
/*-
|
|
||||||
* ~~~~~~licensing~~~~~~
|
|
||||||
* adapters-core
|
|
||||||
* ==========
|
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
* ==========
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
|
||||||
*/
|
|
||||||
package ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.util;
|
|
||||||
|
|
||||||
import org.osgi.framework.BundleContext;
|
|
||||||
import org.osgi.framework.FrameworkUtil;
|
|
||||||
import org.osgi.framework.InvalidSyntaxException;
|
|
||||||
import org.osgi.framework.ServiceReference;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.api.Adapter;
|
|
||||||
|
|
||||||
import java.util.Collection;
|
|
||||||
|
|
||||||
public class AdapterUtil {
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(AdapterUtil.class);
|
|
||||||
public static Adapter getAdapter(String adapterName) throws InvalidSyntaxException {
|
|
||||||
String filter = "(adapter.name=" + adapterName + ")";
|
|
||||||
log.debug("Get adapter service filtered by: " + filter);
|
|
||||||
BundleContext bundleContext = FrameworkUtil.getBundle(Adapter.class).getBundleContext();
|
|
||||||
Collection<ServiceReference<Adapter>> referenceList = bundleContext.getServiceReferences(Adapter.class, filter);
|
|
||||||
Adapter adapter = bundleContext.getService(referenceList.iterator().next());
|
|
||||||
|
|
||||||
return adapter;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
/*-
|
|
||||||
* ~~~~~~licensing~~~~~~
|
|
||||||
* adapters-core
|
|
||||||
* ==========
|
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
* ==========
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
|
||||||
*/
|
|
||||||
package ru.entaxy.esb.platform.runtime.base.connecting.adapter.core.util;
|
|
||||||
|
|
||||||
public class ConnectionUsageType { // TODO: 09.07.2021 maybe enum usage instead of class planning
|
|
||||||
public static final String INIT = "init";
|
|
||||||
public static final String REF = "ref";
|
|
||||||
public static final String FROM = "from";
|
|
||||||
public static final String TO = "to";
|
|
||||||
}
|
|
@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
@ -1,38 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<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 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
||||||
|
|
||||||
<parent>
|
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base.connecting</groupId>
|
|
||||||
<artifactId>adapter</artifactId>
|
|
||||||
<version>1.8.3</version>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base.connecting.adapter</groupId>
|
|
||||||
<artifactId>amqp-adapter</artifactId>
|
|
||||||
<packaging>bundle</packaging>
|
|
||||||
|
|
||||||
<name>ENTAXY :: PLATFORM :: RUNTIME :: BASE :: CONNECTING :: ADAPTER :: AMQP ADAPTER</name>
|
|
||||||
<description>ENTAXY :: PLATFORM :: RUNTIME :: BASE :: CONNECTING :: ADAPTER :: AMQP ADAPTER</description>
|
|
||||||
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<bundle.osgi.dynamicimport.pkg>*</bundle.osgi.dynamicimport.pkg>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.felix</groupId>
|
|
||||||
<artifactId>maven-bundle-plugin</artifactId>
|
|
||||||
<extensions>true</extensions>
|
|
||||||
<configuration>
|
|
||||||
<instructions>
|
|
||||||
<Entaxy-Adapter>true</Entaxy-Adapter>
|
|
||||||
<Entaxy-Adapter-Class />
|
|
||||||
</instructions>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
@ -1,79 +0,0 @@
|
|||||||
{
|
|
||||||
"adapter": {
|
|
||||||
"id": "amqp.adapter.1",
|
|
||||||
"name": "amqpAdapter",
|
|
||||||
"description": "Messaging with AMQP protocol using Apache QPid Client.",
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"name": "destinationType",
|
|
||||||
"type": "String",
|
|
||||||
"default": "queue",
|
|
||||||
"property": false,
|
|
||||||
"option": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "destinationName",
|
|
||||||
"type": "String",
|
|
||||||
"property": false,
|
|
||||||
"option": false
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"name": "clientId",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "acknowledgementModeName",
|
|
||||||
"default": "AUTO_ACKNOWLEDGE",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "exchangePattern",
|
|
||||||
"type": "ExchangePattern",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "password",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "url",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "username",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"generators":[
|
|
||||||
{
|
|
||||||
"type": "pathParameter",
|
|
||||||
"generator": "",
|
|
||||||
"config": {
|
|
||||||
"expression": "${destinationType}:${destinationName}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "init",
|
|
||||||
"generator": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "ref",
|
|
||||||
"generator": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "from",
|
|
||||||
"generator": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "to",
|
|
||||||
"generator": ""
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,24 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint-node"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
amqp-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
[#include 'queryParameters.ftl']
|
|
||||||
<from uri="[=connection.name]:[=connection.pathParameter][=queryParameters]"/>
|
|
@ -1,68 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
amqp-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
[#assign factoryProperties = ["url", "username", "password"]]
|
|
||||||
[#function exceptFactoryProperties(propertyName)]
|
|
||||||
[#return !factoryProperties?seq_contains(propertyName)]
|
|
||||||
[/#function]
|
|
||||||
<?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"
|
|
||||||
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"
|
|
||||||
>
|
|
||||||
|
|
||||||
<cm:property-placeholder persistent-id="[=connection.configurationPid]"
|
|
||||||
update-strategy="reload">
|
|
||||||
[#if connection.properties??]
|
|
||||||
<cm:default-properties>
|
|
||||||
[#list connection.properties as key, value]
|
|
||||||
<cm:property name="[=connection.configurationPid].[=key]" value="[=value]"/>
|
|
||||||
[/#list]
|
|
||||||
</cm:default-properties>
|
|
||||||
[/#if]
|
|
||||||
</cm:property-placeholder>
|
|
||||||
|
|
||||||
<service interface="org.apache.camel.Component" ref="[=connection.name]">
|
|
||||||
<service-properties>
|
|
||||||
<entry key="connection.name" value="[=connection.name]"/>
|
|
||||||
</service-properties>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<bean id="[=connection.name]" class="org.apache.camel.component.amqp.AMQPComponent">
|
|
||||||
[#-- //TODO change template for property reference usage instead of text value --]
|
|
||||||
<property name="connectionFactory" ref="connectionFactory"/>
|
|
||||||
[#if connection.properties??]
|
|
||||||
[#list connection.properties?keys?filter(exceptFactoryProperties) as key]
|
|
||||||
<property name="[=key]" value="[='$']{[=connection.configurationPid].[=key]}"/>
|
|
||||||
[/#list]
|
|
||||||
[/#if]
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="connectionFactory" class="org.apache.qpid.jms.JmsConnectionFactory">
|
|
||||||
<argument index="0" value="[='$']{[=connection.configurationPid].username}"/>
|
|
||||||
<argument index="1" value="[='$']{[=connection.configurationPid].password}"/>
|
|
||||||
<argument index="2" value="[='$']{[=connection.configurationPid].url}"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
</blueprint>
|
|
@ -1,30 +0,0 @@
|
|||||||
[#ftl]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
amqp-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
[#assign queryParameters]
|
|
||||||
[#if connection.options??]
|
|
||||||
[@compress single_line=true]
|
|
||||||
?[#list connection.options as key, value][=key]=[=value][#sep]&[/#list]
|
|
||||||
[/@compress]
|
|
||||||
[/#if]
|
|
||||||
[/#assign]
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint-node"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
amqp-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
<reference id="[=connection.name]" interface="org.apache.camel.Component"
|
|
||||||
filter="(connection.name=[=connection.name])"/>
|
|
@ -1,24 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint-node"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
amqp-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
[#include 'queryParameters.ftl']
|
|
||||||
<to uri="[=connection.name]:[=connection.pathParameter][=queryParameters]"/>
|
|
@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
@ -1,38 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<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 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
||||||
|
|
||||||
<parent>
|
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base.connecting</groupId>
|
|
||||||
<artifactId>adapter</artifactId>
|
|
||||||
<version>1.8.3</version>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base.connecting.adapter</groupId>
|
|
||||||
<artifactId>artemis-adapter</artifactId>
|
|
||||||
<packaging>bundle</packaging>
|
|
||||||
|
|
||||||
<name>ENTAXY :: PLATFORM :: RUNTIME :: BASE :: CONNECTING :: ADAPTER :: ARTEMIS ADAPTER</name>
|
|
||||||
<description>ENTAXY :: PLATFORM :: RUNTIME :: BASE :: CONNECTING :: ADAPTER :: ARTEMIS ADAPTER</description>
|
|
||||||
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<bundle.osgi.dynamicimport.pkg>*</bundle.osgi.dynamicimport.pkg>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.felix</groupId>
|
|
||||||
<artifactId>maven-bundle-plugin</artifactId>
|
|
||||||
<extensions>true</extensions>
|
|
||||||
<configuration>
|
|
||||||
<instructions>
|
|
||||||
<Entaxy-Adapter>true</Entaxy-Adapter>
|
|
||||||
<Entaxy-Adapter-Class />
|
|
||||||
</instructions>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
@ -1,694 +0,0 @@
|
|||||||
{
|
|
||||||
"adapter": {
|
|
||||||
"id": "artemis.adapter.1",
|
|
||||||
"name": "artemisAdapter",
|
|
||||||
"description": "Artemis adapter to interact with queues and topics.",
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"name": "destinationType",
|
|
||||||
"type": "String",
|
|
||||||
"default": "queue",
|
|
||||||
"property": false,
|
|
||||||
"option": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "destinationName",
|
|
||||||
"type": "String",
|
|
||||||
"property": false,
|
|
||||||
"option": false
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"name": "clientId",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "connectionFactory",
|
|
||||||
"type": "ConnectionFactory",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "disableReplyTo",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "durableSubscriptionName",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "jmsMessageType",
|
|
||||||
"type": "JmsMessageType",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "replyTo",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "testConnectionOnStartup",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "acknowledgementModeName",
|
|
||||||
"default": "AUTO_ACKNOWLEDGE",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "artemisConsumerPriority",
|
|
||||||
"type": "int",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "asyncConsumer",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "autoStartup",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "cacheLevel",
|
|
||||||
"type": "int",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "cacheLevelName",
|
|
||||||
"default": "CACHE_AUTO",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "concurrentConsumers",
|
|
||||||
"type": "int",
|
|
||||||
"default": "1",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "maxConcurrentConsumers",
|
|
||||||
"type": "int",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "replyToDeliveryPersistent",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "selector",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "subscriptionDurable",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "subscriptionName",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "subscriptionShared",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "acceptMessagesWhileStopping",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "allowReplyManagerQuickStop",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "consumerType",
|
|
||||||
"type": "ConsumerType",
|
|
||||||
"default": "Default",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "defaultTaskExecutorType",
|
|
||||||
"type": "DefaultTaskExecutorType",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "eagerLoadingOfProperties",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "eagerPoisonBody",
|
|
||||||
"default": "Poison JMS message due to ${exception.message}",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "exceptionHandler",
|
|
||||||
"type": "ExceptionHandler",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "exchangePattern",
|
|
||||||
"type": "ExchangePattern",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "exposeListenerSession",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "replyToSameDestinationAllowed",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "taskExecutor",
|
|
||||||
"type": "TaskExecutor",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "deliveryDelay",
|
|
||||||
"type": "long",
|
|
||||||
"default": "-1",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "deliveryMode",
|
|
||||||
"type": "Integer",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "deliveryPersistent",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "explicitQosEnabled",
|
|
||||||
"type": "Boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "formatDateHeadersToIso8601",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "lazyStartProducer",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "preserveMessageQos",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "priority",
|
|
||||||
"type": "int",
|
|
||||||
"default": "4",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "replyToConcurrentConsumers",
|
|
||||||
"type": "int",
|
|
||||||
"default": "1",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "replyToMaxConcurrentConsumers",
|
|
||||||
"type": "int",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "replyToOnTimeoutMaxConcurrentConsumers",
|
|
||||||
"type": "int",
|
|
||||||
"default": "1",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "replyToOverride",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "replyToType",
|
|
||||||
"type": "ReplyToType",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "requestTimeout",
|
|
||||||
"type": "long",
|
|
||||||
"default": "20000",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "timeToLive",
|
|
||||||
"type": "long",
|
|
||||||
"default": "-1",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "allowAdditionalHeaders",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "allowNullBody",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "alwaysCopyMessage",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "correlationProperty",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "disableTimeToLive",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "forceSendOriginalMessage",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "includeSentJMSMessageID",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "replyToCacheLevelName",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "replyToDestinationSelectorName",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "streamMessageTypeEnabled",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "allowAutoWiredConnectionFactory",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"property": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "allowAutoWiredDestinationResolver",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"property": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "allowSerializedHeaders",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "artemisStreamingEnabled",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "asyncStartListener",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "asyncStopListener",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "autowiredEnabled",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"property": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "configuration",
|
|
||||||
"type": "JmsConfiguration",
|
|
||||||
"property": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "destinationResolver",
|
|
||||||
"type": "DestinationResolver",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "errorHandler",
|
|
||||||
"type": "ErrorHandler",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "exceptionListener",
|
|
||||||
"type": "ExceptionListener",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "headerFilterStrategy",
|
|
||||||
"type": "HeaderFilterStrategy",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "idleConsumerLimit",
|
|
||||||
"type": "int",
|
|
||||||
"default": "1",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "idleTaskExecutionLimit",
|
|
||||||
"type": "int",
|
|
||||||
"default": "1",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "includeAllJMSXProperties",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "jmsKeyFormatStrategy",
|
|
||||||
"type": "JmsKeyFormatStrategy",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "mapJmsMessage",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "maxMessagesPerTask",
|
|
||||||
"type": "int",
|
|
||||||
"default": "-1",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "messageConverter",
|
|
||||||
"type": "MessageConverter",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "messageCreatedStrategy",
|
|
||||||
"type": "MessageCreatedStrategy",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "messageIdEnabled",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "messageListenerContainerFactory",
|
|
||||||
"type": "MessageListenerContainerFactory",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "messageTimestampEnabled",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "pubSubNoLocal",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "queueBrowseStrategy",
|
|
||||||
"type": "QueueBrowseStrategy",
|
|
||||||
"property": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "receiveTimeout",
|
|
||||||
"type": "long",
|
|
||||||
"default": "1000",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "recoveryInterval",
|
|
||||||
"type": "long",
|
|
||||||
"default": "5000",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "requestTimeoutCheckerInterval",
|
|
||||||
"type": "long",
|
|
||||||
"default": "1000",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "synchronous",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "transferException",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "transferExchange",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "useMessageIDAsCorrelationID",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "waitForProvisionCorrelationToBeUpdatedCounter",
|
|
||||||
"type": "int",
|
|
||||||
"default": "50",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "waitForProvisionCorrelationToBeUpdatedThreadSleepingTime",
|
|
||||||
"type": "long",
|
|
||||||
"default": "100",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "errorHandlerLoggingLevel",
|
|
||||||
"type": "LoggingLevel",
|
|
||||||
"default": "WARN",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "errorHandlerLogStackTrace",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "password",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "username",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "transacted",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "transactedInOut",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "lazyCreateTransactionManager",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "transactionManager",
|
|
||||||
"type": "PlatformTransactionManager",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "transactionName",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "transactionTimeout",
|
|
||||||
"type": "int",
|
|
||||||
"default": "-1",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"generators":[
|
|
||||||
{
|
|
||||||
"type": "pathParameter",
|
|
||||||
"generator": "",
|
|
||||||
"config": {
|
|
||||||
"expression": "${destinationType}:${destinationName}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "init",
|
|
||||||
"generator": "",
|
|
||||||
"config": {
|
|
||||||
"param1": "value1",
|
|
||||||
"param2": 10,
|
|
||||||
"param3": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "ref",
|
|
||||||
"generator": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "from",
|
|
||||||
"generator": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "to",
|
|
||||||
"generator": ""
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,24 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint-node"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
artemis-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
[#include 'queryParameters.ftl']
|
|
||||||
<from uri="[=connection.name]:[=connection.pathParameter][=queryParameters]"/>
|
|
@ -1,76 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
artemis-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
[#assign factoryProperties = ["url", "username", "password", "maxConnections", "maxSessionsPerConnection"]]
|
|
||||||
[#function exceptFactoryProperties(propertyName)]
|
|
||||||
[#return !factoryProperties?seq_contains(propertyName)]
|
|
||||||
[/#function]
|
|
||||||
<?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"
|
|
||||||
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"
|
|
||||||
>
|
|
||||||
|
|
||||||
<cm:property-placeholder persistent-id="[=connection.configurationPid]"
|
|
||||||
update-strategy="reload">
|
|
||||||
[#if connection.properties??]
|
|
||||||
<cm:default-properties>
|
|
||||||
[#list connection.properties as key, value]
|
|
||||||
<cm:property name="[=connection.configurationPid].[=key]" value="[=value]"/>
|
|
||||||
[/#list]
|
|
||||||
</cm:default-properties>
|
|
||||||
[/#if]
|
|
||||||
</cm:property-placeholder>
|
|
||||||
|
|
||||||
<service interface="org.apache.camel.Component" ref="[=connection.name]">
|
|
||||||
<service-properties>
|
|
||||||
<entry key="connection.name" value="[=connection.name]"/>
|
|
||||||
</service-properties>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<bean id="[=connection.name]" class="org.apache.camel.component.jms.JmsComponent">
|
|
||||||
[#-- //TODO change template for property reference usage instead of text value --]
|
|
||||||
<property name="connectionFactory" ref="pooledConnectionFactory"/>
|
|
||||||
[#if connection.properties??]
|
|
||||||
[#list connection.properties?keys?filter(exceptFactoryProperties) as key]
|
|
||||||
<property name="[=key]" value="[='$']{[=connection.configurationPid].[=key]}"/>
|
|
||||||
[/#list]
|
|
||||||
[/#if]
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="pooledConnectionFactory" class="org.messaginghub.pooled.jms.JmsPoolConnectionFactory"
|
|
||||||
init-method="start" destroy-method="stop">
|
|
||||||
<property name="maxConnections" value="[='$']{[=connection.configurationPid].maxConnections}"/>
|
|
||||||
<property name="maxSessionsPerConnection"
|
|
||||||
value="[='$']{[=connection.configurationPid].maxSessionsPerConnection}"/>
|
|
||||||
<property name="connectionFactory" ref="artemisConnectionFactory"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="artemisConnectionFactory" class="org.apache.activemq.artemis.jms.client.ActiveMQJMSConnectionFactory">
|
|
||||||
<argument index="0" value="[='$']{[=connection.configurationPid].url}"/>
|
|
||||||
<argument index="1" value="[='$']{[=connection.configurationPid].username}"/>
|
|
||||||
<argument index="2" value="[='$']{[=connection.configurationPid].password}"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
</blueprint>
|
|
@ -1,29 +0,0 @@
|
|||||||
[#ftl]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
artemis-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
[#assign queryParameters]
|
|
||||||
[#if connection.options??]
|
|
||||||
[@compress single_line=true]
|
|
||||||
?[#list connection.options as key, value][=key]=[=value][#sep]&[/#list]
|
|
||||||
[/@compress]
|
|
||||||
[/#if]
|
|
||||||
[/#assign]
|
|
@ -1,24 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint-node"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
artemis-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
<reference id="[=connection.name]" interface="org.apache.camel.Component"
|
|
||||||
filter="(connection.name=[=connection.name])"/>
|
|
@ -1,24 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint-node"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
artemis-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
[#include 'queryParameters.ftl']
|
|
||||||
<to uri="[=connection.name]:[=connection.pathParameter][=queryParameters]"/>
|
|
@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
@ -1,38 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<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 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
||||||
|
|
||||||
<parent>
|
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base.connecting</groupId>
|
|
||||||
<artifactId>adapter</artifactId>
|
|
||||||
<version>1.8.3</version>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base.connecting.adapter</groupId>
|
|
||||||
<artifactId>artemis-amqp-adapter</artifactId>
|
|
||||||
<packaging>bundle</packaging>
|
|
||||||
|
|
||||||
<name>ENTAXY :: PLATFORM :: RUNTIME :: BASE :: CONNECTING :: ADAPTER :: ARTEMIS AMQP ADAPTER</name>
|
|
||||||
<description>ENTAXY :: PLATFORM :: RUNTIME :: BASE :: CONNECTING :: ADAPTER :: ARTEMIS AMQP ADAPTER</description>
|
|
||||||
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<bundle.osgi.dynamicimport.pkg>*</bundle.osgi.dynamicimport.pkg>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.felix</groupId>
|
|
||||||
<artifactId>maven-bundle-plugin</artifactId>
|
|
||||||
<extensions>true</extensions>
|
|
||||||
<configuration>
|
|
||||||
<instructions>
|
|
||||||
<Entaxy-Adapter>true</Entaxy-Adapter>
|
|
||||||
<Entaxy-Adapter-Class />
|
|
||||||
</instructions>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
@ -1,79 +0,0 @@
|
|||||||
{
|
|
||||||
"adapter": {
|
|
||||||
"id": "artemis.amqp.adapter.1",
|
|
||||||
"name": "artemisAmqpAdapter",
|
|
||||||
"description": "Messaging with AMQP protocol using Apache QPid Client.",
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"name": "destinationType",
|
|
||||||
"type": "String",
|
|
||||||
"default": "queue",
|
|
||||||
"property": false,
|
|
||||||
"option": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "destinationName",
|
|
||||||
"type": "String",
|
|
||||||
"property": false,
|
|
||||||
"option": false
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"name": "clientId",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "acknowledgementModeName",
|
|
||||||
"default": "AUTO_ACKNOWLEDGE",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "exchangePattern",
|
|
||||||
"type": "ExchangePattern",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "password",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "url",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "username",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"generators":[
|
|
||||||
{
|
|
||||||
"type": "pathParameter",
|
|
||||||
"generator": "",
|
|
||||||
"config": {
|
|
||||||
"expression": "${destinationType}:${destinationName}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "init",
|
|
||||||
"generator": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "ref",
|
|
||||||
"generator": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "from",
|
|
||||||
"generator": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "to",
|
|
||||||
"generator": ""
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,24 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint-node"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
artemis-amqp-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
[#include 'queryParameters.ftl']
|
|
||||||
<from uri="[=connection.name]:[=connection.pathParameter][=queryParameters]"/>
|
|
@ -1,68 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
artemis-amqp-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
[#assign factoryProperties = ["url", "username", "password"]]
|
|
||||||
[#function exceptFactoryProperties(propertyName)]
|
|
||||||
[#return !factoryProperties?seq_contains(propertyName)]
|
|
||||||
[/#function]
|
|
||||||
<?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"
|
|
||||||
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"
|
|
||||||
>
|
|
||||||
|
|
||||||
<cm:property-placeholder persistent-id="[=connection.configurationPid]"
|
|
||||||
update-strategy="reload">
|
|
||||||
[#if connection.properties??]
|
|
||||||
<cm:default-properties>
|
|
||||||
[#list connection.properties as key, value]
|
|
||||||
<cm:property name="[=connection.configurationPid].[=key]" value="[=value]"/>
|
|
||||||
[/#list]
|
|
||||||
</cm:default-properties>
|
|
||||||
[/#if]
|
|
||||||
</cm:property-placeholder>
|
|
||||||
|
|
||||||
<service interface="org.apache.camel.Component" ref="[=connection.name]">
|
|
||||||
<service-properties>
|
|
||||||
<entry key="connection.name" value="[=connection.name]"/>
|
|
||||||
</service-properties>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<bean id="[=connection.name]" class="org.apache.camel.component.amqp.AMQPComponent">
|
|
||||||
[#-- //TODO change template for property reference usage instead of text value --]
|
|
||||||
<property name="connectionFactory" ref="connectionFactory"/>
|
|
||||||
[#if connection.properties??]
|
|
||||||
[#list connection.properties?keys?filter(exceptFactoryProperties) as key]
|
|
||||||
<property name="[=key]" value="[='$']{[=connection.configurationPid].[=key]}"/>
|
|
||||||
[/#list]
|
|
||||||
[/#if]
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="connectionFactory" class="org.apache.qpid.jms.JmsConnectionFactory">
|
|
||||||
<argument index="0" value="[='$']{[=connection.configurationPid].username}"/>
|
|
||||||
<argument index="1" value="[='$']{[=connection.configurationPid].password}"/>
|
|
||||||
<argument index="2" value="[='$']{[=connection.configurationPid].url}"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
</blueprint>
|
|
@ -1,30 +0,0 @@
|
|||||||
[#ftl]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
artemis-amqp-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
[#assign queryParameters]
|
|
||||||
[#if connection.options??]
|
|
||||||
[@compress single_line=true]
|
|
||||||
?[#list connection.options as key, value][=key]=[=value][#sep]&[/#list]
|
|
||||||
[/@compress]
|
|
||||||
[/#if]
|
|
||||||
[/#assign]
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint-node"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
artemis-amqp-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
<reference id="[=connection.name]" interface="org.apache.camel.Component"
|
|
||||||
filter="(connection.name=[=connection.name])"/>
|
|
@ -1,24 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint-node"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
artemis-amqp-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
[#include 'queryParameters.ftl']
|
|
||||||
<to uri="[=connection.name]:[=connection.pathParameter][=queryParameters]"/>
|
|
@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
@ -1,61 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<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 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
||||||
|
|
||||||
<parent>
|
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base.connecting</groupId>
|
|
||||||
<artifactId>adapter</artifactId>
|
|
||||||
<version>1.8.3</version>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base.connecting.adapter</groupId>
|
|
||||||
<artifactId>file-adapter</artifactId>
|
|
||||||
<packaging>bundle</packaging>
|
|
||||||
|
|
||||||
<name>ENTAXY :: PLATFORM :: RUNTIME :: BASE :: CONNECTING :: ADAPTER :: FILE ADAPTER</name>
|
|
||||||
<description>ENTAXY :: PLATFORM :: RUNTIME :: BASE :: CONNECTING :: ADAPTER :: FILE ADAPTER</description>
|
|
||||||
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<bundle.osgi.dynamicimport.pkg>*</bundle.osgi.dynamicimport.pkg>
|
|
||||||
<bundle.osgi.export.pkg>ru.entaxy.platform.adapter.file</bundle.osgi.export.pkg>
|
|
||||||
<bundle.osgi.private.pkg>template,
|
|
||||||
ru.entaxy.adapter</bundle.osgi.private.pkg>
|
|
||||||
<!-- <bundle.osgi.private.pkg>ru.entaxy.adapter</bundle.osgi.private.pkg>-->
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.felix</groupId>
|
|
||||||
<artifactId>maven-bundle-plugin</artifactId>
|
|
||||||
<extensions>true</extensions>
|
|
||||||
<configuration>
|
|
||||||
<instructions>
|
|
||||||
<!-- Entaxy-Adapter>true</Entaxy-Adapter>
|
|
||||||
<Entaxy-Adapter-Class / -->
|
|
||||||
<Entaxy-Factory-Provider>true</Entaxy-Factory-Provider>
|
|
||||||
<Entaxy-Template-Provider>true</Entaxy-Template-Provider>
|
|
||||||
</instructions>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.camel</groupId>
|
|
||||||
<artifactId>camel-file</artifactId>
|
|
||||||
<version>${camel.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.camel</groupId>
|
|
||||||
<artifactId>camel-util</artifactId>
|
|
||||||
<version>${camel.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base</groupId>
|
|
||||||
<artifactId>base-support</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</project>
|
|
@ -1,69 +0,0 @@
|
|||||||
/*-
|
|
||||||
* ~~~~~~licensing~~~~~~
|
|
||||||
* file-adapter
|
|
||||||
* ==========
|
|
||||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
* ==========
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
* ~~~~~~/licensing~~~~~~
|
|
||||||
*/
|
|
||||||
package ru.entaxy.platform.adapter.file;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import org.apache.camel.component.file.FileComponent;
|
|
||||||
import org.apache.camel.component.file.GenericFileEndpoint;
|
|
||||||
import org.apache.camel.util.StringHelper;
|
|
||||||
|
|
||||||
import ru.entaxy.platform.base.support.CommonUtils;
|
|
||||||
|
|
||||||
public class ExtendedFileComponent extends FileComponent {
|
|
||||||
|
|
||||||
protected String rootDirectory = "";
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected GenericFileEndpoint<File> buildFileEndpoint(String uri, String remaining, Map<String, Object> parameters)
|
|
||||||
throws Exception {
|
|
||||||
|
|
||||||
// copied from parent
|
|
||||||
if (StringHelper.hasStartToken(remaining, "simple")) {
|
|
||||||
throw new IllegalArgumentException("Invalid directory: " + remaining + ". Dynamic expressions with ${ } placeholders is not allowed."
|
|
||||||
+ " Use the fileName option to set the dynamic expression.");
|
|
||||||
}
|
|
||||||
|
|
||||||
String current = remaining;
|
|
||||||
if (CommonUtils.isValid(rootDirectory)) {
|
|
||||||
current = rootDirectory;
|
|
||||||
if (CommonUtils.isValid(remaining) && !".".equals(remaining)) {
|
|
||||||
if (!current.endsWith("/"))
|
|
||||||
current += "/";
|
|
||||||
if (remaining.startsWith("/"))
|
|
||||||
current += remaining.substring(1);
|
|
||||||
else
|
|
||||||
current += remaining;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
log.debug("CREATING ENDPOINT FOR [{}]", current);
|
|
||||||
return super.buildFileEndpoint(uri, current, parameters);
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRootDirectory() {
|
|
||||||
return rootDirectory;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRootDirectory(String rootDirectory) {
|
|
||||||
this.rootDirectory = rootDirectory;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,540 +0,0 @@
|
|||||||
{
|
|
||||||
"adapter": {
|
|
||||||
"id": "file.adapter.1",
|
|
||||||
"name": "fileAdapter",
|
|
||||||
"description": "File adapter to interact with FS.",
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"name": "directoryName",
|
|
||||||
"type": "File",
|
|
||||||
"default": "./default-directory/",
|
|
||||||
"property": false,
|
|
||||||
"option": false
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"name": "bridgeErrorHandler",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "lazyStartProducer",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"property": true,
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "autowiredEnabled",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"property": true,
|
|
||||||
"option": false
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"name": "charset",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "doneFileName",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "fileName",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "delete",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "moveFailed",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "noop",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "preMove",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "preSort",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "recursive",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "sendEmptyMessageWhenIdle",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "directoryMustExist",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "exceptionHandler",
|
|
||||||
"type": "ExceptionHandler",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "exchangePattern",
|
|
||||||
"type": "ExchangePattern",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "extendedAttributes",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "inProgressRepository",
|
|
||||||
"type": "IdempotentRepository",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IdempotentRepository",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "onCompletionExceptionHandler",
|
|
||||||
"type": "ExceptionHandler",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "pollStrategy",
|
|
||||||
"type": "PollingConsumerPollStrategy",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "probeContentType",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "processStrategy",
|
|
||||||
"type": "GenericFileProcessStrategy",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "startingDirectoryMustExist",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "startingDirectoryMustHaveAccess",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "appendChars",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "fileExist",
|
|
||||||
"type": "GenericFileExist",
|
|
||||||
"default": "Override",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "flatten",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "jailStartingDirectory",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "moveExisting",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "tempFileName",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "tempPrefix",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "allowNullBody",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "chmod",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "chmodDirectory",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "eagerDeleteTargetFile",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "forceWrites",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "keepLastModified",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "moveExistingFileStrategy",
|
|
||||||
"type": "FileMoveExistingStrategy",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "autoCreate",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "bufferSize",
|
|
||||||
"type": "int",
|
|
||||||
"default": "131072",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "copyAndDeleteOnRenameFail",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "renameUsingCopy",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "synchronous",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "antExclude",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "antFilterCaseSensitive",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "antInclude",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "eagerMaxMessagesPerPoll",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "exclude",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "excludeExt",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "filter",
|
|
||||||
"type": "GenericFileFilter",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "filterDirectory",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "filterFile",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "idempotent",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "idempotentKey",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "idempotentRepository",
|
|
||||||
"type": "IdempotentRepository",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "include",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "includeExt",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "maxDepth",
|
|
||||||
"type": "int",
|
|
||||||
"default": "2147483647",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "maxMessagesPerPoll",
|
|
||||||
"type": "int",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "minDepth",
|
|
||||||
"type": "int",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "move",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "exclusiveReadLockStrategy",
|
|
||||||
"type": "GenericFileExclusiveReadLockStrategy",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "readLock",
|
|
||||||
"default": "none",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "readLockCheckInterval",
|
|
||||||
"type": "long",
|
|
||||||
"default": "1000",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "readLockDeleteOrphanLockFiles",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "readLockIdempotentReleaseAsync",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "readLockIdempotentReleaseAsyncPoolSize",
|
|
||||||
"type": "int",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "readLockIdempotentReleaseDelay",
|
|
||||||
"type": "int",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "readLockIdempotentReleaseExecutorService",
|
|
||||||
"type": "ScheduledExecutorService",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "readLockLoggingLevel",
|
|
||||||
"type": "LoggingLevel",
|
|
||||||
"default": "DEBUG",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "readLockMarkerFile",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "readLockMinAge",
|
|
||||||
"type": "long",
|
|
||||||
"default": "0",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "readLockMinLength",
|
|
||||||
"type": "long",
|
|
||||||
"default": "1",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "readLockRemoveOnCommit",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "readLockRemoveOnRollback",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "readLockTimeout",
|
|
||||||
"type": "long",
|
|
||||||
"default": "10000",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "backoffErrorThreshold",
|
|
||||||
"type": "int",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "backoffIdleThreshold",
|
|
||||||
"type": "int",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "backoffMultiplier",
|
|
||||||
"type": "int",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "delay",
|
|
||||||
"type": "long",
|
|
||||||
"default": "500",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "greedy",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "initialDelay",
|
|
||||||
"type": "long",
|
|
||||||
"default": "1000",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "repeatCount",
|
|
||||||
"type": "long",
|
|
||||||
"default": "0",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "runLoggingLevel",
|
|
||||||
"type": "LoggingLevel",
|
|
||||||
"default": "TRACE",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "scheduledExecutorService",
|
|
||||||
"type": "ScheduledExecutorService",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "scheduler",
|
|
||||||
"type": "Object",
|
|
||||||
"default": "none",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "schedulerProperties",
|
|
||||||
"type": "Map",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "startScheduler",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "timeUnit",
|
|
||||||
"type": "TimeUnit",
|
|
||||||
"default": "MILLISECONDS",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "useFixedDelay",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "true",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "shuffle",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": "false",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "sortBy",
|
|
||||||
"option": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "sorter",
|
|
||||||
"type": "Comparator",
|
|
||||||
"option": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"generators":[
|
|
||||||
{
|
|
||||||
"type": "pathParameter",
|
|
||||||
"generator": "",
|
|
||||||
"config": {
|
|
||||||
"expression": "${directoryName}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "init",
|
|
||||||
"generator": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "ref",
|
|
||||||
"generator": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "from",
|
|
||||||
"generator": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "to",
|
|
||||||
"generator": ""
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
@ -1,70 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
file-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
<?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"
|
|
||||||
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"
|
|
||||||
>
|
|
||||||
|
|
||||||
<service interface="org.apache.camel.Component" ref="[=objectId]">
|
|
||||||
<service-properties>
|
|
||||||
<entry key="connection.name" value="[=objectId]"/>
|
|
||||||
</service-properties>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
[#if properties??]
|
|
||||||
[#if properties.ext_createResourceProvider??]
|
|
||||||
[#if properties.ext_createResourceProvider]
|
|
||||||
<!-- RESOURCE PROVIDER BEAN -->
|
|
||||||
<bean id="[=objectId].resourceProvider" class="ru.entaxy.esb.resources.provider.FileResourceProvider">
|
|
||||||
<property name="protocol" value="[=objectId]" />
|
|
||||||
<property name="rootDirectory" value="[=properties.rootDirectory]" />
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<service interface="ru.entaxy.esb.resources.EntaxyResourceProvider" ref="[=objectId].resourceProvider">
|
|
||||||
<service-properties>
|
|
||||||
<entry key="connection.name" value="[=objectId]"/>
|
|
||||||
<entry key="protocol" value="[=objectId]"/>
|
|
||||||
</service-properties>
|
|
||||||
</service>
|
|
||||||
[/#if]
|
|
||||||
[/#if]
|
|
||||||
[/#if]
|
|
||||||
|
|
||||||
<bean id="[=objectId]" class="ru.entaxy.platform.adapter.file.ExtendedFileComponent">
|
|
||||||
[#if properties??]
|
|
||||||
[#list properties as key, value]
|
|
||||||
[#if !key?starts_with("##") && !key?starts_with("__") && !key?starts_with("ext_")] [#-- we skip additional properties --]
|
|
||||||
[#if key?starts_with("file_")] [#-- we add parent component properties --]
|
|
||||||
<property name="[=key[5..]]" value="[=value]"/>
|
|
||||||
[#else]
|
|
||||||
<property name="[=key]" value="[=value]"/>
|
|
||||||
[/#if]
|
|
||||||
[/#if]
|
|
||||||
[/#list]
|
|
||||||
[/#if]
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
</blueprint>
|
|
@ -1,61 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint.fragment"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
file-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
|
|
||||||
<!-- <service interface="org.apache.camel.Component" ref="[=objectId]">
|
|
||||||
<service-properties>
|
|
||||||
<entry key="connection.name" value="[=objectId]"/>
|
|
||||||
</service-properties>
|
|
||||||
</service> -->
|
|
||||||
|
|
||||||
[#if properties??]
|
|
||||||
[#if properties.ext_createResourceProvider??]
|
|
||||||
[#if properties.ext_createResourceProvider]
|
|
||||||
<!-- RESOURCE PROVIDER BEAN -->
|
|
||||||
<bean id="[=objectId].resourceProvider" class="ru.entaxy.esb.resources.provider.FileResourceProvider">
|
|
||||||
<property name="protocol" value="[=objectId]" />
|
|
||||||
<property name="rootDirectory" value="[=properties.rootDirectory]" />
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<service interface="ru.entaxy.esb.resources.EntaxyResourceProvider" ref="[=objectId].resourceProvider">
|
|
||||||
<service-properties>
|
|
||||||
<entry key="connection.name" value="[=objectId]"/>
|
|
||||||
<entry key="protocol" value="[=objectId]"/>
|
|
||||||
</service-properties>
|
|
||||||
</service>
|
|
||||||
[/#if]
|
|
||||||
[/#if]
|
|
||||||
[/#if]
|
|
||||||
|
|
||||||
<bean id="[=objectId]" class="ru.entaxy.platform.adapter.file.ExtendedFileComponent">
|
|
||||||
[#if properties??]
|
|
||||||
[#list properties as key, value]
|
|
||||||
[#if !key?starts_with("##") && !key?starts_with("__") && !key?starts_with("ext_")] [#-- we skip additional properties --]
|
|
||||||
[#if key?starts_with("file_")] [#-- we add parent component properties --]
|
|
||||||
<property name="[=key[5..]]" value="[=value]"/>
|
|
||||||
[#else]
|
|
||||||
<property name="[=key]" value="[=value]"/>
|
|
||||||
[/#if]
|
|
||||||
[/#if]
|
|
||||||
[/#list]
|
|
||||||
[/#if]
|
|
||||||
</bean>
|
|
@ -1,24 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint.fragment"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
file-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
<reference id="[=objectId]" interface="org.apache.camel.Component"
|
|
||||||
filter="(connection.name=[=objectId])"/>
|
|
@ -1,24 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint-node"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
file-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
[#include 'queryParameters.ftl']
|
|
||||||
<from uri="[=connection.name]:[=connection.pathParameter][=queryParameters]"/>
|
|
@ -1,56 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
file-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
<?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"
|
|
||||||
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"
|
|
||||||
>
|
|
||||||
|
|
||||||
<cm:property-placeholder persistent-id="[=connection.configurationPid]"
|
|
||||||
update-strategy="reload">
|
|
||||||
[#if connection.properties??]
|
|
||||||
<cm:default-properties>
|
|
||||||
[#list connection.properties as key, value]
|
|
||||||
<cm:property name="[=connection.configurationPid].[=key]" value="[=value]"/>
|
|
||||||
[/#list]
|
|
||||||
</cm:default-properties>
|
|
||||||
[/#if]
|
|
||||||
</cm:property-placeholder>
|
|
||||||
|
|
||||||
<service interface="org.apache.camel.Component" ref="[=connection.name]">
|
|
||||||
<service-properties>
|
|
||||||
<entry key="connection.name" value="[=connection.name]"/>
|
|
||||||
</service-properties>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<bean id="[=connection.name]" class="ru.entaxy.platform.adapter.file.ExtendedFileComponent">
|
|
||||||
[#if connection.properties??]
|
|
||||||
[#list connection.properties as key, value]
|
|
||||||
<property name="[=key]" value="[='$']{[=connection.configurationPid].[=key]}"/>
|
|
||||||
[/#list]
|
|
||||||
[/#if]
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
</blueprint>
|
|
@ -1,29 +0,0 @@
|
|||||||
[#ftl]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
file-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
[#assign queryParameters]
|
|
||||||
[#if connection.options??]
|
|
||||||
[@compress single_line=true]
|
|
||||||
?[#list connection.options as key, value][=key]=[=value][#sep]&[/#list]
|
|
||||||
[/@compress]
|
|
||||||
[/#if]
|
|
||||||
[/#assign]
|
|
@ -1,24 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint-node"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
file-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
<reference id="[=connection.name]" interface="org.apache.camel.Component"
|
|
||||||
filter="(connection.name=[=connection.name])"/>
|
|
@ -1,24 +0,0 @@
|
|||||||
[#ftl attributes={"generated.type":"blueprint-node"}]
|
|
||||||
[#--
|
|
||||||
|
|
||||||
~~~~~~licensing~~~~~~
|
|
||||||
file-adapter
|
|
||||||
==========
|
|
||||||
Copyright (C) 2020 - 2023 EmDev LLC
|
|
||||||
==========
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
~~~~~~/licensing~~~~~~
|
|
||||||
|
|
||||||
--]
|
|
||||||
[#include 'queryParameters.ftl']
|
|
||||||
<to uri="[=connection.name]:[=connection.pathParameter][=queryParameters]"/>
|
|
@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
@ -1,47 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<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 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
||||||
|
|
||||||
<parent>
|
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base.connecting</groupId>
|
|
||||||
<artifactId>adapter</artifactId>
|
|
||||||
<version>1.8.3</version>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>ru.entaxy.esb.platform.runtime.base.connecting.adapter</groupId>
|
|
||||||
<artifactId>h2-adapter</artifactId>
|
|
||||||
<packaging>bundle</packaging>
|
|
||||||
|
|
||||||
<name>ENTAXY :: PLATFORM :: RUNTIME :: BASE :: CONNECTING :: ADAPTER :: H2 ADAPTER</name>
|
|
||||||
<description>ENTAXY :: PLATFORM :: RUNTIME :: BASE :: CONNECTING :: ADAPTER :: H2 ADAPTER</description>
|
|
||||||
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<bundle.osgi.dynamicimport.pkg>*</bundle.osgi.dynamicimport.pkg>
|
|
||||||
<h2.version>1.4.199</h2.version>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.felix</groupId>
|
|
||||||
<artifactId>maven-bundle-plugin</artifactId>
|
|
||||||
<extensions>true</extensions>
|
|
||||||
<configuration>
|
|
||||||
<instructions>
|
|
||||||
<Entaxy-Adapter>true</Entaxy-Adapter>
|
|
||||||
<Entaxy-Adapter-Class />
|
|
||||||
</instructions>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.camel</groupId>
|
|
||||||
<artifactId>camel-jdbc</artifactId>
|
|
||||||
<version>${camel.version}</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</project>
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user