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/service/BlogService.java 206
fr/paris/lutece/plugins/blog/service/BlogService.java 263
            if ( docContent != null )
            {
                List<DocContent> listDocContent = DocContentHome.getDocsContentByHtmlDoc( blog.getId( ) );
                List<DocContent> listToCompare = new ArrayList<>( );
                listToCompare.addAll( listDocContent );

                for ( DocContent docCont : docContent )
                {
                    if ( listDocContent.isEmpty( ) || listDocContent.removeIf( t -> t.getId( ) == docCont.getId( ) ) || docCont.getId( ) == 0 )
                    {
                        if ( listToCompare.stream( ).noneMatch( c -> ( c.getId( ) == docCont.getId( ) ) && ( c.getPriority( ) == docCont.getPriority( ) ) ) )
                        {

                            updateDocContent( docCont, blog.getId( ) );
                        }
                    }
                }

                for ( DocContent docCont : listDocContent )
                {
                    DocContentHome.removeInBlogById( docCont.getId( ) );
                }

            }

            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( ) );
    }

    /**
     * Update an Blog
     * 
     * @param blog
     *            The blog
     * @param docContent
     *            The Doc Content
     */
    public void updateBlogWithoutVersion( Blog blog, List<DocContent> docContent )
Fichier Ligne
fr/paris/lutece/plugins/blog/business/BlogDAO.java 370
fr/paris/lutece/plugins/blog/business/BlogDAO.java 408
            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 204
fr/paris/lutece/plugins/blog/business/BlogDAO.java 241
            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 204
fr/paris/lutece/plugins/blog/business/BlogDAO.java 241
fr/paris/lutece/plugins/blog/business/BlogDAO.java 278
            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 407
fr/paris/lutece/plugins/blog/business/BlogDAO.java 445
            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 368
fr/paris/lutece/plugins/blog/business/BlogDAO.java 542
        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 370
fr/paris/lutece/plugins/blog/business/BlogDAO.java 446
            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 147
fr/paris/lutece/plugins/blog/business/BlogDAO.java 177
            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 408
fr/paris/lutece/plugins/blog/business/BlogDAO.java 446
fr/paris/lutece/plugins/blog/business/BlogDAO.java 544
            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 145
fr/paris/lutece/plugins/blog/business/BlogDAO.java 339
            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 207
fr/paris/lutece/plugins/blog/business/BlogDAO.java 244
fr/paris/lutece/plugins/blog/business/BlogDAO.java 281
fr/paris/lutece/plugins/blog/business/BlogDAO.java 725
            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 177
fr/paris/lutece/plugins/blog/business/BlogDAO.java 341
            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 209
fr/paris/lutece/plugins/blog/business/BlogDAO.java 246
fr/paris/lutece/plugins/blog/business/BlogDAO.java 283
fr/paris/lutece/plugins/blog/business/BlogDAO.java 374
fr/paris/lutece/plugins/blog/business/BlogDAO.java 412
fr/paris/lutece/plugins/blog/business/BlogDAO.java 450
fr/paris/lutece/plugins/blog/business/BlogDAO.java 727
                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 209
fr/paris/lutece/plugins/blog/business/BlogDAO.java 246
fr/paris/lutece/plugins/blog/business/BlogDAO.java 283
fr/paris/lutece/plugins/blog/business/BlogDAO.java 548
fr/paris/lutece/plugins/blog/business/BlogDAO.java 727
                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 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 377
fr/paris/lutece/plugins/blog/business/BlogDAO.java 415
fr/paris/lutece/plugins/blog/business/BlogDAO.java 453
fr/paris/lutece/plugins/blog/business/BlogDAO.java 730
fr/paris/lutece/plugins/blog/business/BlogDAO.java 768
                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 551
fr/paris/lutece/plugins/blog/business/BlogDAO.java 768
                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 515
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 556
    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, getUser( ) ) )
Fichier Ligne
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1200
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1265
        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 609
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1200
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1265
        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/web/BlogJspBean.java 517
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 558
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 609
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1150
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1200
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1265
        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 518
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 559
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 610
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1059
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1151
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1201
fr/paris/lutece/plugins/blog/web/BlogJspBean.java 1266
        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 )