Résultats CPD

Le document suivant contient les résultats de l'inspection CPD CPD 4.3.

Duplicatas

FichierLigne
fr/paris/lutece/plugins/digglike/business/DiggDAO.java217
fr/paris/lutece/plugins/digglike/business/DiggDAO.java417
            int ncpt = 1;
            digg = new Digg(  );
            digg.setIdDigg( daoUtil.getInt( ncpt++ ) );
            digg.setTitle( daoUtil.getString( ncpt++ ) );
            digg.setUnavailabilityMessage( daoUtil.getString( ncpt++ ) );
            digg.setWorkgroup( daoUtil.getString( ncpt++ ) );

            voteType = new VoteType(  );
            voteType.setIdVoteType( daoUtil.getInt( ncpt++ ) );
            digg.setVoteType( voteType );

            digg.setNumberVoteRequired( daoUtil.getInt( ncpt++ ) );
            digg.setNumberDayRequired( daoUtil.getInt( ncpt++ ) );
            digg.setActiveDiggSubmitAuthentification( daoUtil.getBoolean( ncpt++ ) );
            digg.setActiveVoteAuthentification( daoUtil.getBoolean( ncpt++ ) );
            digg.setActiveCommentAuthentification( daoUtil.getBoolean( ncpt++ ) );
            digg.setDisableNewDiggSubmit( daoUtil.getBoolean( ncpt++ ) );
            digg.setAuthorizedComment( daoUtil.getBoolean( ncpt++ ) );
            digg.setDisableNewComment( daoUtil.getBoolean( ncpt++ ) );
            digg.setIdMailingListDiggSubmit( daoUtil.getInt( ncpt++ ) );
            digg.setActiveCaptcha( daoUtil.getBoolean( ncpt++ ) );
            digg.setActive( daoUtil.getBoolean( ncpt++ ) );
            digg.setDateCreation( daoUtil.getTimestamp( ncpt++ ) );
            digg.setLibelleValidateButton( daoUtil.getString( ncpt++ ) );
            digg.setActiveDiggPropositionState( daoUtil.getBoolean( ncpt++ ) );
            digg.setLibelleContribution( daoUtil.getString( ncpt++ ) );
            digg.setNumberDiggSubmitInTopScore( daoUtil.getInt( ncpt++ ) );
            digg.setNumberDiggSubmitInTopComment( daoUtil.getInt( ncpt++ ) );
            digg.setLimitNumberVote( daoUtil.getBoolean( ncpt++ ) );
            digg.setNumberDiggSubmitCaractersShown( daoUtil.getInt( ncpt++ ) );
            digg.setShowCategoryBlock( daoUtil.getBoolean( ncpt++ ) );
            digg.setShowTopScoreBlock( daoUtil.getBoolean( ncpt++ ) );
            digg.setShowTopCommentBlock( daoUtil.getBoolean( ncpt++ ) );
            digg.setActiveDiggSubmitPaginator( daoUtil.getBoolean( ncpt++ ) );
            digg.setNumberDiggSubmitPerPage( daoUtil.getInt( ncpt++ ) );
            digg.setRole( daoUtil.getString( ncpt++ ) );
            digg.setEnableMailNewDiggSubmit( daoUtil.getBoolean( ncpt++ ) );
            digg.setHeader( daoUtil.getString( ncpt++ ) );
            digg.setSortField( daoUtil.getInt( ncpt++ ) );
            digg.setCodeTheme( daoUtil.getString( ncpt++ ) );
            digg.setConfirmationMessage( daoUtil.getString( ncpt++ ) );
            digg.setActiveEditorBbcode( daoUtil.getBoolean( ncpt++ ) );
            digg.setDefaultDigg( daoUtil.getBoolean( ncpt++ ) );
            digg.setIdDefaultSort( daoUtil.getInt( ncpt++ ) );
            digg.setNotificationNewCommentSenderName(daoUtil.getString(ncpt++));
            digg.setNotificationNewCommentTitle(daoUtil.getString(ncpt++));
            digg.setNotificationNewCommentBody(daoUtil.getString(ncpt++));
            digg.setNotificationNewDiggSubmitSenderName(daoUtil.getString(ncpt++));
            digg.setNotificationNewDiggSubmitTitle(daoUtil.getString(ncpt++));
            digg.setNotificationNewDiggSubmitBody(daoUtil.getString(ncpt++));
