Le document suivant contient les résultats de l'inspection CPD CPD 5.3.5.
Fichier | Ligne |
---|---|
fr/paris/lutece/plugins/rating/web/ResourceManager.java | 161 |
fr/paris/lutece/plugins/rating/web/ResourceManager.java | 217 |
public void doCreateResourceAddOn( HttpServletRequest request, String strResourceType, int nIdResource ) { Plugin plugin = getPlugin( ); ResourceConf resourceConf = new ResourceConf( ); resourceConf.setResourceType( strResourceType ); resourceConf.setIdResource( nIdResource ); String strIsModeratedVote = ( request.getParameter( PARAMETER_ACCEPT_SITE_VOTES ) != null ) ? request.getParameter( PARAMETER_ACCEPT_SITE_VOTES ) : "0"; String strIsEmailNotifiedVote = ( request.getParameter( PARAMETER_IS_EMAIL_NOTIFIED_VOTE ) != null ) ? request.getParameter( PARAMETER_IS_EMAIL_NOTIFIED_VOTE ) : "0"; String strMailingId = ( request.getParameter( PARAMETER_MAILING_ID ) != null ) ? request.getParameter( PARAMETER_MAILING_ID ) : "0"; resourceConf.setAcceptSiteVotes( Integer.parseInt( strIsModeratedVote ) ); resourceConf.setEmailNotifiedVotes( Integer.parseInt( strIsEmailNotifiedVote ) ); resourceConf.setIdMailingListVotes( Integer.parseInt( strMailingId ) ); ResourceConfHome.create( resourceConf, plugin ); |