Projet

Général

Profil

Télécharger (1,87 ko) Statistiques
| Branche: | Tag: | Révision:
# -*- coding: utf-8 -*-
#
# This program is a part of the IoTa project.
#
# Copyright © 2012-2013 Université de Caen Basse-Normandie, GREYC
#
# 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"}),
("Enter the URL to the XACML module", "epcis_policies", "xacml_url", {}),
("Enter the RMI URL of ALfA", "alfa", "rmi_url", {})
], [
("application",
{ "alfa-rmi-url": ("alfa", "rmi_url"),
"xi-url": ("epcis_policies", "xacml_url"),
"pks-filename": ("cert", "keystore"),
"pks-password": ("cert", "password"),
"trust-pks-filename": ("cert", "truststore"),
"trust-pks-password": ("cert", "trustpassword"),
"ons-hosts": ("ons", "server"),
"ons-domain-prefix": ("ons", "domain_prefix"),
"default-identity": ("global", "anonymous_user") })
] )

def postConfigure(self):
url = self.setSecuredURL()
(23-23/29)