FichierLigne
fr/paris/lutece/plugins/digglike/business/EntryTypeText.java182
fr/paris/lutece/plugins/digglike/business/EntryTypeUrl.java170
    }

    /**
     * Get template create url of the entry
     * @return template create url of the entry
     */
    public String getTemplateCreate(  )
    {
        return _template_create;
    }

    /**
     * Get the template modify url  of the entry
     * @return template modify url  of the entry
     */
    public String getTemplateModify(  )
    {
        return _template_modify;
    }

    /**
     * The paginator who is use in the template modify of the entry
     * @param nItemPerPage Number of items to display per page
     * @param strBaseUrl The base Url for build links on each page link
     * @param strPageIndexParameterName The parameter name for the page index
     * @param strPageIndex The current page index
     * @return the paginator who is use in the template modify of the entry
     */
    public Paginator getPaginator( int nItemPerPage, String strBaseUrl, String strPageIndexParameterName,
        String strPageIndex )
    {
        return new Paginator( this.getRegularExpressionList(  ), nItemPerPage, strBaseUrl, strPageIndexParameterName,
            strPageIndex );
    }

    /**
     * return the list of regular expression whose not associate to the entry
     * @param entry the entry
     * @param plugin the plugin
     * @return the list of regular expression whose not associate to the entry
     */
    public ReferenceList getReferenceListRegularExpression( IEntry entry, Plugin plugin )
    {
        ReferenceList refListRegularExpression = new ReferenceList(  );

        if ( RegularExpressionService.getInstance(  ).isAvailable(  ) )
        {
            List<RegularExpression> listRegularExpression = RegularExpressionService.getInstance(  )
                                                                                    .getAllRegularExpression(  );

            for ( RegularExpression regularExpression : listRegularExpression )
            {
                if ( !entry.getRegularExpressionList(  ).contains( regularExpression ) )
                {
                    refListRegularExpression.addItem( regularExpression.getIdExpression(  ),
                        regularExpression.getTitle(  ) );
                }
            }
        }

        return refListRegularExpression;
    }

    /**
     * save in the list of response the response associate to the entry in the form submit
     * @param request HttpRequest
     * @param listResponse the list of response associate to the entry in the form submit
     * @param locale the locale
     * @return a Form error object if there is an error in the response
     */
    public FormError getResponseData( HttpServletRequest request, List<Response> listResponse, Locale locale )
    {
        String strValueEntry = request.getParameter( DiggUtils.EMPTY_STRING + this.getIdEntry(  ) ).trim(  );
        List<RegularExpression> listRegularExpression = this.getRegularExpressionList(  );
        Response response = new Response(  );
        response.setEntry( this );

        if ( strValueEntry != null )
        {
            if ( this.isMandatory(  ) )
            {
                if ( strValueEntry.equals( DiggUtils.EMPTY_STRING ) )
                {
                    FormError formError = new FormError(  );
                    formError.setMandatoryError( true );
                    formError.setTitleQuestion( this.getTitle(  ) );

                    return formError;
                }
            }

            if ( ( listRegularExpression != null ) && ( listRegularExpression.size(  ) != 0 ) &&
                    RegularExpressionService.getInstance(  ).isAvailable(  ) )
            {
                for ( RegularExpression regularExpression : listRegularExpression )
                {
                    if ( !RegularExpressionService.getInstance(  ).isMatches( strValueEntry, regularExpression ) )
                    {
                        FormError formError = new FormError(  );
                        formError.setMandatoryError( false );
                        formError.setTitleQuestion( this.getTitle(  ) );
                        formError.setErrorMessage( regularExpression.getErrorMessage(  ) );

                        return formError;
                    }
                }
            }

            response.setValueResponse( strValueEntry );
        }

        listResponse.add( response );

        return null;
    }

    /**
     * save in the list of response the response associate to the entry in the form submit
     * @param nIdDiggSubmit The if of the DiggSubmit
     * @param request HttpRequest
     * @param listResponse the list of response associate to the entry in the form submit
     * @param locale the locale
     * @param plugin the plugin
     * @return a Form error object if there is an error in the response
     */
    public FormError getResponseData( int nIdDiggSubmit, HttpServletRequest request, List<Response> listResponse,
        Locale locale, Plugin plugin )
    {
        return getResponseData( request, listResponse, locale );
    }

    /**
     * Get the template of the html code of the response value  associate to the entry
     * @param response the response associate to the entry
     * @return the template of the html code of the response value  associate to the entry
     */
    public String getTemplateHtmlCodeResponse(  )
    {
        return _template_html_code_response;
    }
}
FichierLigne
fr/paris/lutece/plugins/digglike/business/EntryTypeText.java69
fr/paris/lutece/plugins/digglike/business/EntryTypeUrl.java69
    public String getTemplateHtmlCodeForm(  )
    {
        return _template_html_code_form;
    }

    /**
     * Get the request data
     * @param request HttpRequest
     * @param locale the locale
     * @return null if all data requiered are in the request else the url of jsp error
     */
    public String getRequestData( HttpServletRequest request, Locale locale )
    {
        String strTitle = request.getParameter( PARAMETER_TITLE );
        String strHelpMessage = request.getParameter( PARAMETER_HELP_MESSAGE );
        String strComment = request.getParameter( PARAMETER_COMMENT );
        String strValue = request.getParameter( PARAMETER_VALUE );
        String strMandatory = request.getParameter( PARAMETER_MANDATORY );
        String strWidth = request.getParameter( PARAMETER_WIDTH );
        String strMaxSizeEnter = request.getParameter( PARAMETER_MAX_SIZE_ENTER );
        String strShowInDiggSubmitList = request.getParameter( PARAMETER_SHOW_IN_DIGG_SUBMIT_LIST );

        int nWidth = -1;
        int nMaxSizeEnter = -1;

        String strFieldError = EMPTY_STRING;

        if ( ( strTitle == null ) || strTitle.trim(  ).equals( EMPTY_STRING ) )
        {
            strFieldError = FIELD_TITLE;
        }

        else if ( ( strWidth == null ) || strWidth.trim(  ).equals( EMPTY_STRING ) )
        {
            strFieldError = FIELD_WIDTH;
        }

        if ( !strFieldError.equals( EMPTY_STRING ) )
        {
            Object[] tabRequiredFields = { I18nService.getLocalizedString( strFieldError, locale ) };

            return AdminMessageService.getMessageUrl( request, MESSAGE_MANDATORY_FIELD, tabRequiredFields,
                AdminMessage.TYPE_STOP );
        }

        try
        {
            nWidth = Integer.parseInt( strWidth );
        }
        catch ( NumberFormatException ne )
        {
            strFieldError = FIELD_WIDTH;
        }

        try
        {
            if ( ( strMaxSizeEnter != null ) && !strMaxSizeEnter.trim(  ).equals( EMPTY_STRING ) )
            {
                nMaxSizeEnter = Integer.parseInt( strMaxSizeEnter );
            }
        }
        catch ( NumberFormatException ne )
        {
            strFieldError = FIELD_MAX_SIZE_ENTER;
        }

        if ( !strFieldError.equals( EMPTY_STRING ) )
        {
            Object[] tabRequiredFields = { I18nService.getLocalizedString( strFieldError, locale ) };

            return AdminMessageService.getMessageUrl( request, MESSAGE_NUMERIC_FIELD, tabRequiredFields,
                AdminMessage.TYPE_STOP );
        }

        this.setTitle( strTitle );
        this.setHelpMessage( DiggUtils.trim( strHelpMessage ) );
        this.setComment( strComment );

        this.setDefaultValue( strValue );
        this.setWidth( nWidth );
        this.setMaxSizeEnter( nMaxSizeEnter );

        if ( strMandatory != null )
        {
            this.setMandatory( true );
        }
        else
        {
            this.setMandatory( false );
        }

        if ( strShowInDiggSubmitList != null )
        {
            this.setShowInDiggSubmitList( true );
        }
        else
        {
            this.setShowInDiggSubmitList( false );
        }

        return null;
    }

    /**
     * Get the request data
     * @param request HttpRequest
     * @param locale the locale
     * @param plugin the plugin
     * @return null if all data requiered are in the request else the url of jsp error
     */
    public String getRequestData( HttpServletRequest request, Locale locale, Plugin plugin )
