Ignore:
Timestamp:
10/03/11 15:05:25 (13 years ago)
Author:
vmipsl
Message:

download

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ether_megapoli/trunk/web/src/com/ether/ControllerEther.java

    r130 r213  
    55import com.ether.annotation.ParamName; 
    66import com.ether.annotation.UseJSON; 
     7import com.medias.annuaire.Personne; 
    78import net.sf.json.JSON; 
    89import net.sf.json.JSONArray; 
     
    4445        { 
    4546            if( !_initialized ) 
    46                 initialize(); 
     47            initialize(); 
    4748 
    4849            request.setCharacterEncoding( UTF8Charset.getEncoding() ); 
     
    8283            final Object[] params = buildParams( methodDescription, request ); 
    8384 
     85            if( methodDescription.isLoginMandatory() ) 
     86            { 
     87                final Personne pers = (Personne) request.getSession().getAttribute( "SES_USER" ); 
     88                params[params.length - 1] = pers; 
     89            } 
    8490            // Invoke method (go to controller) 
    8591            final Object result = methodDescription.getMethod().invoke( this, params ); 
Note: See TracChangeset for help on using the changeset viewer.