Pages enfant
  • Installation guide - esup-news

Vous regardez une version antérieure (v. /wiki/display/PROJ/Installation+guide+-+esup-news) de cette page.

afficher les différences afficher l'historique de la page

« Afficher la version précédente Vous regardez la version actuelle de cette page. (v. 3) afficher la version suivante »

Important note

This application is working with these requirments :

  • Java 1.6
  • uPortal 2.6
  • If using MySQL InnoDB mod is required
  • All tests and srcipts are made to works with charset UTF-8 (database and tables with utf-8).

Installation

Installing the portlet

  • unzip the file in a working directory
  • make a copy of
    • build_exemple.properties to build.properties
    • properties/news.properties.exemple to properties/news.properties
    • properties/log4j.properties to log4j.properties
      and adapt these files (see on next sections for more details)
  • Initializing the database
    • ant db-init

      This Command will erase all existing data in your database !!!!
      Your database (configured in build.properties) must exists.

  • Updating the database
    • select the script of you version for the update in build.properties
    • ant db-update
  • Deploying the application
    • ant init
    • ant deploy

Configuration

  • file properties/news.properties
    # Attribute for user search (cn ou sn)
    ldap.userSearchAttr=cn
    # Attribute name list of LDAP user's attributes to show in users details
    ldap.searchDisplayedAttr=displayName, mail, uid, escouai
    # Id/uid attribute used to identify the user in LDAP
    ldap.userId=uid
    # LDAP attribute name to display the name of the user
    ldap.userDisplayName=displayName
    # LDAP attribute name for the user mail
    ldap.userEmail=mail
    
    # List of LDAP attributes used to make filter search.
    ldap.filterSearchUserAttr=escouai, ENTEleveClasses, ENTEleveGroupes, ENTAuxEnsClasses, ENTAuxEnsGroupes

For each attribute defined in these properties must be set a display I18N value, this should be done in src/messages.properties
For exemple for the attribute uid you should set properties :
news.label.uid = Identifier in messages_en.properties
news.label.uid = Identifiant in messages_fr.properties

To set the attribute display name the pattern is
news.label.<attributeName> = <DisplayValue>

  • Aucune étiquette