FichierLigne
fr/paris/lutece/plugins/digglike/business/DiggDAO.java165
fr/paris/lutece/plugins/digglike/business/DiggDAO.java315
        daoUtil.setTimestamp( ncpt++, timestamp );
        daoUtil.setString( ncpt++, digg.getLibelleValidateButton(  ) );
        daoUtil.setBoolean( ncpt++, digg.isActiveDiggPropositionState(  ) );
        daoUtil.setString( ncpt++, digg.getLibelleContribution(  ) );
        daoUtil.setInt( ncpt++, digg.getNumberDiggSubmitInTopScore(  ) );
        daoUtil.setInt( ncpt++, digg.getNumberDiggSubmitInTopComment(  ) );
        daoUtil.setBoolean( ncpt++, digg.isLimitNumberVote(  ) );
        daoUtil.setInt( ncpt++, digg.getNumberDiggSubmitCaractersShown(  ) );
        daoUtil.setBoolean( ncpt++, digg.isShowCategoryBlock(  ) );
        daoUtil.setBoolean( ncpt++, digg.isShowTopScoreBlock(  ) );
        daoUtil.setBoolean( ncpt++, digg.isShowTopCommentBlock(  ) );
        daoUtil.setBoolean( ncpt++, digg.isActiveDiggSubmitPaginator(  ) );
        daoUtil.setInt( ncpt++, digg.getNumberDiggSubmitPerPage(  ) );
        daoUtil.setString( ncpt++, digg.getRole(  ) );
        daoUtil.setBoolean( ncpt++, digg.isEnableMailNewDiggSubmit(  ) );
        daoUtil.setString( ncpt++, digg.getHeader(  ) );
        daoUtil.setInt( ncpt++, digg.getSortField(  ) );
        daoUtil.setString( ncpt++, digg.getCodeTheme(  ) );
        daoUtil.setString( ncpt++, digg.getConfirmationMessage(  ) );
        daoUtil.setBoolean( ncpt++, digg.isActiveEditorBbcode(  ) );
        daoUtil.setBoolean( ncpt++, digg.isDefaultDigg(  ) );
        daoUtil.setInt( ncpt++, digg.getIdDefaultSort(  ) );
        daoUtil.setString( ncpt++, digg.getNotificationNewCommentSenderName());
        daoUtil.setString( ncpt++, digg.getNotificationNewCommentTitle());
        daoUtil.setString( ncpt++, digg.getNotificationNewCommentBody());
        daoUtil.setString( ncpt++, digg.getNotificationNewDiggSubmitSenderName());
        daoUtil.setString( ncpt++, digg.getNotificationNewDiggSubmitTitle());
        daoUtil.setString( ncpt++, digg.getNotificationNewDiggSubmitBody());
        daoUtil.executeUpdate(  );
