Fork me on GitHub

Résultats CPD

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

Duplicatas

Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 387
fr/paris/lutece/plugins/blog/business/BlogDAO.java 425
            daoUtil.executeQuery( );

            while ( daoUtil.next( ) )
            {
                Blog blog = new Blog( );
                int nIndex = 1;

                blog.setId( daoUtil.getInt( nIndex++ ) );
                blog.setVersion( daoUtil.getInt( nIndex++ ) );
                blog.setContentLabel( daoUtil.getString( nIndex++ ) );
                blog.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setHtmlContent( daoUtil.getString( nIndex++ ) );
                blog.setUser( daoUtil.getString( nIndex++ ) );
                blog.setUserCreator( daoUtil.getString( nIndex++ ) );
                blog.setAttachedPortletId( daoUtil.getInt( nIndex++ ) );
                blog.setEditComment( daoUtil.getString( nIndex++ ) );
                blog.setDescription( daoUtil.getString( nIndex++ ) );
                blog.setShareable( daoUtil.getBoolean( nIndex++ ) );
                blog.setUrl( daoUtil.getString( nIndex++ ) );

                blogList.add( blog );
            }

        }
        return blogList;
    }

    /**
     * {@inheritDoc }
     */
    @Override
    public List<Blog> selectlastModifiedBlogsList( Plugin plugin, int nLimit )
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 424
fr/paris/lutece/plugins/blog/business/BlogDAO.java 824
            daoUtil.setInt( 1, nLimit );
            daoUtil.executeQuery( );

            while ( daoUtil.next( ) )
            {
                Blog blog = new Blog( );
                int nIndex = 1;

                blog.setId( daoUtil.getInt( nIndex++ ) );
                blog.setVersion( daoUtil.getInt( nIndex++ ) );
                blog.setContentLabel( daoUtil.getString( nIndex++ ) );
                blog.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setHtmlContent( daoUtil.getString( nIndex++ ) );
                blog.setUser( daoUtil.getString( nIndex++ ) );
                blog.setUserCreator( daoUtil.getString( nIndex++ ) );
                blog.setAttachedPortletId( daoUtil.getInt( nIndex++ ) );
                blog.setEditComment( daoUtil.getString( nIndex++ ) );
                blog.setDescription( daoUtil.getString( nIndex++ ) );
                blog.setShareable( daoUtil.getBoolean( nIndex++ ) );
                blog.setUrl( daoUtil.getString( nIndex++ ) );

                blogList.add( blog );
            }

        }
        return blogList;
    }
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 387
fr/paris/lutece/plugins/blog/business/BlogDAO.java 825
            daoUtil.executeQuery( );

            while ( daoUtil.next( ) )
            {
                Blog blog = new Blog( );
                int nIndex = 1;

                blog.setId( daoUtil.getInt( nIndex++ ) );
                blog.setVersion( daoUtil.getInt( nIndex++ ) );
                blog.setContentLabel( daoUtil.getString( nIndex++ ) );
                blog.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setHtmlContent( daoUtil.getString( nIndex++ ) );
                blog.setUser( daoUtil.getString( nIndex++ ) );
                blog.setUserCreator( daoUtil.getString( nIndex++ ) );
                blog.setAttachedPortletId( daoUtil.getInt( nIndex++ ) );
                blog.setEditComment( daoUtil.getString( nIndex++ ) );
                blog.setDescription( daoUtil.getString( nIndex++ ) );
                blog.setShareable( daoUtil.getBoolean( nIndex++ ) );
                blog.setUrl( daoUtil.getString( nIndex++ ) );

                blogList.add( blog );
            }

        }
        return blogList;
    }
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 207
fr/paris/lutece/plugins/blog/business/BlogDAO.java 244
            daoUtil.setInt( 1, nKey );
            daoUtil.executeQuery( );

            if ( daoUtil.next( ) )
            {
                blog = new Blog( );
                int nIndex = 1;

                blog.setId( daoUtil.getInt( nIndex++ ) );
                blog.setVersion( daoUtil.getInt( nIndex++ ) );
                blog.setContentLabel( daoUtil.getString( nIndex++ ) );
                blog.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setHtmlContent( daoUtil.getString( nIndex++ ) );
                blog.setUser( daoUtil.getString( nIndex++ ) );
                blog.setUserCreator( daoUtil.getString( nIndex++ ) );
                blog.setAttachedPortletId( daoUtil.getInt( nIndex++ ) );
                blog.setEditComment( daoUtil.getString( nIndex++ ) );
                blog.setDescription( daoUtil.getString( nIndex++ ) );
                blog.setShareable( daoUtil.getBoolean( nIndex++ ) );
                blog.setUrl( daoUtil.getString( nIndex++ ) );

            }

        }
        return blog;
    }

    /**
     * {@inheritDoc }
     */
    @Override
    public Blog loadByName( String strName, Plugin plugin )
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 207
fr/paris/lutece/plugins/blog/business/BlogDAO.java 244
fr/paris/lutece/plugins/blog/business/BlogDAO.java 281
            daoUtil.setInt( 1, nKey );
            daoUtil.executeQuery( );

            if ( daoUtil.next( ) )
            {
                blog = new Blog( );
                int nIndex = 1;

                blog.setId( daoUtil.getInt( nIndex++ ) );
                blog.setVersion( daoUtil.getInt( nIndex++ ) );
                blog.setContentLabel( daoUtil.getString( nIndex++ ) );
                blog.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setHtmlContent( daoUtil.getString( nIndex++ ) );
                blog.setUser( daoUtil.getString( nIndex++ ) );
                blog.setUserCreator( daoUtil.getString( nIndex++ ) );
                blog.setAttachedPortletId( daoUtil.getInt( nIndex++ ) );
                blog.setEditComment( daoUtil.getString( nIndex++ ) );
                blog.setDescription( daoUtil.getString( nIndex++ ) );
                blog.setShareable( daoUtil.getBoolean( nIndex++ ) );
                blog.setUrl( daoUtil.getString( nIndex++ ) );

            }

        }
        return blog;
    }

    /**
     * {@inheritDoc }
     */
    @Override
    public Blog loadByName( String strName, Plugin plugin )
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 424
fr/paris/lutece/plugins/blog/business/BlogDAO.java 462
fr/paris/lutece/plugins/blog/business/BlogDAO.java 824
            daoUtil.setInt( 1, nLimit );
            daoUtil.executeQuery( );

            while ( daoUtil.next( ) )
            {
                Blog blog = new Blog( );
                int nIndex = 1;

                blog.setId( daoUtil.getInt( nIndex++ ) );
                blog.setVersion( daoUtil.getInt( nIndex++ ) );
                blog.setContentLabel( daoUtil.getString( nIndex++ ) );
                blog.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setHtmlContent( daoUtil.getString( nIndex++ ) );
                blog.setUser( daoUtil.getString( nIndex++ ) );
                blog.setUserCreator( daoUtil.getString( nIndex++ ) );
                blog.setAttachedPortletId( daoUtil.getInt( nIndex++ ) );
                blog.setEditComment( daoUtil.getString( nIndex++ ) );
                blog.setDescription( daoUtil.getString( nIndex++ ) );
                blog.setShareable( daoUtil.getBoolean( nIndex++ ) );
                blog.setUrl( daoUtil.getString( nIndex++ ) );
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 385
fr/paris/lutece/plugins/blog/business/BlogDAO.java 559
        try ( DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL, plugin ) )
        {
            daoUtil.executeQuery( );

            while ( daoUtil.next( ) )
            {
                Blog blog = new Blog( );
                int nIndex = 1;

                blog.setId( daoUtil.getInt( nIndex++ ) );
                blog.setVersion( daoUtil.getInt( nIndex++ ) );
                blog.setContentLabel( daoUtil.getString( nIndex++ ) );
                blog.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setHtmlContent( daoUtil.getString( nIndex++ ) );
                blog.setUser( daoUtil.getString( nIndex++ ) );
                blog.setUserCreator( daoUtil.getString( nIndex++ ) );
                blog.setAttachedPortletId( daoUtil.getInt( nIndex++ ) );
                blog.setEditComment( daoUtil.getString( nIndex++ ) );
                blog.setDescription( daoUtil.getString( nIndex++ ) );
                blog.setShareable( daoUtil.getBoolean( nIndex++ ) );
                blog.setUrl( daoUtil.getString( nIndex++ ) );
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 387
fr/paris/lutece/plugins/blog/business/BlogDAO.java 463
            daoUtil.executeQuery( );

            while ( daoUtil.next( ) )
            {
                Blog blog = new Blog( );
                int nIndex = 1;

                blog.setId( daoUtil.getInt( nIndex++ ) );
                blog.setVersion( daoUtil.getInt( nIndex++ ) );
                blog.setContentLabel( daoUtil.getString( nIndex++ ) );
                blog.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setHtmlContent( daoUtil.getString( nIndex++ ) );
                blog.setUser( daoUtil.getString( nIndex++ ) );
                blog.setUserCreator( daoUtil.getString( nIndex++ ) );
                blog.setAttachedPortletId( daoUtil.getInt( nIndex++ ) );
                blog.setEditComment( daoUtil.getString( nIndex++ ) );
                blog.setDescription( daoUtil.getString( nIndex++ ) );
                blog.setShareable( daoUtil.getBoolean( nIndex++ ) );
                blog.setUrl( daoUtil.getString( nIndex++ ) );
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 150
fr/paris/lutece/plugins/blog/business/BlogDAO.java 180
            daoUtil.setInt( nIndex++, blog.getId( ) );
            daoUtil.setInt( nIndex++, blog.getVersion( ) );
            daoUtil.setString( nIndex++, blog.getContentLabel( ) );
            daoUtil.setTimestamp( nIndex++, blog.getCreationDate( ) );
            daoUtil.setTimestamp( nIndex++, blog.getUpdateDate( ) );
            daoUtil.setString( nIndex++, blog.getHtmlContent( ) );
            daoUtil.setString( nIndex++, blog.getUser( ) );
            daoUtil.setString( nIndex++, blog.getUserCreator( ) );
            daoUtil.setInt( nIndex++, blog.getAttachedPortletId( ) );
            daoUtil.setString( nIndex++, blog.getEditComment( ) );
            daoUtil.setString( nIndex++, blog.getDescription( ) );
            daoUtil.setBoolean( nIndex++, blog.getShareable( ) );
            daoUtil.setString( nIndex++, blog.getUrl( ) );

            daoUtil.executeUpdate( );
        }
    }

    /**
     * {@inheritDoc }
     */
    @Override
    public void insertVersion( Blog blog, Plugin plugin )
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 425
fr/paris/lutece/plugins/blog/business/BlogDAO.java 463
fr/paris/lutece/plugins/blog/business/BlogDAO.java 561
fr/paris/lutece/plugins/blog/business/BlogDAO.java 825
            daoUtil.executeQuery( );

            while ( daoUtil.next( ) )
            {
                Blog blog = new Blog( );
                int nIndex = 1;

                blog.setId( daoUtil.getInt( nIndex++ ) );
                blog.setVersion( daoUtil.getInt( nIndex++ ) );
                blog.setContentLabel( daoUtil.getString( nIndex++ ) );
                blog.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setHtmlContent( daoUtil.getString( nIndex++ ) );
                blog.setUser( daoUtil.getString( nIndex++ ) );
                blog.setUserCreator( daoUtil.getString( nIndex++ ) );
                blog.setAttachedPortletId( daoUtil.getInt( nIndex++ ) );
                blog.setEditComment( daoUtil.getString( nIndex++ ) );
                blog.setDescription( daoUtil.getString( nIndex++ ) );
                blog.setShareable( daoUtil.getBoolean( nIndex++ ) );
                blog.setUrl( daoUtil.getString( nIndex++ ) );
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 148
fr/paris/lutece/plugins/blog/business/BlogDAO.java 356
            int nIndex = 1;

            daoUtil.setInt( nIndex++, blog.getId( ) );
            daoUtil.setInt( nIndex++, blog.getVersion( ) );
            daoUtil.setString( nIndex++, blog.getContentLabel( ) );
            daoUtil.setTimestamp( nIndex++, blog.getCreationDate( ) );
            daoUtil.setTimestamp( nIndex++, blog.getUpdateDate( ) );
            daoUtil.setString( nIndex++, blog.getHtmlContent( ) );
            daoUtil.setString( nIndex++, blog.getUser( ) );
            daoUtil.setString( nIndex++, blog.getUserCreator( ) );
            daoUtil.setInt( nIndex++, blog.getAttachedPortletId( ) );
            daoUtil.setString( nIndex++, blog.getEditComment( ) );
            daoUtil.setString( nIndex++, blog.getDescription( ) );
            daoUtil.setBoolean( nIndex++, blog.getShareable( ) );
            daoUtil.setString( nIndex++, blog.getUrl( ) );

            daoUtil.executeUpdate( );
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 210
fr/paris/lutece/plugins/blog/business/BlogDAO.java 247
fr/paris/lutece/plugins/blog/business/BlogDAO.java 284
fr/paris/lutece/plugins/blog/business/BlogDAO.java 750
            if ( daoUtil.next( ) )
            {
                blog = new Blog( );
                int nIndex = 1;

                blog.setId( daoUtil.getInt( nIndex++ ) );
                blog.setVersion( daoUtil.getInt( nIndex++ ) );
                blog.setContentLabel( daoUtil.getString( nIndex++ ) );
                blog.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setHtmlContent( daoUtil.getString( nIndex++ ) );
                blog.setUser( daoUtil.getString( nIndex++ ) );
                blog.setUserCreator( daoUtil.getString( nIndex++ ) );
                blog.setAttachedPortletId( daoUtil.getInt( nIndex++ ) );
                blog.setEditComment( daoUtil.getString( nIndex++ ) );
                blog.setDescription( daoUtil.getString( nIndex++ ) );
                blog.setShareable( daoUtil.getBoolean( nIndex++ ) );
                blog.setUrl( daoUtil.getString( nIndex++ ) );
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 180
fr/paris/lutece/plugins/blog/business/BlogDAO.java 358
            daoUtil.setInt( nIndex++, blog.getId( ) );
            daoUtil.setInt( nIndex++, blog.getVersion( ) );
            daoUtil.setString( nIndex++, blog.getContentLabel( ) );
            daoUtil.setTimestamp( nIndex++, blog.getCreationDate( ) );
            daoUtil.setTimestamp( nIndex++, blog.getUpdateDate( ) );
            daoUtil.setString( nIndex++, blog.getHtmlContent( ) );
            daoUtil.setString( nIndex++, blog.getUser( ) );
            daoUtil.setString( nIndex++, blog.getUserCreator( ) );
            daoUtil.setInt( nIndex++, blog.getAttachedPortletId( ) );
            daoUtil.setString( nIndex++, blog.getEditComment( ) );
            daoUtil.setString( nIndex++, blog.getDescription( ) );
            daoUtil.setBoolean( nIndex++, blog.getShareable( ) );
            daoUtil.setString( nIndex++, blog.getUrl( ) );

            daoUtil.executeUpdate( );
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 212
fr/paris/lutece/plugins/blog/business/BlogDAO.java 249
fr/paris/lutece/plugins/blog/business/BlogDAO.java 286
fr/paris/lutece/plugins/blog/business/BlogDAO.java 391
fr/paris/lutece/plugins/blog/business/BlogDAO.java 429
fr/paris/lutece/plugins/blog/business/BlogDAO.java 467
fr/paris/lutece/plugins/blog/business/BlogDAO.java 752
fr/paris/lutece/plugins/blog/business/BlogDAO.java 829
                blog = new Blog( );
                int nIndex = 1;

                blog.setId( daoUtil.getInt( nIndex++ ) );
                blog.setVersion( daoUtil.getInt( nIndex++ ) );
                blog.setContentLabel( daoUtil.getString( nIndex++ ) );
                blog.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setHtmlContent( daoUtil.getString( nIndex++ ) );
                blog.setUser( daoUtil.getString( nIndex++ ) );
                blog.setUserCreator( daoUtil.getString( nIndex++ ) );
                blog.setAttachedPortletId( daoUtil.getInt( nIndex++ ) );
                blog.setEditComment( daoUtil.getString( nIndex++ ) );
                blog.setDescription( daoUtil.getString( nIndex++ ) );
                blog.setShareable( daoUtil.getBoolean( nIndex++ ) );
                blog.setUrl( daoUtil.getString( nIndex++ ) );
Fichier Ligne
fr/paris/lutece/plugins/blog/business/portlet/BlogListPortletDAO.java 300
fr/paris/lutece/plugins/blog/business/portlet/BlogPortletDAO.java 176
    public ReferenceList selectBlogListPortletReferenceList( Plugin plugin )
    {
        ReferenceList blogPortletList = new ReferenceList( );
        try ( DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL, plugin ) )
        {
            daoUtil.executeQuery( );

            while ( daoUtil.next( ) )
            {
                blogPortletList.addItem( daoUtil.getInt( 1 ), daoUtil.getString( 2 ) );
            }

        }
        return blogPortletList;
    }

    /**
     * {@inheritDoc }
     */
    @Override
    public Collection<ReferenceItem> selectPortletByType( int nDocumentId, PortletOrder pOrder, PortletFilter pFilter )
    {
        StringBuilder strSQl = new StringBuilder( );
        strSQl.append( SQL_QUERY_SELECT_PORTLET_BY_TYPE );

        String strFilter = ( pFilter != null ) ? pFilter.getSQLFilter( ) : null;

        if ( strFilter != null )
        {
            strSQl.append( "AND" );
            strSQl.append( strFilter );
        }

        strSQl.append( pOrder.getSQLOrderBy( ) );

        ReferenceList list = new ReferenceList( );
        try ( DAOUtil daoUtil = new DAOUtil( strSQl.toString( ) ) )
        {
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 212
fr/paris/lutece/plugins/blog/business/BlogDAO.java 249
fr/paris/lutece/plugins/blog/business/BlogDAO.java 286
fr/paris/lutece/plugins/blog/business/BlogDAO.java 565
fr/paris/lutece/plugins/blog/business/BlogDAO.java 752
                blog = new Blog( );
                int nIndex = 1;

                blog.setId( daoUtil.getInt( nIndex++ ) );
                blog.setVersion( daoUtil.getInt( nIndex++ ) );
                blog.setContentLabel( daoUtil.getString( nIndex++ ) );
                blog.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setHtmlContent( daoUtil.getString( nIndex++ ) );
                blog.setUser( daoUtil.getString( nIndex++ ) );
                blog.setUserCreator( daoUtil.getString( nIndex++ ) );
                blog.setAttachedPortletId( daoUtil.getInt( nIndex++ ) );
                blog.setEditComment( daoUtil.getString( nIndex++ ) );
                blog.setDescription( daoUtil.getString( nIndex++ ) );
                blog.setShareable( daoUtil.getBoolean( nIndex++ ) );
                blog.setUrl( daoUtil.getString( nIndex++ ) );
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 215
fr/paris/lutece/plugins/blog/business/BlogDAO.java 252
fr/paris/lutece/plugins/blog/business/BlogDAO.java 289
fr/paris/lutece/plugins/blog/business/BlogDAO.java 394
fr/paris/lutece/plugins/blog/business/BlogDAO.java 432
fr/paris/lutece/plugins/blog/business/BlogDAO.java 470
fr/paris/lutece/plugins/blog/business/BlogDAO.java 755
fr/paris/lutece/plugins/blog/business/BlogDAO.java 793
fr/paris/lutece/plugins/blog/business/BlogDAO.java 832
                blog.setId( daoUtil.getInt( nIndex++ ) );
                blog.setVersion( daoUtil.getInt( nIndex++ ) );
                blog.setContentLabel( daoUtil.getString( nIndex++ ) );
                blog.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setHtmlContent( daoUtil.getString( nIndex++ ) );
                blog.setUser( daoUtil.getString( nIndex++ ) );
                blog.setUserCreator( daoUtil.getString( nIndex++ ) );
                blog.setAttachedPortletId( daoUtil.getInt( nIndex++ ) );
                blog.setEditComment( daoUtil.getString( nIndex++ ) );
                blog.setDescription( daoUtil.getString( nIndex++ ) );
                blog.setShareable( daoUtil.getBoolean( nIndex++ ) );
                blog.setUrl( daoUtil.getString( nIndex++ ) );
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 568
fr/paris/lutece/plugins/blog/business/BlogDAO.java 793
                blog.setId( daoUtil.getInt( nIndex++ ) );
                blog.setVersion( daoUtil.getInt( nIndex++ ) );
                blog.setContentLabel( daoUtil.getString( nIndex++ ) );
                blog.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                blog.setHtmlContent( daoUtil.getString( nIndex++ ) );
                blog.setUser( daoUtil.getString( nIndex++ ) );
                blog.setUserCreator( daoUtil.getString( nIndex++ ) );
                blog.setAttachedPortletId( daoUtil.getInt( nIndex++ ) );
                blog.setEditComment( daoUtil.getString( nIndex++ ) );
                blog.setDescription( daoUtil.getString( nIndex++ ) );
                blog.setShareable( daoUtil.getBoolean( nIndex++ ) );
                blog.setUrl( daoUtil.getString( nIndex ) );
Fichier Ligne
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 667
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 708
    public String doAddTag( HttpServletRequest request )
    {
        String strIdTag = request.getParameter( PARAMETER_TAG );
        int nIdBlog = Integer.parseInt( request.getParameter( PARAMETER_ID_BLOG ) );
        String nIdSession = request.getSession( ).getId( );
        _blog = _blogServiceSession.getBlogFromSession( request.getSession( ), nIdBlog );
        if ( _mapLockBlog.get( nIdBlog ) != null && _mapLockBlog.get( nIdBlog ).getSessionId( ).equals( nIdSession ) )
        {

            lockBlog( nIdBlog, request.getSession( ).getId( ) );
        }
        else
            if ( _blog.getId( ) != 0 )
            {

                return JsonUtil.buildJsonResponse( new JsonResponse( RESPONSE_BLOG_LOCKED ) );
            }

        if ( RBACService.isAuthorized( Tag.PROPERTY_RESOURCE_TYPE, strIdTag, Tag.PERMISSION_CREATE, (User) getUser( ) ) )
Fichier Ligne
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1353
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1418
        String strAction = request.getParameter( PARAMETER_CONTENT_ACTION );
        int nIdBlog = Integer.parseInt( request.getParameter( PARAMETER_ID_BLOG ) );
        String nIdSession = request.getSession( ).getId( );
        _blog = _blogServiceSession.getBlogFromSession( request.getSession( ), nIdBlog );
        if ( _mapLockBlog.get( nIdBlog ) != null && _mapLockBlog.get( nIdBlog ).getSessionId( ).equals( nIdSession ) )
        {

            lockBlog( nIdBlog, request.getSession( ).getId( ) );
        }
        else
            if ( _blog.getId( ) != 0 )
            {

                return JsonUtil.buildJsonResponse( new JsonResponse( RESPONSE_BLOG_LOCKED ) );
            }

        for ( DocContent dc : _blog.getDocContent( ) )
Fichier Ligne
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 761
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1353
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1418
        String strAction = request.getParameter( PARAMETER_TAG_ACTION );
        int nIdBlog = Integer.parseInt( request.getParameter( PARAMETER_ID_BLOG ) );
        String nIdSession = request.getSession( ).getId( );
        _blog = _blogServiceSession.getBlogFromSession( request.getSession( ), nIdBlog );
        if ( _mapLockBlog.get( nIdBlog ) != null && _mapLockBlog.get( nIdBlog ).getSessionId( ).equals( nIdSession ) )
        {

            lockBlog( nIdBlog, request.getSession( ).getId( ) );
        }
        else
            if ( _blog.getId( ) != 0 )
            {

                return JsonUtil.buildJsonResponse( new JsonResponse( RESPONSE_BLOG_LOCKED ) );
            }

        for ( Tag tag : _blog.getTag( ) )
Fichier Ligne
fr/paris/lutece/plugins/blog/service/BlogService.java 272
fr/paris/lutece/plugins/blog/service/BlogService.java 332
            if ( docContent != null )
            {
                updateDocContentList( blog, docContent );
            }

            TagHome.removeTagDoc( blog.getId( ) );
            for ( Tag tag : blog.getTag( ) )
            {
                TagHome.create( tag.getIdTag( ), blog.getId( ), tag.getPriority( ) );
            }
            TransactionManager.commitTransaction( BlogPlugin.getPlugin( ) );
        }
        catch( Exception e )
        {
            TransactionManager.rollBack( BlogPlugin.getPlugin( ) );
            throw new AppException( e.getMessage( ), e );
        }

        fireUpdateBlogEvent( blog.getId( ) );
    }
Fichier Ligne
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 669
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 710
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 761
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1303
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1353
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1418
        String strIdTag = request.getParameter( PARAMETER_TAG );
        int nIdBlog = Integer.parseInt( request.getParameter( PARAMETER_ID_BLOG ) );
        String nIdSession = request.getSession( ).getId( );
        _blog = _blogServiceSession.getBlogFromSession( request.getSession( ), nIdBlog );
        if ( _mapLockBlog.get( nIdBlog ) != null && _mapLockBlog.get( nIdBlog ).getSessionId( ).equals( nIdSession ) )
        {

            lockBlog( nIdBlog, request.getSession( ).getId( ) );
        }
        else
            if ( _blog.getId( ) != 0 )
            {

                return JsonUtil.buildJsonResponse( new JsonResponse( RESPONSE_BLOG_LOCKED ) );
            }
Fichier Ligne
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 670
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 711
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 762
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1212
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1304
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1354
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1419
        int nIdBlog = Integer.parseInt( request.getParameter( PARAMETER_ID_BLOG ) );
        String nIdSession = request.getSession( ).getId( );
        _blog = _blogServiceSession.getBlogFromSession( request.getSession( ), nIdBlog );
        if ( _mapLockBlog.get( nIdBlog ) != null && _mapLockBlog.get( nIdBlog ).getSessionId( ).equals( nIdSession ) )
        {

            lockBlog( nIdBlog, request.getSession( ).getId( ) );
        }
        else
            if ( _blog.getId( ) != 0 )
            {

                return JsonUtil.buildJsonResponse( new JsonResponse( RESPONSE_BLOG_LOCKED ) );
            }
Fichier Ligne
fr/paris/lutece/plugins/blog/business/portlet/BlogPublicationDAO.java 163
fr/paris/lutece/plugins/blog/business/portlet/BlogPublicationDAO.java 191
            daoUtil.setInt( 1, nDocId );
            daoUtil.executeQuery( );

            while ( daoUtil.next( ) )
            {
                BlogPublication blogPub = new BlogPublication( );
                blogPub.setIdPortlet( daoUtil.getInt( 1 ) );
                blogPub.setIdBlog( daoUtil.getInt( 2 ) );
                blogPub.setDateBeginPublishing( daoUtil.getDate( 3 ) );
                blogPub.setDateEndPublishing( daoUtil.getDate( 4 ) );
                blogPub.setStatus( daoUtil.getInt( 5 ) );
                blogPub.setBlogOrder( daoUtil.getInt( 6 ) );

                nListIdCategory.add( blogPub );
            }
        }
        return nListIdCategory;
    }

    /**
     * {@inheritDoc }
     */
    @Override
    public List<BlogPublication> loadBlogsByPortlet( int nIdPortlet, Plugin plugin )
Fichier Ligne
fr/paris/lutece/plugins/blog/business/portlet/BlogPublicationDAO.java 163
fr/paris/lutece/plugins/blog/business/portlet/BlogPublicationDAO.java 191
fr/paris/lutece/plugins/blog/business/portlet/BlogPublicationDAO.java 221
            daoUtil.setInt( 1, nDocId );
            daoUtil.executeQuery( );

            while ( daoUtil.next( ) )
            {
                BlogPublication blogPub = new BlogPublication( );
                blogPub.setIdPortlet( daoUtil.getInt( 1 ) );
                blogPub.setIdBlog( daoUtil.getInt( 2 ) );
                blogPub.setDateBeginPublishing( daoUtil.getDate( 3 ) );
                blogPub.setDateEndPublishing( daoUtil.getDate( 4 ) );
                blogPub.setStatus( daoUtil.getInt( 5 ) );
                blogPub.setBlogOrder( daoUtil.getInt( 6 ) );

                nListIdCategory.add( blogPub );
            }
        }
        return nListIdCategory;
    }

    /**
     * {@inheritDoc }
     */
    @Override
    public List<BlogPublication> loadBlogsByPortlet( int nIdPortlet, Plugin plugin )
Fichier Ligne
fr/paris/lutece/plugins/blog/business/portlet/BlogPublicationDAO.java 164
fr/paris/lutece/plugins/blog/business/portlet/BlogPublicationDAO.java 192
fr/paris/lutece/plugins/blog/business/portlet/BlogPublicationDAO.java 223
fr/paris/lutece/plugins/blog/business/portlet/BlogPublicationDAO.java 277
            daoUtil.executeQuery( );

            while ( daoUtil.next( ) )
            {
                BlogPublication blogPub = new BlogPublication( );
                blogPub.setIdPortlet( daoUtil.getInt( 1 ) );
                blogPub.setIdBlog( daoUtil.getInt( 2 ) );
                blogPub.setDateBeginPublishing( daoUtil.getDate( 3 ) );
                blogPub.setDateEndPublishing( daoUtil.getDate( 4 ) );
                blogPub.setStatus( daoUtil.getInt( 5 ) );
                blogPub.setBlogOrder( daoUtil.getInt( 6 ) );

                nListIdCategory.add( blogPub );
            }
        }
        return nListIdCategory;
    }

    /**
     * {@inheritDoc }
     */
    @Override
    public List<BlogPublication> loadBlogsByPortlet( int nIdPortlet, Plugin plugin )