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/web/ResourceExtenderJspBean.java 482
fr/paris/lutece/plugins/extend/web/ResourceExtenderJspBean.java 540
        if ( !RBACService.isAuthorized( ResourceExtenderDTO.RESOURCE_TYPE, strIdExtender, ExtendableResourceResourceIdService.PERMISSION_VIEW_INFO,
                getUser( ) ) )
        {
            IPluginActionResult result = new DefaultPluginActionResult( );
            result.setRedirect( AdminMessageService.getMessageUrl( request, MESSAGE_UNAUTHORIZED_ACTION, AdminMessage.TYPE_STOP ) );

            return result;
        }

        // Find by request
        if ( resourceExtender == null )
        {
            resourceExtender = new ResourceExtenderDTO( );
            populate( resourceExtender, request );

            String strJspError = ExtendUtils.validateResourceExtender( request, resourceExtender );

            if ( StringUtils.isNotBlank( strJspError ) )
            {
                IPluginActionResult result = new DefaultPluginActionResult( );

                result.setRedirect( AdminMessageService.getMessageUrl( request, Messages.MANDATORY_FIELDS, AdminMessage.TYPE_STOP ) );

                return result;
            }
        }

        IPluginActionResult result = new DefaultPluginActionResult( );

        result.setHtmlContent( getAdminPage( _extenderComponentManager.getInfoHtml( resourceExtender, getLocale( ), request ) ) );
File Line
fr/paris/lutece/plugins/extend/business/extender/history/ResourceExtenderHistoryDAO.java 155
fr/paris/lutece/plugins/extend/business/extender/history/ResourceExtenderHistoryDAO.java 201
            int nIndex = 1;
            ResourceExtenderHistory history = new ResourceExtenderHistory( );
            history.setIdHistory( daoUtil.getLong( nIndex++ ) );
            history.setExtenderType( daoUtil.getString( nIndex++ ) );
            history.setIdExtendableResource( daoUtil.getString( nIndex++ ) );
            history.setExtendableResourceType( daoUtil.getString( nIndex++ ) );
            history.setUserGuid( daoUtil.getString( nIndex++ ) );
            history.setIpAddress( daoUtil.getString( nIndex++ ) );
            history.setDateCreation( daoUtil.getDate( nIndex ) );

            listHistories.add( history );
        }