root/IoTa-Installer/lib/omega.py @ 8fd1d584
2e0a7cb1 | Sylvain L. Sauvage | # -*- coding: utf-8 -*-
|
|
#
|
|||
# This program is a part of the IoTa project.
|
|||
#
|
|||
19b58bab | Rémy Ménard | # Copyright © 2012-2013 Université de Caen Basse-Normandie, GREYC
|
|
#
|
|||
2e0a7cb1 | Sylvain L. Sauvage | # This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|||
# the Free Software Foundation, either version 3 of the License, or
|
|||
# (at your option) any later version.
|
|||
#
|
|||
# This program is distributed in the hope that it will be useful,
|
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
# GNU General Public License for more details.
|
|||
# <http://www.gnu.org/licenses/>
|
|||
#
|
|||
# See AUTHORS for a list of contributors.
|
|||
#
|
|||
import installer
|
|||
class OMeGaInstaller(installer.WebAppInstaller):
|
|||
def __init__(self):
|
|||
installer.WebAppInstaller.__init__(self, "OMeGa web application", "omega", [
|
|||
("Enter the OMeGa web application name", "omega", "name", {}),
|
|||
("Enter the archive file pathname", "omega", "repo", {"type": "file"}),
|
|||
19b58bab | Rémy Ménard | ("Enter the URL to the XACML module", "epcis_policies", "xacml_url", {}),
|
|
2e0a7cb1 | Sylvain L. Sauvage | ("Enter the RMI URL of ALfA", "alfa", "rmi_url", {})
|
|
], [
|
|||
96454bcd | Sylvain L. Sauvage | ("application",
|
|
{ "alfa-rmi-url": ("alfa", "rmi_url"),
|
|||
19b58bab | Rémy Ménard | "xi-url": ("epcis_policies", "xacml_url"),
|
|
bf9c3717 | Rémy Ménard | "pks-filename": ("cert", "keystore"),
|
|
19b58bab | Rémy Ménard | "pks-password": ("cert", "password"),
|
|
"trust-pks-filename": ("cert", "truststore"),
|
|||
"trust-pks-password": ("cert", "trustpassword"),
|
|||
8fd1d584 | Rémy Ménard | "ons-hosts": ("ons", "server"),
|
|
96454bcd | Sylvain L. Sauvage | "ons-domain-prefix": ("ons", "domain_prefix"),
|
|
"default-identity": ("global", "anonymous_user") })
|
|||
2e0a7cb1 | Sylvain L. Sauvage | ] )
|
|
bf9c3717 | Rémy Ménard | ||
def postConfigure(self):
|
|||
url = self.setSecuredURL()
|