Kai Kreuzer
0f134996f2
removed boot bundle ( #1559 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-07-24 13:11:56 +02:00
Paul Vogel
ed21001891
Cleanup tests: Simplify assertEquals with boolean to assertTrue or assertFalse ( #1567 )
...
Signed-off-by: Paul Vogel <pavog@users.noreply.github.com>
2020-07-23 22:19:00 +02:00
Kai Kreuzer
8218f44667
[cleanup] refactored Extension to Addon ( #1560 )
...
* refactored Extension to Addon
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-07-22 21:08:10 +02:00
Paul Vogel
27dcce5207
Replace for-loops and iterators with foreach-loops ( #1561 )
...
Signed-off-by: Paul Vogel <pavog@users.noreply.github.com>
2020-07-21 17:40:29 +02:00
Paul Vogel
a00cc871a9
Replace c-style array declaration with java-style array declaration ( #1556 )
...
Replaces the way an array is declared with the way "prefered for java", because the [] is part of the TYPE and not the NAME.
Signed-off-by: Paul Vogel <pavog@users.noreply.github.com>
2020-07-20 18:31:03 +02:00
Paul Vogel
d21d9b64e6
Remove unnecessary conversion to string ( #1557 )
...
We can remove the explicit conversion to the string, as this is done implicitly.
Signed-off-by: Paul Vogel <pavog@users.noreply.github.com>
2020-07-20 18:29:27 +02:00
Christoph Weitkamp
72c2ee78d1
Moved 'parseState()' method into 'GroupFunctionHelper' and apply only if needed ( #1534 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-07-09 23:25:15 +02:00
Hilbrand Bouwkamp
6c935985a6
Fix for cron scheduler handling sunday as number ( #1533 )
...
* Fix for cron scheduler handling sunday as number
Closes #1532
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2020-06-26 17:18:57 +02:00
Christoph Weitkamp
115b3e22f3
Use 'ZoneId.systemDefault()' instead of 'TimeZone.getDefault().toZoneId()' ( #1527 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-06-21 14:34:40 +02:00
Christoph Weitkamp
6deb3255ea
Apply TimeFormat for labels of Number:Time items ( #1470 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-06-18 22:25:10 +02:00
Christoph Weitkamp
68405036f1
Removed 'Calendar' leftovers ( #1522 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-06-14 17:13:28 +02:00
Kai Kreuzer
173c93081d
Replaced "classic" rule engine by a DSLRuleProvider for the NGRE ( #1451 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-06-14 10:36:25 +02:00
Christoph Weitkamp
1fddac192b
Removed deprecated contructors and methods ( #1500 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-06-13 21:01:06 +02:00
Hilbrand Bouwkamp
e84d01bafe
[core] Fix for handling inverted cron ranges ( #1519 )
...
* Fix for handling inverted cron ranges
This fix adds support for inverted cron ranged. For example SUN-WEN.
It also works all ranges and also with additional increments.
Closes #1516
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2020-06-09 12:32:26 +02:00
Christoph Weitkamp
370feb5404
Added few unit tests! ( #1518 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-06-08 21:26:49 +02:00
Kai Kreuzer
d265e16e67
[automation] Added group and system triggers to automation component ( #1509 )
...
* Added group and system triggers to automation component
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-06-04 07:24:42 +02:00
Chris Jackson
795a19249c
Ensure managed provider is unset by registered provider ( #1506 )
...
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
2020-06-01 01:28:25 +02:00
Christoph Weitkamp
907da5064c
Removed unused InstanceCreator implementation ( #1502 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-05-27 17:25:03 +02:00
Wouter Born
02b13f5263
Update maven-javadoc-plugin to 3.2.0 ( #1494 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2020-05-23 17:35:13 +02:00
Wouter Born
f3508e4775
Use constructor injection and update null annotations ( #1487 )
...
* Use constructor injection and update null annotations
Signed-off-by: Wouter Born <github@maindrain.net>
2020-05-20 17:29:18 +02:00
Christoph Weitkamp
178ffdf9c2
Removed some ESH leftovers ( #1468 )
...
* Removed ESH leftovers
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-05-11 08:41:12 +02:00
Wouter Born
61e17ce39e
Upgrade SAT and Spotless, apply Spotless and enable check ( #1446 )
...
* Update SAT and Spotless dependencies
* Apply Spotless and enable check
Signed-off-by: Wouter Born <github@maindrain.net>
2020-04-26 11:15:24 +02:00
Wouter Born
ed4b5ff94b
Reconfigure and apply Spotless ( #1442 )
...
Adds a configuration for feature.xml files which will be necessary for https://github.com/openhab/static-code-analysis/pull/375
Also applies the results of running Spotless
Signed-off-by: Wouter Born <github@maindrain.net>
2020-04-23 17:17:12 +02:00
Christoph Weitkamp
d371a34321
Removed dependency on 'org.apache.commons.lang' ( #1433 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-04-22 14:32:31 +02:00
Christoph Weitkamp
6b4e54ada3
Removed deprecated 'newItemBuilder' method ( #1429 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-04-19 14:51:21 +02:00
Wouter Born
92027ca922
Use .equals() on constants and literals to prevent NPEs ( #1420 )
...
* Use .equals() on constants and literals to prevent NPEs
Signed-off-by: Wouter Born <github@maindrain.net>
2020-04-16 07:40:49 +02:00
Wouter Born
6c85b1bccd
Add and fix more null annotations ( #1421 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2020-04-15 01:44:37 +02:00
Christoph Weitkamp
b770bb1b4a
Removed 'StateDescriptionProvider' interface ( #1413 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-04-14 21:15:29 +02:00
Wouter Born
fb7a7ac421
Add null annotations to providers and ThingManager ( #1412 )
...
* Add null annotations to providers and ThingManager
Signed-off-by: Wouter Born <github@maindrain.net>
2020-04-11 08:29:12 +02:00
J-N-K
70b9355d08
[uom] Fix concurrency issue in state update ( #1406 )
...
* Fix concurrency issue in state update
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2020-04-08 19:54:13 +02:00
Wouter Born
945afcdb1a
Add and fix more null annotations ( #1407 )
...
* Add and fix more null annotations
* Add more @NonNullByDefault and @Nullable annotations
* Remove unnecessary @NonNull annotations
* Fix a few other trivial SAT issues
* Add constructor injection for MDNSDiscoveryService
Signed-off-by: Wouter Born <github@maindrain.net>
2020-04-06 10:45:39 +02:00
Christoph Weitkamp
1981e548aa
[thing] Dynamic state/command provider should not return original description ( #1399 )
...
* Clarify return values for implementation
* Dynamic state/command provider should not return original descritpion
* Added ERROR log message
* Added integration test for CommandDescriptionProvider
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-04-06 08:49:26 +02:00
Christoph Weitkamp
3cb26ee28a
[storage] Improved JavaDoc ( #1409 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-04-06 08:48:20 +02:00
Christoph Weitkamp
259af7aaef
Fix java.lang.UnsupportedOperationException in StateDescriptionFragmentBuilder ( #1405 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-04-05 17:53:48 +02:00
Yannick Schaus
fe4e276b68
Implementation of a JWT-based OAuth2 flow for the admin API ( #1389 )
...
* Initial implementation of a JWT-based OAuth2 flow for the admin API
Implements #1388 .
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-03-23 22:36:11 +01:00
Christoph Weitkamp
a06eb598d7
[uom] Fixed intensity conversion from W/m² to µW/cm² ( #1394 )
...
* Fixed intensity conversion from W/m² to µW/cm²
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-03-22 12:03:01 +01:00
Kai Kreuzer
0182ce567d
fixed service pids ( #1382 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-03-01 16:40:01 +01:00
Christoph Weitkamp
4258d87d4a
Small improvements for SmartHomeUnits ( #1377 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-02-25 19:48:48 +01:00
pali
b15145a078
Added Bq/m³ and ppb units ( #1368 )
...
Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
2020-02-17 08:50:19 +01:00
Yannick Schaus
60e040c529
Metadata-based state & command description providers ( #1362 )
...
* Metadata-based state & command description providers
Implements #1185 .
These providers will look into item metadata, which
can be managed by UIs with the API, to set or override
the item's state description (pattern, options, read
only...) or command description.
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-02-15 18:08:42 +01:00
Yannick Schaus
eea31e536d
UI component registries initial implementation ( #1356 )
...
* UI component registries initial implementation
This is an initial implementation of #1355 .
It was simple enough to make to be proposed as
a PR already without waiting for remarks on the RFC.
The SitemapProvider for the `system:sitemap`
namespace as described in #1355 is not part of
this PR.
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-02-13 21:36:54 +01:00
Christoph Weitkamp
79523d3a99
Removed usage of org.apache.commons.lang.ArrayUtils ( #1357 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-02-07 13:42:18 +01:00
Nagy Attila Gábor
487db7e7ea
Added and fixed units for reactive and apparent power ( #1347 )
...
* var and varh were missing
* var is basically an alternate form of WATT
* kvarh was incorrectly marked as a division between kvar and hour
* Volt-Ampere added to the units
This unit for apparent power in an electrical circuit. Useful for smart meters and solar inverters.
Signed-off-by: Nagy Attila Gabor <mrbig@sneaker.hu>
2020-02-01 21:47:19 +01:00
Christoph Weitkamp
28afe7d866
Remove not needed object array creation for logging ( #1344 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-01-27 09:22:17 +01:00
Christoph Weitkamp
ac537c53d9
Added public method to remove all members from a group ( #1283 )
...
* Added public method to remove all members from a group
* Spelling in itest method names
* File encoding
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-01-26 12:54:37 +01:00
Kai Kreuzer
32c1978a1a
Added hashCode and equals method to StringListType to fix object comparison ( #1341 )
...
* Added hashCode and equals method to StringListType to fix object comparison
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-01-25 20:35:24 +01:00
Christoph Weitkamp
2c8de49231
Applied spotless formatter ( #1335 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-01-19 14:40:09 +01:00
Christoph Weitkamp
08da8de5cf
Moved "ESH-INF/" folders to "OH-INF/" folders ( #1328 )
...
* Moved ESH-INF folders to OH-INF folders
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-01-17 15:29:18 +01:00
Wouter Born
18d0a52d02
Switch to Java 11 and drop Java 8 support ( #1305 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2020-01-12 22:32:28 +01:00
Christoph Weitkamp
7d42607e4c
Streamline format of event outputs ( #1318 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-01-09 12:40:25 +01:00
Markkuuss
a8232e4b1c
Correction of unit spellings Ampere hour ( #1316 )
...
Signed-off-by: Markus Schraufstetter <markus.schraufstetter@gmail.com>
2020-01-05 12:20:35 +01:00
Christoph Weitkamp
84009652a8
Changed configurationPid prefixes from 'org.openhab.core' ot 'org.openhab' ( #1314 )
...
* Changed configurationPid prefixes from 'org.openhab.core' ot 'org.openhab'
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-01-02 09:12:34 +01:00
Wouter Born
3811cb9560
Update copyright headers to 2020 ( #1309 )
...
* Update copyright headers to 2020
Signed-off-by: Wouter Born <github@maindrain.net>
2020-01-01 18:06:34 +01:00
Gaël L'hopital
1c1bde0ef7
Add Ampere hour (A h) and electrolytic conductivity (µS/cm) units ( #1308 )
...
* Adressing issues #1295 and #1296
Fixes #1295
Fixes #1296
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2019-12-31 11:31:44 +01:00
Christoph Weitkamp
800956598b
Applied spotless formatter ( #1302 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-12-30 22:55:19 +01:00
Christoph Weitkamp
dd4368e23f
Added nullness annotations; Some minor improvements; Unit tests for 'ItemCommandEvent' on group ( #1299 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-12-28 22:25:07 +01:00
Christoph Weitkamp
59675788e0
Renamed packages
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-12-28 12:18:16 +01:00
Christoph Weitkamp
fca7c215a5
Moved files to new location
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-12-28 12:18:16 +01:00
Christoph Weitkamp
be89210019
Fixed link in JavaDoc ( #1289 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-12-21 18:41:32 +01:00
Christoph Weitkamp
7130988901
Added missing JavaDoc to 'createGroupStateChangedEvent' method ( #1276 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-12-18 23:04:09 +01:00
Christoph Weitkamp
f32d779894
Simplify lifecycle by using constructor injection ( #1278 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-12-18 23:02:56 +01:00
jenkins
bc6a380297
[unleash-maven-plugin] Preparation for next development cycle.
2019-12-15 14:55:36 +00:00
Gaël L'hopital
b9105bde38
Correcting Issue #1231 ( #1240 )
...
Forgot to test decimal negatives
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2019-11-25 23:21:44 +01:00
Christoph Weitkamp
abb558851f
Removed duplicate brackets ( #1235 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-11-22 09:38:48 +01:00
Wouter Born
403b55c8fc
Parameterized logging fixes ( #1213 )
...
Make sure Throwables are not be substituted into log messages so they can be formatted according to the logging configuration.
Signed-off-by: Wouter Born <github@maindrain.net>
2019-11-14 20:08:06 +01:00
Christoph Weitkamp
d77d8b763e
Added check for invalid duration ( #1209 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-11-13 18:35:42 +01:00
Christoph Weitkamp
8c4fb060ed
Minor clean-ups in 'SmartHomeUnits', 'SIUnits' and 'ImperialUnits' ( #1208 )
...
* Minor clean-us in SmartHomeUnits
* Clean-up in 'SIUnits' and 'ImperialUnits'
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-11-13 18:35:17 +01:00
Gaël L'hopital
694ff49954
Issue #1157 Enhance DecimalType to accept epoch seconds and milliseconds. ( #1158 )
...
* Issue 1157 Enhance DecimalType to accept epoch seconds and milliseconds.
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2019-11-10 21:45:38 +01:00
Christoph Weitkamp
9ba4f55bb5
Added unit test for 'CommandDescriptionBuilder' ( #1181 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-11-03 19:16:43 +01:00
Wouter Born
f002a21da5
Fix SAT errors/warnings in resources and tests ( #1178 )
...
Fixes SAT errors/warnings in resources and tests reported by SAT 0.8.0-SNAPSHOT.
Related to openhab/static-code-analysis#363
Signed-off-by: Wouter Born <github@maindrain.net>
2019-11-03 11:04:19 +01:00
Christoph Weitkamp
2f86782c9d
Added 'InstaceCreator' for 'PersistedItem' ( #1173 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-11-01 16:28:53 +01:00
Christoph Weitkamp
8351a2f8d4
[binding] Added nullness annotations ( #1165 )
...
* Added nullness annotations to o.o.c.binding.xml
* Use local variables
* Removed unuused import
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-10-28 08:14:10 +01:00
Wouter Born
2430256b6a
Add null annotations to registries ( #1134 )
...
Adds null annotations to all registries, the interfaces they implement and a few other classes.
Also-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-23 07:36:56 +02:00
Christoph Weitkamp
09170d1b43
Fixed cron parsing for Day-Of-Week sub-expression ( #1159 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-10-22 22:29:31 +02:00
Wouter Born
be69d2254e
Use !isEmpty() instead of "size() > 0" or "size() != 0" ( #1155 )
...
* Use !isEmpty() instead of "size() > 0" or "size() != 0"
!isEmpty() expresses the intent more clearly and is therefore preferred.
Counting the number of elements can also be an expensive operation e.g. when using linked lists.
Co-Authored-By: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-21 09:00:52 +02:00
Christoph Weitkamp
21744d22b1
Normalized instantiation of loggers ( #1138 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-10-18 22:29:27 +02:00
Christoph Weitkamp
0fdd691c22
Removed superflous resources ( #1137 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-10-18 22:28:37 +02:00
Christoph Weitkamp
91617d8af8
Fixed POM XML Shema Definition path ( #1119 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-10-12 08:52:16 +02:00
Christoph Weitkamp
73d55a9fe9
Changed pid from 'org.eclipse.smarthome.core.i18nprovider' to 'org.eclipse.smarthome.i18n' ( #1112 )
...
* Changed pid from 'org.eclipse.smarthome.core.i18nprovider' to 'org.eclipse.smarthome.i18n'
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-10-11 19:50:04 +02:00
Wouter Born
12e8edc039
Use diamond operator ( #1114 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-11 02:29:47 -07:00
Wouter Born
4e10e0d116
Fix SAT JavadocMethodStyleCheck findings ( #1109 )
...
* Fix SAT JavadocMethodStyleCheck findings
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-10 14:18:54 +02:00
Wouter Born
3d52c72a91
Fix SAT AuthorContributionDescriptionCheck findings ( #1110 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-10 11:36:05 +02:00
Wouter Born
90005e4a56
Fix NoEmptyLineSeparatorCheck and NewlineAtEndOfFileCheck SAT findings ( #1108 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-08 22:19:54 -07:00
Wouter Born
08a1f9a86d
Fix SAT constant/variable name findings ( #1106 )
...
Fixes wrong names identified by the following rules:
* ConstantNameCheck
* LocalFinalVariableNameCheck
* LocalVariableNameCheck
* StaticVariableNameCheck
Most mismatches identified by the MemberNameCheck have also been fixed except for those where the variables are used in events/DTOs etc which would cause issues.
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-08 22:19:00 -07:00
Wouter Born
12b3c1030f
Fix SAT "Initial contribution" warnings ( #1100 )
...
Fixes the SAT warning: First javadoc author should have "Initial contribution" contribution description.
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-07 21:25:40 -07:00
Wouter Born
3dacba3510
Fix SAT ModifierOrderCheck findings by using JLS suggested modifier order ( #1103 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-07 21:24:16 -07:00
Christoph Weitkamp
c31a5aa7ef
[storage] Added nullness annotations ( #1099 )
...
* Added nullness annotations
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-10-07 20:50:39 +02:00
Wouter Born
7926b2280e
Move core unit tests ( #1070 )
...
* Move core unit tests
Moves the core unit tests from the itests project to the bundle project.
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-03 19:51:53 +02:00
Hilbrand Bouwkamp
2f7689e0a7
[OAuth2] redirectURI should be optional on getAccessTokenResponseByAu… ( #1073 )
...
* [OAuth2] redirectURI should be optional on getAccessTokenResponseByAuthorizationCode
The redirectURI should be optional (Nullable) on getAccessTokenResponseByAuthorizationCode as in the JavaDoc is stated (as is stated in the refered specification).
* [OAuth2] Removed redundant NonNull
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-10-03 10:27:20 +02:00
Wouter Born
c9232d9651
Inject SchedulerImpl into DelegatedSchedulerImpl to fix waiting bundles ( #1054 )
...
Fixes #1053
Signed-off-by: Wouter Born <github@maindrain.net>
2019-09-29 16:47:19 +02:00
lolodomo
7b49f27823
Fix dynamic options in UI ( #1050 )
...
* Fix dynamic options in UI
* Added unit tests
Fixes #1040
Also-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-09-28 21:02:29 +02:00
Christoph Weitkamp
b9d9135771
Use constructor injection to simplify lifecycle ( #1037 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-09-27 12:19:50 +02:00
Wouter Born
8509a94cfd
Fix DateTimeType parsing of strings with arbitrary number of nano digits ( #1039 )
...
* Fix DateTimeType parsing of strings with 2 nano digits
Some formatters such as the DateTimeFormatter.ISO_LOCAL_DATE_TIME may also output a string containing 2 nano digits which fail to be parsed by DateTimeValue.
* Fix parsing of arbitrary number of nano digits for Java 11
Signed-off-by: Wouter Born <github@maindrain.net>
2019-09-18 13:24:41 +02:00
Christoph Weitkamp
cd57f1d79c
Refactoring of builders ( #908 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-09-16 21:10:39 +02:00
Christoph Weitkamp
b3802d565d
[infrastructure] bump SAT to 0.7.0 ( #1007 )
...
* Bump SAT version; Fixed high priority findings
* Defined path to feature file to avoid warnings
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-08-29 09:17:35 +02:00
Christoph Weitkamp
7d4b21f4d9
Fix gamma correction in HSBType ( #996 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-08-28 22:24:16 +02:00
Christoph Weitkamp
5c5c9ae126
Specified OSGi service ( #989 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-08-24 23:47:44 +02:00
Christoph Weitkamp
be1cd25743
[itemregistry] Use constructor injection to simplify lifecycle ( #988 )
...
* Use constructor injection to simplify lifecycle
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
* PR extended by ItemStateConverter
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-08-23 18:21:28 +02:00
Stewart Cossey
f51bd640f3
Fix incorrect unit symbol for Byte and add unit symbol for Octet. ( #990 )
...
Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
2019-08-21 20:34:08 +02:00
Wouter Born
9d2f09936d
Fix null annotations order and cleanup ( #958 )
...
* Move null annotations between modifiers and variable type
* Remove redundant public modifiers from interfaces where applicable
* Remove redundant `@NonNull` annotations
Signed-off-by: Wouter Born <github@maindrain.net>
2019-08-08 09:42:30 +02:00
lolodomo
f03f328bf0
DateTimeType: new methods toZone and toLocaleZone ( #945 )
...
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-08-02 13:57:39 +03:00
Christoph Weitkamp
95e0190d55
Avoid multiple type castings ( #946 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-28 11:32:15 +02:00
Christoph Weitkamp
c95dfcb1cc
Added formatting tests for DateTimeType ( #938 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-22 21:56:22 +02:00
Christoph Weitkamp
4f3e1c17cb
Added equality tests for parsing and timzone ( #933 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-22 10:44:10 +02:00
Markus Rathgeb
ef05b4d878
start with an upper case on "initial contribution" ( #931 )
...
Related to: https://github.com/openhab/openhab-core/pull/916/#discussion_r305082016
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-07-21 12:24:58 +02:00
Christoph Weitkamp
abab07dfb9
[automation] Added nullness annotations ( #910 )
...
* Added nullness annotations
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-08 10:53:25 +02:00
Markus Rathgeb
361d42b20a
if null must not be returned, null must not be returned ( #875 )
...
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-20 21:20:27 +02:00
Markus Rathgeb
0fc38a910b
the format pattern must not be null ( #874 )
...
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-20 21:19:46 +02:00
Markus Rathgeb
8e195d4058
don't use safe caller for event delegation to subscribers ( #861 )
...
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-19 23:43:17 +02:00
Markus Rathgeb
fefbef50f5
UID: allow to encode arbitrary string (+decode) ( #864 )
...
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-19 22:42:27 +02:00
Markus Rathgeb
849753befe
small improvements of hexutils API and impl. ( #862 )
...
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-10 17:07:04 +02:00
Markus Rathgeb
3b74ea1dad
use separate class for named thread factory ( #860 )
...
... to make it usable for others
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-09 20:32:01 +02:00
Markus Rathgeb
9018e9ae80
move event logging for better analyze options ( #856 )
...
* move event logging for better analyze options
* add another optional event handling logging
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-09 10:33:42 +02:00
Christoph Weitkamp
64a466ff7d
Added nullness annotations ( #850 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-06-03 14:05:33 +02:00
Christoph Weitkamp
eef779e91a
Added nullness annotations ( #837 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-05-28 17:56:48 +02:00
Christoph Weitkamp
0f74348f51
Factored out 'LocalizedKey' into separate class ( #808 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-05-09 11:57:40 +02:00
Markus Rathgeb
eaaf01a5fd
use mandatory storage services ( #787 )
...
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-02 21:11:00 +02:00
Christoph Weitkamp
b8de327e15
Added i18n feature for dynamic command descriptions ( #771 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-29 19:16:47 +02:00
Christoph Weitkamp
31760bf3a7
Updated xml schema locations to openhab ( #769 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-29 19:15:24 +02:00
Markus Rathgeb
25d7f14dfc
safe caller: respect classloader of the class and the interfaces ( #763 )
...
Related to: https://github.com/openhab/openhab2-addons/issues/5519
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-04-28 16:20:53 +02:00
Christoph Weitkamp
bc91446ae1
Added i18n feature for dynamic state descriptions ( #655 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-26 12:54:40 +02:00
Christoph Weitkamp
387b439509
Reduced logging level in AbstractRegistry ( #755 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-25 15:10:33 +02:00
David Gräff
8819eb6ef9
add default constructor to MetadataKey (Gson deserialization support) ( #727 )
...
Signed-off-by: David Gräff <david.graeff@web.de>
2019-04-15 15:42:46 +02:00
David Gräff
7838a6a46f
Update Metadata.java ( #704 )
...
Fixes #699
Signed-off-by: David Gräff <david.graeff@web.de>
2019-04-08 21:07:33 +02:00
Hilbrand Bouwkamp
1d8b7be59b
Added units kvarh and kvar. ( #695 )
...
Also simplified gravity unit.
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-04-07 11:12:06 +02:00
Gaël L'hopital
c6a9085a74
Adding DataAmount (bit and derivatives) and DataTransferRates (bits per second) ( #681 )
...
* Adding DataAmount (bit and derivatives) and DataTransferRates (bits per second) to UoM
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2019-03-30 21:43:15 +01:00
Wouter Born
cbb96945f0
Ignore and remove Eclipse project specific settings ( #677 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2019-03-26 13:04:09 +01:00
Wouter Born
1acb9c8ff2
[core] Increase DateTimeType parsing and formatting precision ( #668 )
...
Since Java 9 (JDK-8164428) the maximum resolution from the underlying clock is used.
Instead of just milliseconds the resolution can now even be tenth of microseconds.
According to the Type JavaDocs toFullString() should return the full string representation of the type to be consumed by 'valueOf(String)'.
With the changes in this PR toFullString() may return higher resolution date time strings on newer Java versions and valueOf(value) is able to parse these.
Code depending on a certain resolution returned by toFullString() should use the format(pattern) method instead so the resolution will not change.
Fixes #667
Signed-off-by: Wouter Born <github@maindrain.net>
2019-03-17 13:18:30 +01:00
Markus Rathgeb
fdb23778dc
improve nullness of events ( #657 )
...
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-03-15 09:10:52 +01:00
Wouter Born
48d873a32b
Use openHAB license headers ( #632 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2019-03-06 16:10:00 +01:00
Hilbrand Bouwkamp
caa9b71c21
Added new parent class for units to fix import problems. ( #618 )
...
The change with unit classes parent (#617 ) causes it to report missing imports of tec.uom.se when using static import. Before the change this was not a problem because the parent class was SmartHomeUnits. This change adds a new parent class for all units.
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-03-02 14:26:01 +01:00
Hilbrand Bouwkamp
4517f3959b
Added standard gravity and dBm units.
...
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-03-01 23:50:13 +00:00
Hilbrand Bouwkamp
21bf4d9ef0
Reordered units alphabetical, changed extends on SmartHomeUnits
...
The classes ImperialUnits and SIUnits both extended SmartHomeUnits. But the classes are used a singletons.
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-03-01 23:50:13 +00:00
Gaël L'hopital
32bee0e22c
Small UoM evolutions ( #588 )
...
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2019-02-20 09:41:29 +00:00
Hilbrand Bouwkamp
09e2292a58
Replaces 'Eclipse SmartHome' with 'openHAB' in text ( #581 )
...
Adapted CONTRIBUTING.md file.
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-02-15 10:46:37 +01:00
Hilbrand Bouwkamp
d342afbc4e
Updated NOTICE files to openHAB ( #578 )
...
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-02-15 10:46:18 +01:00
Henning Treu
3c8e3efa93
Extend ChannelType by command options ( #540 )
...
This addresses https://github.com/eclipse/smarthome/issues/5099 by adding a command description with command options along with the state description.
Command options will give a hint to UIs about the specific commands a channel provides. Command options could be rendered as a drop down and also represent the current state or rendered as push buttons to simply send a command to the ThingHandler.
The infrstructure basically copies the StateDescription infrastructure with CommandDescriptionProviders and an `DynamicCommandDescriptionProvider` interface for bindings to hook in and provide dynamic command options.
Signed-off-by: Henning Treu <henning.treu@googlemail.com>
2019-02-12 13:41:01 +00:00
Markus Rathgeb
fd95b86b36
centralize the bundle identifier construction
...
The ready marker logic is created to hide the real usage. The ready
marker uses an "identifier" that is not specific or limited to bundles.
Currently the bundle symbolic name is used as bundle identifier.
That "convention" needs to be known at several different places.
There should be one method that created an identifier for a bundle and
"no one" needs to care about the implementation details.
Another point is that the bundle symbolic name that has been used is
optional. It may be null e.g. for bundles that has been installed by the
synthetic bundle installer mechanism etc.
The runtime assigns a bundle ID to an installed bundle that remains the
same for the bundle (see JavaDoc). The bundle ID is present all the
time.
The implementation of the "get identifier for bundle" has been choosen
to use the BSN -- if available -- (as before) but fallback to a custom
one using also the bundle ID (to be unique).
So we can provide always a non null identifier for a bundle.
It should be easily to change the identifier creation now if there is
every any need for.
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:56:00 +01:00
Markus Rathgeb
fbca7e806f
remove project specific JDT settings ( #481 )
...
Done per request by @wborn.
Related to: https://github.com/openhab/openhab-core/pull/476#discussion_r251566034
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-29 10:24:39 +01:00
Markus Rathgeb
a37cceab67
mavenize openHAB and integrate mavenized ESH repository ( #467 )
...
* mavenize openHAB and integrate mavenized ESH repository
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-28 13:07:31 +01:00
Kai Kreuzer
10acf5cf46
Changed license from EPL v1 to EPL v2 ( #466 )
...
* updated license headers
* added NOTICE files
* moved about.html to NOTICE files
* changed main project license
* updated build.properties
* added files to check to prevent error about missing about.html
* removed license info on p2 feature
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-16 22:59:49 +01:00
Kai Kreuzer
eb8abdc894
updated to 2019 ( #464 )
...
* updated to 2019
* updated checkstyle check to 2019
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-07 22:53:19 +01:00
openhab-bot
61e21d4866
[unleash-maven-plugin] Preparation for next development cycle.
2018-12-16 21:49:16 +00:00
Kai Kreuzer
b51bf275b9
leave non-numeric qualifiers in place for version ( #439 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-11-28 10:51:24 +01:00
Kai Kreuzer
d3ffb2db5a
prevent System.exit() calls ( #409 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-10-01 21:18:46 +02:00
Wouter Born
8091914a4b
Apply POM Code Convention ( #392 )
...
Applies the POM Code Covention as used in OH2/ESH projects.
See also: https://maven.apache.org/developers/conventions/code.html
The executed command is:
mvn \
com.github.ekryd.sortpom:sortpom-maven-plugin:sort \
-Dsort.keepBlankLines=true \
-Dsort.predefinedSortOrder=recommended_2008_06
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-09-10 13:45:11 +02:00
Wouter Born
dbed3db57d
Remove Eclipse project specific settings and some Groovy leftovers ( #391 )
...
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-09-08 17:38:56 +02:00
Wouter Born
33c7f838fc
Add Automatic-Module-Name entry to manifests ( #369 )
...
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-07-21 16:07:17 +02:00
CloudBees DEV@Cloud
cabe7c4528
[unleash-maven-plugin] Preparation for next development cycle.
2018-05-28 01:54:21 +02:00
Kai Kreuzer
47bfddeecd
added new methods for breaking ESH change ( #339 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-05-03 19:21:40 +02:00
Tanya Georgieva
8a3b3d1074
Changed the indentation for some XML files from spaces to tabs ( #310 )
...
Signed-off-by: Tanya D. Georgieva <tanya.dancheva.georgieva@gmail.com>
2018-03-12 18:17:58 +01:00
Martin van Wingerden
5a21ca6b02
Updated copyrights to 2018 ( #271 )
...
Signed-off-by: Martin van Wingerden <martinvw@mtin.nl>
2018-01-03 09:26:13 +01:00
CloudBees DEV@Cloud
5c6bfba450
[unleash-maven-plugin] Preparation for next development cycle.
2017-12-17 23:40:22 +01:00
Markus Rathgeb
e57044e13c
Rework / formatted manifest ( #211 )
...
* reworked and formatted manifest
* added missing jdt.annotation
Related to: https://github.com/eclipse/smarthome/pull/4308
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2017-09-21 08:16:38 +02:00
Kai Kreuzer
cd9d02ab94
removed auto-approve service as this is now contained in ESH ( #202 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-08-29 11:13:36 +02:00
Martin van Wingerden
6bb1ba1057
Updated outdated copyrights ( #197 )
...
Signed-off-by: Martin van Wingerden <martinvw@mtin.nl>
2017-08-20 09:56:41 +02:00
Kai Kreuzer
16bfd38548
removed httpclient dependency ( #168 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-07-19 10:08:41 +07:00
Martin van Wingerden
6fcb85b311
Version bump to version 2.2.0-SNAPSHOT ( #160 )
...
Signed-off-by: Martin van Wingerden <martinvw@mtin.nl>
2017-06-29 08:45:25 +02:00
Kai Kreuzer
14e503736c
code cleanup to match expectations of static analysis tool ( #151 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-06-02 16:40:55 +02:00
Kai Kreuzer
841f238eea
add openHAB version and build info to dashboard footer ( #149 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-05-16 12:54:20 +02:00
Kai Kreuzer
f089cd912f
added about files
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-04-07 16:26:59 +02:00
Kai Kreuzer
485a65e739
applied code formatter ( #132 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-04-07 03:42:37 -07:00
Kai Kreuzer
3be8099728
switched to Java8 ( #130 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-04-05 01:06:43 -07:00
Kai Kreuzer
ceef9a9fe0
moved on to 2.1.0-SNAPSHOT
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-01-20 10:48:55 +01:00
Kai Kreuzer
053c073d9e
Refactoring of package handling ( #81 )
...
* adapted FeatureInstaller to adapt addons info in ConfigAdmin, so that this info is stored in a file
* removed experimental features
* removed package selection from UI as it is meant to be only set once
* introduced new packages: minimal, simple and expert
* introduced a setup page on the dashboard, if no package is set (and thus openHAB is uninitialized)
* added auto-refresh of dashboard to have new entries appear automatically
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-11-24 20:09:52 +01:00
Kai Kreuzer
703b2f043d
adapted code to ESH API change ( #72 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-11-01 09:09:05 +01:00
Kai Kreuzer
a2ca9c590a
removed dependency on ThingSetupManager ( #52 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-06-27 18:12:52 +02:00
Kai Kreuzer
25cd02baf4
Sitemap ( #46 )
...
* updated default sitemap provider to new ESH concept
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-21 22:14:21 +02:00
Kai Kreuzer
c55513a8c0
switched to snapshot
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-21 14:00:58 +02:00
Kai Kreuzer
8bd77e32c5
Releasing 2.0.0.b3
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-21 13:51:10 +02:00
Kai Kreuzer
04cfa9cee3
applied updated and neutral copyright header
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-03-27 22:14:00 +02:00
Kai Kreuzer
51d1e95150
removed logging of version on bundle start&stop
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-02-22 19:45:36 +01:00
Kai Kreuzer
ded1a0c51a
updated year to 2016
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-01-08 22:17:05 +01:00
Kai Kreuzer
78a586b378
changed groupId to org.openhab.core
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2015-12-27 23:48:19 +01:00
Kai Kreuzer
a5b86617a6
initial commit of openhab core components
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2015-12-26 23:22:23 +01:00