FichierLigne
fr/paris/lutece/plugins/digglike/web/action/MassChangeCommentDiggSubmitAction.java78
fr/paris/lutece/plugins/digglike/web/action/MassChangeVoteDiggSubmitAction.java78
    @Override
    public void fillModel( HttpServletRequest request, AdminUser adminUser, Map<String, Object> model )
    {
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getName(  )
    {
        return ACTION_NAME;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getButtonTemplate(  )
    {
        return null;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean isInvoked( HttpServletRequest request )
    {
        return ( ( request.getParameter( PARAMETER_MASS_DISABLE_ACTION ) != null ) ||
        ( request.getParameter( PARAMETER_MASS_ENABLE_ACTION ) != null ) );
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public IPluginActionResult process( HttpServletRequest request, HttpServletResponse response, AdminUser adminUser,
        DigglikeAdminSearchFields searchFields ) throws AccessDeniedException
    {
        IPluginActionResult result = new DefaultPluginActionResult(  );

        int nIdDiggSubmit;
        String strRedirect = DiggJspBean.getJspManageDiggSubmit( request );

        if ( ( searchFields.getSelectedDiggSubmit(  ) != null ) && !searchFields.getSelectedDiggSubmit(  ).isEmpty(  ) )
        {
            //test All ressource selected before update
            for ( String strIdDiggSubmit : searchFields.getSelectedDiggSubmit(  ) )
            {
                if ( StringUtils.isNotBlank( strIdDiggSubmit ) && StringUtils.isNumeric( strIdDiggSubmit ) )
                {
                    nIdDiggSubmit = DiggUtils.getIntegerParameter( strIdDiggSubmit );

                    DiggSubmit diggSubmit = DiggSubmitService.getService(  )
                                                             .findByPrimaryKey( nIdDiggSubmit, false, getPlugin(  ) );

                    if ( ( diggSubmit == null ) ||
                            !RBACService.isAuthorized( Digg.RESOURCE_TYPE,
                                DiggUtils.EMPTY_STRING + diggSubmit.getDigg(  ).getIdDigg(  ),
                                DigglikeResourceIdService.PERMISSION_MANAGE_DIGG_SUBMIT, adminUser ) )
                    {
                        throw new AccessDeniedException(  );
                    }
                }
            }

            boolean isDisabledVote = ( request.getParameter( PARAMETER_MASS_DISABLE_ACTION ) != null );

            //update all digg submit selected
            for ( String strIdDiggSubmittoUpdate : searchFields.getSelectedDiggSubmit(  ) )
            {
                if ( StringUtils.isNotBlank( strIdDiggSubmittoUpdate ) &&
                        StringUtils.isNumeric( strIdDiggSubmittoUpdate ) )
                {
                    nIdDiggSubmit = DiggUtils.getIntegerParameter( strIdDiggSubmittoUpdate );

                    DiggSubmit diggSubmit = DiggSubmitService.getService(  )
                                                             .findByPrimaryKey( nIdDiggSubmit, false, getPlugin(  ) );
                    diggSubmit.setDisableComment( isDisabledVote );
FichierLigne
fr/paris/lutece/plugins/digglike/business/DiggSubmitDAO.java548
fr/paris/lutece/plugins/digglike/business/DiggSubmitDAO.java703
                strOrderBy );
        DAOUtil daoUtil = new DAOUtil( strSQL, plugin );
        int nIndex = 1;

        if ( filter.containsIdDigg(  ) )
        {
            daoUtil.setInt( nIndex, filter.getIdDigg(  ) );
            nIndex++;
        }

        if ( filter.containsIdDiggSubmit(  ) )
        {
            daoUtil.setInt( nIndex, filter.getIdDiggSubmit(  ) );
            nIndex++;
        }

        if ( filter.containsIdDiggSubmitState(  ) )
        {
            daoUtil.setInt( nIndex, filter.getIdDiggSubmitState(  ) );
            nIndex++;
        }

        if ( filter.containsIdCategory(  ) )
        {
            daoUtil.setInt( nIndex, filter.getIdCategory(  ) );
            nIndex++;
        }

        if ( filter.containsDateFirst(  ) )
        {
            daoUtil.setTimestamp( nIndex, filter.getDateFirst(  ) );
            nIndex++;
        }

        if ( filter.containsDateLast(  ) )
        {
            daoUtil.setTimestamp( nIndex, filter.getDateLast(  ) );
            nIndex++;
        }

        if ( filter.containsIdReported(  ) )
        {
            daoUtil.setBoolean( nIndex, filter.convertIdBoolean( filter.getIdReported(  ) ) );
            nIndex++;
        }

        if ( filter.containsNumberVote(  ) )
        {
            daoUtil.setInt( nIndex, filter.getNumberVote(  ) );
            nIndex++;
        }

        if ( filter.containsIdPinned(  ) )
        {
            daoUtil.setInt( nIndex, filter.getIdPinned(  ) );
            nIndex++;
        }
        
        if ( filter.containsLuteceUserKey())
        {
        	  daoUtil.setString( nIndex, filter.getLuteceUserKey());
        	  nIndex++;
        }

        if ( filter.containsIdType(  ) )
        {
            daoUtil.setInt( nIndex, filter.getIdType(  ) );
            nIndex++;
        }
       

        daoUtil.executeQuery(  );
FichierLigne
fr/paris/lutece/plugins/digglike/business/ResponseDAO.java140
fr/paris/lutece/plugins/digglike/business/ResponseDAO.java280
        if ( daoUtil.next(  ) )
        {
            response = new Response(  );
            response.setIdResponse( daoUtil.getInt( 1 ) );

            diggSubmit = new DiggSubmit(  );
            diggSubmit.setIdDiggSubmit( daoUtil.getInt( 2 ) );
            response.setDiggSubmit( diggSubmit );

            response.setValueResponse( daoUtil.getString( 3 ) );
            entryType = new EntryType(  );
            entryType.setClassName( daoUtil.getString( 4 ) );
            entryType.setIdType( daoUtil.getInt( 7 ) );

            try
            {
                entry = (IEntry) Class.forName( entryType.getClassName(  ) ).newInstance(  );
            }
            catch ( ClassNotFoundException e )
            {
                //  class doesn't exist
                AppLogService.error( e );
                bException = true;
            }
            catch ( InstantiationException e )
            {
                // Class is abstract or is an  interface or haven't accessible builder
                AppLogService.error( e );
                bException = true;
            }
            catch ( IllegalAccessException e )
            {
                // can't access to rhe class
                AppLogService.error( e );
                bException = true;
            }

            if ( bException )
            {
                return null;
            }

            entry.setEntryType( entryType );
            entry.setIdEntry( daoUtil.getInt( 5 ) );
            entry.setTitle( daoUtil.getString( 6 ) );
            entry.setShowInDiggSubmitList( daoUtil.getBoolean( 8 ) );
            response.setEntry( entry );

            if ( daoUtil.getObject( 9 ) != null )
            {
                response.setIdImageResource( daoUtil.getInt( 9 ) );
            }
FichierLigne
fr/paris/lutece/plugins/digglike/business/DiggDAO.java149
fr/paris/lutece/plugins/digglike/business/DiggDAO.java299
        daoUtil.setInt( ncpt++, digg.getIdDigg(  ) );
        daoUtil.setString( ncpt++, digg.getTitle(  ) );
        daoUtil.setString( ncpt++, digg.getUnavailabilityMessage(  ) );
        daoUtil.setString( ncpt++, digg.getWorkgroup(  ) );
        daoUtil.setInt( ncpt++, digg.getVoteType(  ).getIdVoteType(  ) );
        daoUtil.setInt( ncpt++, digg.getNumberVoteRequired(  ) );
        daoUtil.setInt( ncpt++, digg.getNumberDayRequired(  ) );
        daoUtil.setBoolean( ncpt++, digg.isActiveDiggSubmitAuthentification(  ) );
        daoUtil.setBoolean( ncpt++, digg.isActiveVoteAuthentification(  ) );
        daoUtil.setBoolean( ncpt++, digg.isActiveCommentAuthentification(  ) );
        daoUtil.setBoolean( ncpt++, digg.isDisableNewDiggSubmit(  ) );
        daoUtil.setBoolean( ncpt++, digg.isAuthorizedComment(  ) );
        daoUtil.setBoolean( ncpt++, digg.isDisableNewComment(  ) );
        daoUtil.setInt( ncpt++, digg.getIdMailingListDiggSubmit(  ) );
        daoUtil.setBoolean( ncpt++, digg.isActiveCaptcha(  ) );
        daoUtil.setBoolean( ncpt++, digg.isActive(  ) );
        daoUtil.setTimestamp( ncpt++, timestamp );
FichierLigne
fr/paris/lutece/plugins/digglike/business/EntryTypeImage.java93
fr/paris/lutece/plugins/digglike/business/EntryTypeVideo.java103
        String strShowInDiggSubmitList = request.getParameter( PARAMETER_SHOW_IN_DIGG_SUBMIT_LIST );

        int nWidth = -1;
        int nHeight = -1;

        String strFieldError = EMPTY_STRING;

        if ( ( strTitle == null ) || strTitle.trim(  ).equals( EMPTY_STRING ) )
        {
            strFieldError = FIELD_TITLE;
        }

        if ( !strFieldError.equals( EMPTY_STRING ) )
        {
            Object[] tabRequiredFields = { I18nService.getLocalizedString( strFieldError, locale ) };

            return AdminMessageService.getMessageUrl( request, MESSAGE_MANDATORY_FIELD, tabRequiredFields,
                AdminMessage.TYPE_STOP );
        }

        try
        {
            if ( !( ( strHeight == null ) || strHeight.trim(  ).equals( EMPTY_STRING ) ) )
            {
                nHeight = Integer.parseInt( strHeight );
            }
        }
        catch ( NumberFormatException ne )
        {
            strFieldError = FIELD_HEIGHT;
        }

        try
        {
            if ( !( ( strWidth == null ) || strWidth.trim(  ).equals( EMPTY_STRING ) ) )
            {
                nWidth = Integer.parseInt( strWidth );
            }
        }
        catch ( NumberFormatException ne )
        {
            strFieldError = FIELD_WIDTH;
        }

        if ( !strFieldError.equals( EMPTY_STRING ) )
        {
            Object[] tabRequiredFields = { I18nService.getLocalizedString( strFieldError, locale ) };

            return AdminMessageService.getMessageUrl( request, MESSAGE_NUMERIC_FIELD, tabRequiredFields,
                AdminMessage.TYPE_STOP );
        }
FichierLigne
fr/paris/lutece/plugins/digglike/business/DiggSubmitDAO.java467
fr/paris/lutece/plugins/digglike/business/DiggSubmitDAO.java642
        if ( filter.containsIdDigg(  ) )
        {
            listStrFilter.add( SQL_FILTER_ID_DIGG );
        }

        if ( filter.containsIdDiggSubmit(  ) )
        {
            listStrFilter.add( SQL_FILTER_ID_DIGG_SUBMIT );
        }

        if ( filter.containsIdDiggSubmitState(  ) )
        {
            listStrFilter.add( SQL_FILTER_ID_DIGG_SUBMIT_STATE );
        }

        if ( filter.containsIdCategory(  ) )
        {
            listStrFilter.add( SQL_FILTER_ID_CATEGORY );
        }

        if ( filter.containsDateFirst(  ) )
        {
            listStrFilter.add( SQL_FILTER_DATE_FIRST_SUBMIT );
        }

        if ( filter.containsDateLast(  ) )
        {
            listStrFilter.add( SQL_FILTER_DATE_LAST_SUBMIT );
        }

        if ( filter.containsIdReported(  ) )
        {
            listStrFilter.add( SQL_FILTER_REPORTED );
        }

        if ( filter.containsNumberVote(  ) )
        {
            listStrFilter.add( SQL_FILTER_NUMBER_VOTE );
        }

        if ( filter.containsIdPinned(  ) )
        {
            listStrFilter.add( SQL_FILTER_IS_PINNED );
        }
        if ( filter.containsLuteceUserKey())
        {
            listStrFilter.add( SQL_FILTER_LUTECE_USER_KEY);
        }

        if ( filter.containsIdType(  ) )
        {
            listStrFilter.add( SQL_FILTER_ID_TYPE );
        }
       
        
        

        if ( filter.containsIdContainsCommentDisable(  ) )
        {
            listStrFilter.add( ( filter.getIdContainsCommentDisable(  ) == SubmitFilter.ID_TRUE )
                ? SQL_FILTER_CONTAINS_COMMENT_DISABLE : SQL_FILTER_NOT_CONTAINS_COMMENT_DISABLE );
        }
FichierLigne
fr/paris/lutece/plugins/digglike/business/DiggSubmitDAO.java391
fr/paris/lutece/plugins/digglike/business/DiggSubmitDAO.java560
fr/paris/lutece/plugins/digglike/business/DiggSubmitDAO.java715
            daoUtil.setInt( nIndex, filter.getIdDigg(  ) );
            nIndex++;
        }

        if ( filter.containsIdDiggSubmitState(  ) )
        {
            daoUtil.setInt( nIndex, filter.getIdDiggSubmitState(  ) );
            nIndex++;
        }

        if ( filter.containsIdCategory(  ) )
        {
            daoUtil.setInt( nIndex, filter.getIdCategory(  ) );
            nIndex++;
        }

        if ( filter.containsDateFirst(  ) )
        {
            daoUtil.setTimestamp( nIndex, filter.getDateFirst(  ) );
            nIndex++;
        }

        if ( filter.containsDateLast(  ) )
        {
            daoUtil.setTimestamp( nIndex, filter.getDateLast(  ) );
            nIndex++;
        }

        if ( filter.containsIdReported(  ) )
        {
            daoUtil.setBoolean( nIndex, filter.convertIdBoolean( filter.getIdReported(  ) ) );
            nIndex++;
        }

        if ( filter.containsNumberVote(  ) )
        {
            daoUtil.setInt( nIndex, filter.getNumberVote(  ) );
            nIndex++;
        }

        if ( filter.containsIdPinned(  ) )
        {
            daoUtil.setInt( nIndex, filter.getIdPinned(  ) );
            nIndex++;
        }

        if ( filter.containsIdType(  ) )
FichierLigne
fr/paris/lutece/plugins/digglike/web/action/MassChangeCommentDiggSubmitAction.java108
fr/paris/lutece/plugins/digglike/web/action/MassChangeVoteDiggSubmitAction.java108
fr/paris/lutece/plugins/digglike/web/action/MassPinnedDiggSubmitAction.java108
        ( request.getParameter( PARAMETER_MASS_ENABLE_ACTION ) != null ) );
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public IPluginActionResult process( HttpServletRequest request, HttpServletResponse response, AdminUser adminUser,
        DigglikeAdminSearchFields searchFields ) throws AccessDeniedException
    {
        IPluginActionResult result = new DefaultPluginActionResult(  );

        int nIdDiggSubmit;
        String strRedirect = DiggJspBean.getJspManageDiggSubmit( request );

        if ( ( searchFields.getSelectedDiggSubmit(  ) != null ) && !searchFields.getSelectedDiggSubmit(  ).isEmpty(  ) )
        {
            //test All ressource selected before update
            for ( String strIdDiggSubmit : searchFields.getSelectedDiggSubmit(  ) )
            {
                if ( StringUtils.isNotBlank( strIdDiggSubmit ) && StringUtils.isNumeric( strIdDiggSubmit ) )
                {
                    nIdDiggSubmit = DiggUtils.getIntegerParameter( strIdDiggSubmit );

                    DiggSubmit diggSubmit = DiggSubmitService.getService(  )
                                                             .findByPrimaryKey( nIdDiggSubmit, false, getPlugin(  ) );

                    if ( ( diggSubmit == null ) ||
                            !RBACService.isAuthorized( Digg.RESOURCE_TYPE,
                                DiggUtils.EMPTY_STRING + diggSubmit.getDigg(  ).getIdDigg(  ),
                                DigglikeResourceIdService.PERMISSION_MANAGE_DIGG_SUBMIT, adminUser ) )
                    {
                        throw new AccessDeniedException(  );
                    }
                }
            }

            boolean isDisabledVote = ( request.getParameter( PARAMETER_MASS_DISABLE_ACTION ) != null );
FichierLigne
fr/paris/lutece/plugins/digglike/business/EntryDAO.java178
fr/paris/lutece/plugins/digglike/business/EntryDAO.java308
        if ( daoUtil.next(  ) )
        {
            entryType = new EntryType(  );
            entryType.setIdType( daoUtil.getInt( 1 ) );
            entryType.setTitle( daoUtil.getString( 2 ) );
            entryType.setClassName( daoUtil.getString( 3 ) );

            try
            {
                entry = (IEntry) Class.forName( entryType.getClassName(  ) ).newInstance(  );
            }
            catch ( ClassNotFoundException e )
            {
                //  class doesn't exist
                AppLogService.error( e );

                return null;
            }
            catch ( InstantiationException e )
            {
                // Class is abstract or is an  interface or haven't accessible builder
                AppLogService.error( e );

                return null;
            }
            catch ( IllegalAccessException e )
            {
                // can't access to rhe class
                AppLogService.error( e );

                return null;
            }

            entry.setEntryType( entryType );
            entry.setIdEntry( daoUtil.getInt( 4 ) );
            // insert form
            digg = new Digg(  );
            digg.setIdDigg( daoUtil.getInt( 5 ) );
FichierLigne
fr/paris/lutece/plugins/digglike/web/DiggJspBean.java2726
fr/paris/lutece/plugins/digglike/web/DiggJspBean.java2774
    public String doMoveUpEntry( HttpServletRequest request )
    {
        Plugin plugin = getPlugin(  );
        IEntry entry;
        String strIdEntry = request.getParameter( PARAMETER_ID_ENTRY );
        int nIdEntry = DiggUtils.getIntegerParameter( strIdEntry );

        entry = EntryHome.findByPrimaryKey( nIdEntry, plugin );

        Digg digg = DiggHome.findByPrimaryKey( _nIdDigg, plugin );

        if ( ( entry == null ) || ( digg == null ) ||
                !RBACService.isAuthorized( Digg.RESOURCE_TYPE, EMPTY_STRING + _nIdDigg,
                    DigglikeResourceIdService.PERMISSION_MODIFY, getUser(  ) ) )
        {
            return getJspManageDigg( request );
        }

        List<IEntry> listEntry;
        EntryFilter filter = new EntryFilter(  );
        filter.setIdDigg( entry.getDigg(  ).getIdDigg(  ) );
        listEntry = EntryHome.getEntryList( filter, plugin );

        int nIndexEntry = DiggUtils.getIndexEntryInTheEntryList( nIdEntry, listEntry );

        if ( nIndexEntry != 0 )
FichierLigne
fr/paris/lutece/plugins/digglike/business/rss/DiggResourceRss.java382
fr/paris/lutece/plugins/digglike/business/rss/DiggResourceRss.java439
        Map<String, ReferenceList> diggMap = new HashMap<String, ReferenceList>(  );

        for ( Digg digg : diggList )
        {
            SubmitFilter submitFilter = new SubmitFilter(  );
            submitFilter.setIdDigg( digg.getIdDigg(  ) );

            List<DiggSubmit> diggSubmitList = DiggSubmitService.getService(  )
                                                               .getDiggSubmitList( submitFilter, pluginDigglike );
            ReferenceList referenceDiggSubmit = new ReferenceList(  );

            for ( DiggSubmit diggSubmit : diggSubmitList )
            {
                referenceDiggSubmit.addItem( diggSubmit.getIdDiggSubmit(  ),
                    diggSubmit.getDiggSubmitValue(  ).replaceAll( "<div[^>]+>", "" ).replaceAll( "</div>", "" ) );
            }

            diggMap.put( String.valueOf( digg.getIdDigg(  ) ), referenceDiggSubmit );
            referenceDigg.addItem( digg.getIdDigg(  ), digg.getTitle(  ) );
        }
FichierLigne
fr/paris/lutece/plugins/digglike/web/DiggApp.java753
fr/paris/lutece/plugins/digglike/web/DiggApp.java841
                                               .createDiggSubmitSubscription( luteceUserConnected, nIdSubmitDigg );

            urlItem.addParameter( PARAMETER_ID_SUBMIT_DIGG, strIdSubmitDigg );
            urlItem.addParameter( PARAMETER_ACTION, ACTION_VIEW_DIGG_SUBMIT );
        }
        else
        {
            String strIdFilterCategory = request.getParameter( PARAMETER_ID_FILTER_CATEGORY_DIGG );
            int nIdCategory = -1;

            if ( StringUtils.isNotEmpty( strIdFilterCategory ) && StringUtils.isNumeric( strIdFilterCategory ) )
            {
                nIdCategory = Integer.parseInt( strIdFilterCategory );
            }

            if ( nIdCategory > 0 )
            {
                if ( CategoryHome.findByPrimaryKey( nIdCategory, _plugin ) == null )
                {
                    SiteMessageService.setMessage( request, MESSAGE_ERROR, SiteMessage.TYPE_STOP );

                    return;
                }

                DigglikeSubscriptionProviderService.getService(  )
                                                   .createDiggCategorySubscription( luteceUserConnected, nIdCategory );
                urlItem.addParameter( PARAMETER_ID_FILTER_CATEGORY_DIGG, strIdFilterCategory );
            }
            else
            {
                String strIdDigg = request.getParameter( PARAMETER_ID_DIGG );
                int nIdDigg = DiggUtils.getIntegerParameter( strIdDigg );
FichierLigne
fr/paris/lutece/plugins/digglike/business/CommentSubmitDAO.java141
fr/paris/lutece/plugins/digglike/business/CommentSubmitDAO.java278
        if ( daoUtil.next(  ) )
        {
            commentSubmit = new CommentSubmit(  );
            commentSubmit.setIdCommentSubmit( daoUtil.getInt( 1 ) );

            diggSubmit = new DiggSubmit(  );
            diggSubmit.setIdDiggSubmit( daoUtil.getInt( 2 ) );
            commentSubmit.setDiggSubmit( diggSubmit );

            commentSubmit.setDateComment( daoUtil.getTimestamp( 3 ) );
            commentSubmit.setValue( daoUtil.getString( 4 ) );
            commentSubmit.setActive( daoUtil.getBoolean( 5 ) );
            commentSubmit.setLuteceUserKey( daoUtil.getString( 6 ) );
            commentSubmit.setOfficialAnswer( daoUtil.getBoolean( 7 ) );
            commentSubmit.setIdParent( daoUtil.getInt( 8 ) );
            commentSubmit.setDateModify( daoUtil.getTimestamp( 9 ) );
FichierLigne
fr/paris/lutece/plugins/digglike/web/DiggApp.java730
fr/paris/lutece/plugins/digglike/web/DiggApp.java818
    public void doSubscribeDigg( HttpServletRequest request )
        throws SiteMessageException
    {
        LuteceUser luteceUserConnected = SecurityService.getInstance(  ).getRegisteredUser( request );
        String strIdSubmitDigg = request.getParameter( PARAMETER_ID_SUBMIT_DIGG );

        UrlItem urlItem = new UrlItem( request.getRequestURL(  ).toString(  ) );
        urlItem.addParameter( PARAMETER_PAGE, CONSTANT_DIGG );
        urlItem.addParameter( PARAMETER_ID_DIGG, request.getParameter( PARAMETER_ID_DIGG ) );

        if ( StringUtils.isNotEmpty( strIdSubmitDigg ) )
        {
            int nIdSubmitDigg = DiggUtils.getIntegerParameter( strIdSubmitDigg );
            DiggSubmit diggSubmit = _diggSubmitService.findByPrimaryKey( nIdSubmitDigg, true, _plugin );

            if ( diggSubmit == null )
            {
                SiteMessageService.setMessage( request, MESSAGE_ERROR, SiteMessage.TYPE_STOP );

                return;
            }

            DigglikeSubscriptionProviderService.getService(  )
                                               .createDiggSubmitSubscription( luteceUserConnected, nIdSubmitDigg );
FichierLigne
fr/paris/lutece/plugins/digglike/business/DiggSubmitDAO.java324
fr/paris/lutece/plugins/digglike/business/DiggSubmitDAO.java474
fr/paris/lutece/plugins/digglike/business/DiggSubmitDAO.java649
            listStrFilter.add( SQL_FILTER_ID_DIGG );
        }

        if ( filter.containsIdDiggSubmitState(  ) )
        {
            listStrFilter.add( SQL_FILTER_ID_DIGG_SUBMIT_STATE );
        }

        if ( filter.containsIdCategory(  ) )
        {
            listStrFilter.add( SQL_FILTER_ID_CATEGORY );
        }

        if ( filter.containsDateFirst(  ) )
        {
            listStrFilter.add( SQL_FILTER_DATE_FIRST_SUBMIT );
        }

        if ( filter.containsDateLast(  ) )
        {
            listStrFilter.add( SQL_FILTER_DATE_LAST_SUBMIT );
        }

        if ( filter.containsIdReported(  ) )
        {
            listStrFilter.add( SQL_FILTER_REPORTED );
        }

        if ( filter.containsNumberVote(  ) )
        {
            listStrFilter.add( SQL_FILTER_NUMBER_VOTE );
        }

        if ( filter.containsIdPinned(  ) )
        {
            listStrFilter.add( SQL_FILTER_IS_PINNED );
        }

        if ( filter.containsIdType(  ) )
FichierLigne
fr/paris/lutece/plugins/digglike/web/DiggJspBean.java1510
fr/paris/lutece/plugins/digglike/web/DiggJspBean.java1545
    public String doDisableCommentSubmit( HttpServletRequest request )
    {
        String strIdCommentSubmit = request.getParameter( PARAMETER_ID_COMMENT_SUBMIT );
        Plugin plugin = getPlugin(  );
        int nIdCommentSubmit = DiggUtils.getIntegerParameter( strIdCommentSubmit );
        CommentSubmit commentSubmit = _commentSubmitService.findByPrimaryKey( nIdCommentSubmit, plugin );

        if ( commentSubmit != null )
        {
            DiggSubmit diggSubmit = _diggSubmitService.findByPrimaryKey( commentSubmit.getDiggSubmit(  )
                                                                                      .getIdDiggSubmit(  ), false,
                    plugin );

            if ( !RBACService.isAuthorized( Digg.RESOURCE_TYPE, EMPTY_STRING + diggSubmit.getDigg(  ).getIdDigg(  ),
                        DigglikeResourceIdService.PERMISSION_MANAGE_DIGG_SUBMIT, getUser(  ) ) )
            {
                return getJspManageDigg( request );
            }

            commentSubmit.setActive( false );
FichierLigne
fr/paris/lutece/plugins/digglike/utils/DiggUtils.java196
fr/paris/lutece/plugins/digglike/utils/DiggUtils.java242
            String strSenderName = I18nService.getLocalizedString( PROPERTY_NOTIFICATION_MAIL_NEW_DIGG_SUBMIT_SENDER_NAME,
                    locale );
            String strSenderEmail = MailService.getNoReplyEmail(  );

            //we have to replace the src='image? string by a string containing the server url
            if ( diggSubmit.getDiggSubmitValue(  ).toString(  ).contains( "src='image?" ) )
            {
                diggSubmit.setDiggSubmitValue( diggSubmit.getDiggSubmitValue(  ).toString(  )
                                                         .replace( "src='image?",
                        "src='" + AppPropertiesService.getProperty( PROPERTY_PROD_URL ) + "/image?" ) );
            }

            Collection<Recipient> listRecipients = AdminMailingListService.getRecipients( digg.getIdMailingListDiggSubmit(  ) );
            Map<String, Object> model = new HashMap<String, Object>(  );
            model.put( MARK_DIGG, digg );
            model.put( MARK_DIGG_SUBMIT, diggSubmit );
FichierLigne
fr/paris/lutece/plugins/digglike/web/DefaultMessageJspBean.java215
fr/paris/lutece/plugins/digglike/web/DiggJspBean.java1748
        }
      
        else if(StringUtils.isEmpty(strNotificationNewCommentTitle))
        {
        	strFieldError = FIELD_NOTIFICATION_NEW_COMMENT_TITLE;
        	
        }
        else if(StringUtils.isEmpty(strNotificationNewCommentBody))
        {
        	strFieldError = FIELD_NOTIFICATION_NEW_COMMENT_BODY;
        	
        }
   
        else if(StringUtils.isEmpty(strNotificationNewDiggSubmitTitle))
        {
        	
        	strFieldError = FIELD_NOTIFICATION_NEW_DIGG_DUBMIT_TITLE;
        }
        else if(StringUtils.isEmpty(strNotificationNewDiggSubmitBody))
        {
        	
        	strFieldError = FIELD_NOTIFICATION_NEW_DIGG_DUBMIT_BODY;
        }

        if ( !strFieldError.equals( EMPTY_STRING ) )
        {
            Object[] tabRequiredFields = { I18nService.getLocalizedString( strFieldError, getLocale(  ) ) };

            return AdminMessageService.getMessageUrl( request, MESSAGE_MANDATORY_FIELD, tabRequiredFields,
                AdminMessage.TYPE_STOP );
        }

        if ( nNumberDiggSubmitInTopScore < 0 )
FichierLigne
fr/paris/lutece/plugins/digglike/business/CommentSubmitDAO.java114
fr/paris/lutece/plugins/digglike/business/CommentSubmitDAO.java182
        commentSubmit.setIdCommentSubmit( newPrimaryKey( plugin ) );
        daoUtil.setInt( 1, commentSubmit.getIdCommentSubmit(  ) );
        daoUtil.setInt( 2, commentSubmit.getDiggSubmit(  ).getIdDiggSubmit(  ) );
        daoUtil.setTimestamp( 3, commentSubmit.getDateComment(  ) );
        daoUtil.setString( 4, commentSubmit.getValue(  ) );
        daoUtil.setBoolean( 5, commentSubmit.isActive(  ) );
        daoUtil.setString( 6, commentSubmit.getLuteceUserKey(  ) );
        daoUtil.setBoolean( 7, commentSubmit.isOfficialAnswer(  ) );
        daoUtil.setInt( 8, commentSubmit.getIdParent(  ) );
        daoUtil.setTimestamp( 9, commentSubmit.getDateModify(  ) );
FichierLigne
fr/paris/lutece/plugins/digglike/business/CommentSubmitDAO.java146
fr/paris/lutece/plugins/digglike/business/CommentSubmitDAO.java283
fr/paris/lutece/plugins/digglike/business/CommentSubmitDAO.java318
            diggSubmit = new DiggSubmit(  );
            diggSubmit.setIdDiggSubmit( daoUtil.getInt( 2 ) );
            commentSubmit.setDiggSubmit( diggSubmit );

            commentSubmit.setDateComment( daoUtil.getTimestamp( 3 ) );
            commentSubmit.setValue( daoUtil.getString( 4 ) );
            commentSubmit.setActive( daoUtil.getBoolean( 5 ) );
            commentSubmit.setLuteceUserKey( daoUtil.getString( 6 ) );
            commentSubmit.setOfficialAnswer( daoUtil.getBoolean( 7 ) );
            commentSubmit.setIdParent( daoUtil.getInt( 8 ) );
            commentSubmit.setDateModify( daoUtil.getTimestamp( 9 ) );