Révision 96454bcd
Ajouté par Sylvain Sauvage il y a plus de 11 ans
IoTa-Installer/lib/ds.py | ||
---|---|---|
("Enter the DS database name", "ds", "db_name", {}),
|
||
("Enter the DS database login", "ds", "db_login", {}),
|
||
("Enter the DS database password", "ds", "db_password", {}),
|
||
("Enter the hostname of XACML module (socket)", "ds_policies", "xacml_host", {}),
|
||
("Enter the port of the XACML module (socket)", "ds_policies", "xacml_port", {}),
|
||
("Enter the URL to the XACML module", "ds_policies", "xacml_url", {}),
|
||
("Use as multi DS instance?", "publisher", "multi_ds_architecture",
|
||
{"type": "YN"}),
|
||
("Enter one or several ONS IP address(es) (comma separated)",
|
||
"publisher", "ons_hosts",
|
||
("Enter your DS login for publisher", "publisher", "login",
|
||
{"when": ("publisher", "multi_ds_architecture")}),
|
||
("Enter your DS LOGIN for publisher", "publisher", "login",
|
||
{"when": ("publisher", "multi_ds_architecture")}),
|
||
("Enter your DS PASSWORD for publisher", "publisher", "password",
|
||
("Enter your DS password for publisher", "publisher", "password",
|
||
{"when": ("publisher", "multi_ds_architecture")}),
|
||
("Enter the URL of the Epcis Query service (or ETa)", "ds", "epcis_query_url", {})
|
||
], [
|
||
("application",
|
||
{ "service-id": ("ds", "server_identity"),
|
||
"xacml-address": ("ds_policies", "xacml_host"),
|
||
"xacml-port": ("ds_policies", "xacml_port"),
|
||
"ons": ("ons", "server"),
|
||
"ons-domain-prefix": ("ons", "domain_prefix"),
|
||
"xacml-url": ("ds_policies", "xacml_url"),
|
||
"xacml-ihm-url": ("dphi", "url") }),
|
||
("publisher",
|
||
{ "multi-ds-architecture": ("publisher", "multi_ds_architecture"),
|
||
"ons-hosts": ("publisher", "ons_hosts"),
|
||
"ds-login": ("publisher", "login"),
|
||
"ds-password": ("publisher", "password")
|
||
})
|
||
"ds-password": ("publisher", "password") })
|
||
])
|
||
|
||
|
||
def postConfigure(self):
|
||
CONFIG.set("ds", "url",
|
||
"http://" + CONFIG.get("global", "host") + ":" + CONFIG.get("tomcat", "http_port") + "/" +
|
||
CONFIG.get("ds", "name") + "/services/ESDS_Service")
|
||
CONFIG.set("ds", "db_jndi", "DSDB")
|
||
self.setURL()
|
||
self.cset("url", self.cget("url") + "services/ESDS_Service")
|
||
self.cset("db_jndi", "DSDB")
|
||
|
||
|
||
def postUnpack(self):
|
||
if CONFIG.isTrue("ds", "db_install"):
|
||
utils.execDB("Setting Anonymous partner’s service address", CONFIG.get("ds", "db_name"),
|
||
"UPDATE partner SET serviceAddress='" + CONFIG.get("ds", "epcis_query_url") + "' WHERE partnerID='anonymous'")
|
||
if self.cisTrue("db_install"):
|
||
utils.execDB("Setting Anonymous partner’s service address", self.cget("db_name"),
|
||
"UPDATE partner SET serviceType='" + self.cget("epcis_type") +
|
||
"', serviceAddress='" + self.cget("epcis_query_url") +
|
||
"' WHERE partnerID='anonymous'")
|
||
# note: this 'anonymous' should be the Epcis/EpcILoN identity
|
Formats disponibles : Unified diff
Version 1.9-mock
This is version 1.9-mock. 1.9 because the API still have changes pending
(principally relative to the Discovery Services). “mock” because TLS
configuration is not yet available and the signatures (SigMa) are not fully
implemented.
- code cleaned and refactored
- lots of bugs fixed
- dependencies checked and trimmed
- documentation added
- Identity handling added
- code refactored
- new, better APIs
- Identity handling added
- use EPCglobal and DS events (no proxy types anymore)
- ETa-Callback modules are now available as web applications
- filtering rules: if a part of an event is not allowed, now the whole
event is deleted from the result (before only the rejectd part was)
- new temporary User web service
- new Xi module: XACML Interrogation web service (was two modules: TCP and
servlet)
- ETa and its Callback modules
- ActiveMQ
- SigMa
- certificate/signing key
- new simplified figures (sans IoTa and simplified IoTa)
- new figure for ETa modules
- show 3rd party clients
- data flows specified
- TLS and link security added
- IDs and trusted IDs added
- color adjusted for printing
- GREYC logo added