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
- Download esup-news<version>.zip from https://sourcesup.cru.fr/frs/?group_id=806
- 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.
- ant db-init
- 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
# Attribut pour la recherche des utilisateurs (cn ou sn) ldap.userSearchAttr=cn # Liste des attributs d'un utilisateur à afficher ldap.searchDisplayedAttr=displayName, mail, uid, escouai # Id/uid identifiant de recherche des utilisateurs ldap.userId=uid # attribut LDAP du nom d'utilisateur pour l'affichage ldap.userDisplayName=displayName # attribut LDAP du champ mail de l'utilisateur ldap.userEmail=mail # Liste des attributs LDAP autorisés afin de constituer des filtres. ldap.filterSearchUserAttr=escouai, ENTEleveClasses, ENTEleveGroupes, ENTAuxEnsClasses, ENTAuxEnsGroupes