Fork me on GitHub

CPD Results

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

Duplications

File Line
fr/paris/lutece/plugins/extend/modules/opengraph/web/OpengraphJspBean.java 210
fr/paris/lutece/plugins/extend/modules/opengraph/web/OpengraphJspBean.java 315
        if ( !RBACService.isAuthorized( OpengraphSocialHub.RESOURCE_TYPE, null, OpengraphResourceIdService.PERMISSION_ADD_SOCIALHUB,
                AdminUserService.getAdminUser( request ) ) )
        {
            return AdminMessageService.getMessageUrl( request, MESSAGE_UNAUTHORIZED_ACTION, AdminMessage.TYPE_STOP );
        }

        String strName = request.getParameter( PARAM_NAME );

        if ( StringUtils.isBlank( strName ) )
        {
            return AdminMessageService.getMessageUrl( request, MESSAGE_MANDATORY_FIELDS, AdminMessage.TYPE_STOP );
        }

        String strContentHeader = request.getParameter( PARAM_CONTENT_HEADER );
        String strContentBody = request.getParameter( PARAM_CONTENT_BODY );

        if ( StringUtils.isBlank( strContentBody ) )
        {
            return AdminMessageService.getMessageUrl( request, MESSAGE_MANDATORY_FIELDS, AdminMessage.TYPE_STOP );
        }

        String strContentFooter = request.getParameter( PARAM_CONTENT_FOOTER );