CPD Results

The following document contains the results of PMD's CPD 4.3.

Duplications

FileLine
fr/paris/lutece/plugins/formengine/modules/sample/web/ChoiceSubForm.java82
fr/paris/lutece/plugins/formengine/modules/sample/web/MiddleSubForm.java82
                strNextSubForm = this.getNextSubForm( ).getName( );
            }
            else
            {
                strNextSubForm = this.getName( );
            }
        }
        else if ( strActionName.equals( Constants.ACTION_NAME_PREVIOUS ) )
        {
            strNextSubForm = this.getPreviousSubForm( ).getName( );
        }
        else if ( strActionName.equals( Constants.ACTION_NAME_ENREGISTREMENT ) )
        {
            this.fillFields( request );
            doSetData( request );

            HttpSession session = request.getSession( true );
            session.setAttribute( Constants.SESSION_ATTRIBUTE_SAVE, Constants.SESSION_ATTRIBUTE_SAVE_VALUE );
            strNextSubForm = this.getName( );
        }

        this.getParentForm( ).setIsAccessToSubFormAllowed( request, strNextSubForm, true );

        return strNextSubForm;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected String displaySummary( HttpServletRequest request )
    {
        StringBuilder sbResult = new StringBuilder( SUMMARY_MESSAGE );
        HttpSession session = request.getSession( true );

        if ( StringUtils.isBlank( (String) session.getAttribute( SharedConstants.SESSION_ATTRIBUTE_WARNING_ERROR_WS ) ) )
        {
            if ( StringUtils.isNotBlank( (String) session.getAttribute( Constants.SESSION_ATTRIBUTE_SAVE_BIS ) ) )