How To Query Items Things and Bindings [message #1751273] |
Fri, 06 January 2017 12:48  |
Eclipse User |
|
|
|
Hi,
I've just made my first binding and now i'm wondering, how i get access to the things i configured, so i have a few questions to ask.
1. How can i get all items, which are currently configured?
The Reason, why i need this, is that i want to build a binding, that returns static information, such as a list of all items or all bindings currently configured.
Then i would build different applications ( Android App, iOS App, Web UI, ... ), which will get the information about the ui from this binding ( probably as a JSON or something similar ).
2. How do i extend the underlying Database by some more tables? (Example: Protocol, User Management )
I appreciate your help.
Thank you
|
|
|
|
Re: How To Query Items Things and Bindings [message #1751499 is a reply to message #1751430] |
Tue, 10 January 2017 14:54   |
Eclipse User |
|
|
|
Hi Kai,
I plan on making a binding, that improves the security.
As far as i understand, if the server is running in a network, every user in the network can execute every command, or get any information from the REST api.
This binding should call the ESH directly, and return the values. ( for example controlling items and reading information from them should be allowed, however creating or deleting items should not be allowed )
If there is no other way, i will just make a binding that calls the REST Api if the call is GET or PUT and raise an error, if it is not.
I think, i'll find a way.
Thank you Kai
|
|
|
Re: How To Query Items Things and Bindings [message #1751865 is a reply to message #1751499] |
Mon, 16 January 2017 05:44  |
Eclipse User |
|
|
|
I guess you are rather talking about creating a "bundle", not a binding - i.e. you are working on some custom functionality, for which there is no defined extension point.
Regarding your question (1), the answer is easy then: Simply use the ItemRegistry as an OSGi service - this holds all information you need.
|
|
|
Powered by
FUDForum. Page generated in 0.03057 seconds