Commit Graph

135 Commits (5.0.x)

Author SHA1 Message Date
openhab-bot 09f67680be [unleash-maven-plugin] Preparation for next development cycle. 2025-08-19 14:26:11 +00:00
Kai Kreuzer f255cf6400 Bump version to 5.0.1-SNAPSHOT 2025-07-21 22:25:06 +02:00
openhab-bot d2b87e6fe6 Preparation for tag creation (Tag name: '5.0.0'). 2025-07-21 07:16:58 +00:00
openhab-bot b1a68d0012
New Crowdin updates (#4901)
* New translations audio.properties (Portuguese)
* New translations audio.properties (Portuguese, Brazilian)
* New translations automation.properties (German)
* New translations chart.properties (German)
* New translations defaultsystemchannels.properties (German)
* New translations ephemeris.properties (Portuguese)
* New translations ephemeris.properties (Portuguese, Brazilian)
* New translations firmware.properties (Portuguese)
* New translations firmware.properties (Portuguese, Brazilian)
* New translations inbox.properties (Portuguese)
* New translations inbox.properties (Portuguese, Brazilian)
* New translations jsonstorage.properties (Portuguese)
* New translations jsonstorage.properties (Portuguese, Brazilian)
* New translations jsr223.properties (French)
* New translations jsr223.properties (German)
* New translations languagesupport.properties (Portuguese)
* New translations languagesupport.properties (Portuguese, Brazilian)
* New translations messages.properties (German)
* New translations network.properties (Portuguese)
* New translations network.properties (Portuguese, Brazilian)
* New translations persistence.properties (Portuguese, Brazilian)
* New translations scriptprofile.properties (German)
* New translations sitemap.properties (Portuguese)
* New translations sitemap.properties (Portuguese, Brazilian)
* New translations systemprofiles.properties (German)
* New translations tags.properties (French)
* New translations tags.properties (German)
* New translations units.properties (German)
* New translations units.properties (Portuguese, Brazilian)
* New translations validation.properties (German)
* New translations voice.properties (German)
2025-07-15 15:22:05 +02:00
Florian Hotze 80d20d1f3e
[automation] Extend provider script extension for metadata & ItemChannelLinks (#4865)
* [automation] Move provider script extension to a new bundle
* [automation] Add ProviderRegistryDelegate interface and improve ProviderScriptExtension code
* [automation] Add ScriptedMetadataProvider & ProviderMetadataRegistryDelegate
* Rename ProviderRegistryDelegate.java to ProviderRegistry.java
* [automation] Add ScriptedItemChannelLinkProvider & ProviderItemChannelLinkRegistry
* [automation] Implement ProviderItemChannelLinkRegistry::purge

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-06-29 11:32:10 +02:00
openhab-bot 35dc698215
New Crowdin updates (#4858)
* New translations tags.properties (Danish)
* New translations jsr223.properties (Spanish)
* New translations tags.properties (Hebrew)
* New translations automation.properties (Italian)
* New translations jsr223.properties (Hebrew)
* New translations firmware.properties (Portuguese, Brazilian)
* New translations languagesupport.properties (Portuguese)
* New translations languagesupport.properties (Portuguese, Brazilian)
* New translations audio.properties (Portuguese, Brazilian)
* New translations inbox.properties (Portuguese, Brazilian)
* New translations ephemeris.properties (Portuguese, Brazilian)
* New translations jsonstorage.properties (Portuguese, Brazilian)
* New translations network.properties (Portuguese, Brazilian)
* New translations sitemap.properties (Portuguese, Brazilian)
2025-06-21 08:56:43 +02:00
Holger Friedrich 6eb7d0c9a6
Clean up POM dependencies (#4855)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-06-18 20:23:10 +02:00
Florian Hotze 7b56bdbaf2
Fix itests after #4513 (#4856)
This change fixes the problem by explicitly retrieving the GenericItemProvider.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-06-17 22:45:45 +02:00
jimtng 98e3b13c71
Add ValueCache.compute method (#4704)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-06-14 14:52:34 +02:00
Florian Hotze f695acfc4c
[automation] Add provider script extension (#4513)
* [automation] Add provider script extension

This new script extension allow scripts to provide openHAB entities like Items without needing to manually handle the lifecycle of those.
First, we will only provide an itemRegistry, but this can easily be extended later.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-06-14 14:46:59 +02:00
Nadahar 5b12280f5b
Regenerate rules from templates (#4718)
* Rule template regeneration support

Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-05-26 22:53:17 +02:00
openhab-bot e9700f85ec
New Crowdin updates (#4787)
* New translations messages.properties (Italian)

* New translations validation.properties (Portuguese)

* New translations firmware.properties (Portuguese)

* New translations systemprofiles.properties (Portuguese)

* New translations audio.properties (Portuguese)

* New translations inbox.properties (Portuguese)

* New translations ephemeris.properties (Portuguese)

* New translations restauth.properties (Portuguese)

* New translations addons.properties (Portuguese)

* New translations jsonstorage.properties (Portuguese)

* New translations chart.properties (Portuguese)

* New translations i18n.properties (Portuguese)

* New translations network.properties (Portuguese)

* New translations sitemap.properties (Portuguese)

* New translations marketplace.properties (Portuguese)

* New translations systemthingstatusinfos.properties (Portuguese)

* New translations units.properties (Portuguese)

* New translations jsr223.properties (Portuguese)

* New translations automation.properties (Hebrew)

* New translations tags.properties (Hebrew)

* New translations messages.properties (Hebrew)

* New translations firmware.properties (Portuguese, Brazilian)

* New translations languagesupport.properties (Portuguese)

* New translations languagesupport.properties (Portuguese, Brazilian)

* New translations audio.properties (Portuguese, Brazilian)

* New translations inbox.properties (Portuguese, Brazilian)

* New translations ephemeris.properties (Portuguese, Brazilian)

* New translations jsonstorage.properties (Portuguese, Brazilian)

* New translations network.properties (Portuguese, Brazilian)

* New translations sitemap.properties (Portuguese, Brazilian)
2025-05-11 13:12:47 +02:00
jimtng c40c258e04
WatchService: use absolute path in processWatchEvent (#4796)
* WatchService: use absolute path in processWatchEvent

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>

* update interface and use a consistent name `fullPath`

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>

---------

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-05-10 16:13:03 +02:00
Wouter Born 6bf59605bd
Use Spotless sortpom plug-in (#4618)
This simplifies the sortpom configuration and also allows for checking and reformatting them using the spotless:check and spotless:apply Maven goals.

Signed-off-by: Wouter Born <github@maindrain.net>
2025-02-23 19:04:47 +01:00
Arne Seime fe9af132aa
Rule Template installation fixes (#4591)
* Fix file based rule templates
* Add YAML Template parser
* Refactor marketplace rule template parsing
* Prevent file system access for WatchService DELETE events

Trying to check if deleted files are hidden, are readable or are directories will result in IOExceptions on many file systems, so that no action will be taken for deletions.

Signed-off-by: Arne Seime <arne.seime@gmail.com>
2025-02-15 17:28:46 +01:00
Wouter Born f00c7700cb
Start license headers with `/*` instead of `/**` (#4544)
Prevents JavaDoc tooling issues because these tools check comments starting with `/**`.

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-07 21:48:56 +01:00
Wouter Born 979e4a7409
Update license headers to 2025 (#4532)
Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-01 16:40:04 +01:00
Wouter Born db72021460
Update Eclipse files (#4514)
Signed-off-by: Wouter Born <github@maindrain.net>
2024-12-24 07:02:47 +01:00
Holger Friedrich 8d837f9823
Prepare for OH 5.0.0 (#4496)
* Prepare for OH 5.0.0

* Switch to 5.0.0-SNAPSHOT
* Fix spotless after unleash
* resolve itest runbundles
* Fix linux-specific pom

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-15 18:49:23 +01:00
openhab-bot 0f2e56f39d [unleash-maven-plugin] Preparation for next development cycle. 2024-12-15 11:41:19 +00:00
openhab-bot 0c93cc0456
New Crowdin updates (#4480)
* New translations addons.properties (Catalan)
* New translations addons.properties (Czech)
* New translations audio.properties (Catalan)
* New translations automation.properties (Catalan)
* New translations automation.properties (Czech)
* New translations chart.properties (Catalan)
* New translations chart.properties (Czech)
* New translations defaultsystemchannels.properties (Catalan)
* New translations defaultsystemchannels.properties (Czech)
* New translations ephemeris.properties (Catalan)
* New translations firmware.properties (Catalan)
* New translations hli.properties (Catalan)
* New translations i18n.properties (Catalan)
* New translations inbox.properties (Catalan)
* New translations jsonstorage.properties (Catalan)
* New translations jsr223.properties (Catalan)
* New translations jsr223.properties (Czech)
* New translations languagesupport.properties (Catalan)
* New translations languagesupport.properties (Portuguese)
* New translations languagesupport.properties (Portuguese, Brazilian)
* New translations lsp.properties (Catalan)
* New translations magic.properties (Catalan)
* New translations marketplace.properties (Catalan)
* New translations messages.properties (Catalan)
* New translations network.properties (Catalan)
* New translations persistence.properties (Catalan)
* New translations restauth.properties (Catalan)
* New translations scriptprofile.properties (Catalan)
* New translations scriptprofile.properties (Czech)
* New translations sitemap.properties (Catalan)
* New translations systemprofiles.properties (Catalan)
* New translations systemprofiles.properties (Czech)
* New translations systemthingstatusinfos.properties (Catalan)
* New translations tags.properties (Catalan)
* New translations units.properties (Catalan)
* New translations units.properties (Czech)
* New translations validation.properties (Catalan)
* New translations validation.properties (Czech)
* New translations voice.properties (Catalan)
* New translations voice.properties (Czech)
2024-12-08 11:45:41 +01:00
Kai Kreuzer 21e605d212
Apply spotless after release, resolve bundles (#4301)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2024-07-07 23:22:27 +02:00
openhab-bot 07e23eac3c [unleash-maven-plugin] Preparation for next development cycle. 2024-07-07 16:05:56 +00:00
openhab-bot 1a33e23fef
New Crowdin updates (#4285)
* New translations validation.properties (Dutch)

* New translations addons.properties (Dutch)

* New translations voice.properties (Dutch)

* New translations automation.properties (Dutch)

* New translations scriptprofile.properties (Dutch)

* New translations units.properties (Dutch)

* New translations systemprofiles.properties (Dutch)

* New translations defaultsystemchannels.properties (Dutch)

* New translations chart.properties (Dutch)

* New translations magic.properties (Dutch)

* New translations jsr223.properties (Dutch)

* New translations languagesupport.properties (Portuguese)

* New translations languagesupport.properties (Portuguese, Brazilian)
2024-06-30 10:38:54 +02:00
openhab-bot 945900b52a
New Crowdin updates (#4243)
* New translations chart.properties (Hebrew)

* New translations voice.properties (Hebrew)

* New translations magic.properties (Hebrew)

* New translations jsr223.properties (Hebrew)

* New translations defaultsystemchannels.properties (Hebrew)

* New translations languagesupport.properties (Portuguese)

* New translations languagesupport.properties (Portuguese, Brazilian)
2024-05-23 15:39:11 +02:00
openhab-bot dcc3842386
New Crowdin updates (#4236)
* New translations addons.properties (Hungarian)

* New translations scriptprofile.properties (Hungarian)

* New translations systemprofiles.properties (Hungarian)

* New translations chart.properties (Hungarian)

* New translations voice.properties (Hungarian)

* New translations magic.properties (Hungarian)

* New translations jsr223.properties (Hungarian)

* New translations defaultsystemchannels.properties (Danish)
2024-05-22 21:27:54 +02:00
Holger Friedrich 352dbf2aaa
Update i18n property files (#4229)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-05-18 18:43:53 +02:00
Holger Friedrich 0db45fa168
Use flatMap to simplify map operations (#4190)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-20 19:15:06 +02:00
Wouter Born f4e83693fb
Simplify Map operations using computeIfAbsent (#4020)
If the specified key is not already associated with a value (or is mapped to null), the given mapping function computes the value.

Signed-off-by: Wouter Born <github@maindrain.net>
2024-02-06 20:34:05 +01:00
Wouter Born 2babea4c9a
Update license headers to 2024 (#4011)
Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-03 21:20:34 +01:00
Wouter Born 6fc7700ea6
Use protected modifier with constructor of abstract classes (#4010)
Abstract classes should not have public constructors.
Constructors of abstract classes can only be called in constructors of their subclasses.
So there is no point in making them public.
The protected modifier should be enough.

Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-03 16:17:14 +01:00
Wouter Born 81a91ee9ae
Simplify adding elements to Collections (#4006)
* Simplify adding elements to Collections

This optimizes and simplifies the code that adds elements to Collections.

Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-03 14:51:33 +01:00
Holger Friedrich 839ba1ab4c
Apply spotless after release, resolve bundles (#3953)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-22 23:14:28 +01:00
openhab-bot 3b279587b1 [unleash-maven-plugin] Preparation for next development cycle. 2023-12-22 11:48:43 +00:00
Holger Friedrich 9ad2fef549
Fix javadoc warnings (#3870)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-11-15 09:21:07 +01:00
Wouter Born 783c57cbb9
Use 'uid' instead of 'UID' as method parameters (#3840)
Using 'UID' is confusing as method parameter because it can be mistaken for some kind of constant while reading code.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-10-09 21:39:47 +02:00
Wouter Born e8e1c9fe73
Simplify code that creates List, Map and Set objects (#3836)
Simplifies the code by using List.of, List.copyOf etc. where possible which results in less code and imports.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-10-09 18:00:00 +02:00
Wouter Born c39d15ade6
Cleanup code (#3787)
This code cleanup fixes various warnings in Eclipse.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-08-30 22:50:17 +02:00
Kai Kreuzer 5692232e2b Apply spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-07-24 01:11:37 +02:00
openhab-bot fd93f0a766 [unleash-maven-plugin] Preparation for next development cycle. 2023-07-23 17:14:35 +00:00
Wouter Born 3c6d855d4b
Remove redundant public and abstract modifiers from interfaces (#3560)
* Remove redundant public modifiers from interfaces
* Remove redundant abstract modifiers from interfaces

Signed-off-by: Wouter Born <github@maindrain.net>
2023-04-20 20:22:58 +02:00
Holger Friedrich 769aa562a1
Code cleanup: Use Java 17 features (#3522)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-04-16 21:43:59 +02:00
J-N-K d557a64532
Fix AbstractDependencyTracker (#3510)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-04-01 14:15:01 +02:00
jimtng 1e55914e55
Improve AbstractScriptFileWatcher initialization order and file handling (#3451)
* Remove initialImport from the constructor of AbstractScriptFileWatcher
- Calling initialImport inside the constructor may cause an NPE in child class.
* Refactor processWatchEvent in AbstractScriptFileWatcher
- Remove directory deletion handling and adapt test to check
for file removals instead.
- Include hidden files in deletions in case they were previously
loaded while not hidden, set to hidden, and then deleted.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-03-18 09:15:20 +01:00
J-N-K c739c85208
Fix AbstractScriptFileWatcher for windows (#3388)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-02-20 16:20:04 +01:00
J-N-K c17481c2ac
Align AbstractScriptDependencyTracker with AbstractScriptFileWatcher (#3372)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-02-18 09:17:59 +01:00
J-N-K 35f7f3add1
Fix file-processing in AbstractScriptFileWatcher (#3369)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-02-14 20:38:37 +01:00
J-N-K 7f113c51bc
Refactor WatchService (#3004)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-02-12 14:12:22 +01:00
J-N-K da81c6a6be
Fix AbstractScriptFilewWatcherTest (#3342)
The test only succeeded due to bad timing.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-02-03 20:37:48 +01:00
J-N-K ecbb854e03
Refactor AbstractScriptFileWatcher (#3255)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-12 19:37:42 +01:00