Projet esup-activaccount
Pages enfant
  • Documentation esup-activ v1 (archive)

Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.
Volet
bgColor#F8F7EF

Esup

Lecture

Activaccount Portlet - Installation Guide

Image Modified
Auteur : Bourges Raymond - Bouteille Gwénaëlle Fabrice Jammes, Sang Hun Bang (University of Rennes Paris 1)

Sommaire
minLevel1
indent20px
styledisc

Important note


Because of uPortal limitation before 2.6.1 release (OK since uPortal 2.6.1 DLM version) in session objects management esup-lecture may produce null pointer exceptions randomly. For this esup-lecture, since 0.9.0 release has a full support of servlet mode. Please see "Servlet mode" section for more information Due to some limitations using AJAX with in esup-commons portlet, this tools can only be used in servlet mode. This isn't a big problem
because this tool is only used by anonymous users who wish to activate their LDAP account.

Installation


  • Download esup-lectureactivaccount-<version>.zip from the projectsite
  • Unzip the file somewhere on a working directory
    Remarque

    To configure this application you have to adapt some configuration files. Every time you will find a <fileName>-example.<extension> example file that you can copy to <fileName>.<extension> before adapting.

...

  • Configure your portal to reference this portlet. For example with uPortal you can use channel manager as shown here:
    Image Modified
    Remarque

    Portlet definition ID is very important. Here it is esup-lecture.esup-lecture. Fisrt esup-lecture must be equal to the appliation server context name and second esup-lecture must be equal to the portlet-name of the WEB-INF/portlet.xml file.
    If you don't use this default value you have to adap the "portlet-guid" parameter of "The esup-lecture portlet servlet" servlet in the WEB-INF/web.xml too.


    Remarque

    You can specify a preference with name "context" here too. See chapter 2.2.1 about context id for more information about this.

    If you don't use channel manager you can use a xml Portlet definition file. You can use this file with an uPortal ant target like ant uportal.pubchan -Dchannel=lecture-portlet.xml. For this, you have to save a lecture-portlet.xml file in the folder properties/chanpub of your uPortal distribution. This is an example of lecture-portlet.xml file :


    Bloc de code
    
    <?xml version="1.0" encoding="UTF-8"?>
    
    <!DOCTYPE channel-definition SYSTEM "channelDefinition.dtd">
    
    <channel-definition>
    
        <title>lecture-portlet</title>
        <name>lecture-portlet</name>
        <fname>lecture</fname>
        <desc>Esup-Portail lecture portlet</desc>
        <type>Portlet</type>
        <class>org.jasig.portal.channels.portlet.CPortletAdapter</class>
        <timeout>15000</timeout>
    
        <hasedit>N</hasedit>
        <hashelp>N</hashelp>
        <hasabout>N</hasabout>
    
        <secure>N</secure>
        <locale>en_US</locale>
    
        <categories>
            <category>Applications</category>
        </categories>
    
        <groups>
            <group>Everyone</group>
        </groups>
    
        <parameters>
    
            <!-- The syntax of the portletDefinitionId is [portlet-context-name].[portlet-name] -->
            <parameter>
                <name>portletDefinitionId</name>
                <value>esup-lecture.esup-lecture</value>
                <description>The syntax of the portletDefinitionId is [portlet-context-name].[portlet-name]</description>
                <ovrd>N</ovrd>
            </parameter>
    
            <parameter>
                <name>PORTLET.context</name>
                <value>default</value>
                <description>The "context" Portlet preference in relationship with context@id of the esup-lecture.xml file</description>
                <ovrd>N</ovrd>
            </parameter>
    
        </parameters>
    
    </channel-definition>
    
  • Since 1.2: Import lecture.css in main portal css page.
    For example with esup skin in a esup-portail package:
    • copy esup.css form update/uPortal/webpages/media/org/jasig/portal/layout/tab-column/xhtml-theme/esup to custom/uPortal/webpages/media/org/jasig/portal/layout/tab-column/xhtml-theme/esup/skin
    • adap esup.css by adding :
      Bloc de code
      @import url("lecture.css");
      
    • copy lecture.css in custom/uPortal/webpages/media/org/jasig/portal/layout/tab-column/xhtml-theme/esup/skin
    • use ant init deploy

...