CPD Results
The following document contains the results of PMD's CPD 6.13.0.
Duplications
File |
Line |
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 ) |
File |
Line |
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 ) |
File |
Line |
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 ) |
File |
Line |
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++ ) ); |
File |
Line |
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++ ) ); |
File |
Line |
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++ ) ); |
File |
Line |
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 ) |
File |
Line |
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++ ) ); |
File |
Line |
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( ); |
File |
Line |
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 |
733 |
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++ ) ); |
File |
Line |
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( ); |
File |
Line |
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 |
735 |
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++ ) ); |
File |
Line |
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( ) ) )
{ |
File |
Line |
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 |
735 |
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++ ) ); |
File |
Line |
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 |
738 |
fr/paris/lutece/plugins/blog/business/BlogDAO.java |
776 |
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++ ) ); |
File |
Line |
fr/paris/lutece/plugins/blog/business/BlogDAO.java |
551 |
fr/paris/lutece/plugins/blog/business/BlogDAO.java |
776 |
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 ) ); |
File |
Line |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
537 |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
578 |
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( ) ) ) |
File |
Line |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
323 |
fr/paris/lutece/plugins/blog/web/portlet/BlogListPortletJspBean.java |
181 |
if ( !ArrayUtils.isEmpty( _strTag ) )
{
filter.setTag( _strTag );
}
if ( _bIsChecked )
{
filter.setUser( user.getAccessCode( ) );
}
if ( _bIsUnpulished )
{
filter.setIsUnpulished( _bIsUnpulished );
}
if ( _dateUpdateBlogAfter != null )
{
filter.setUpdateDateAfter( DateUtil.formatDate( _dateUpdateBlogAfter, request.getLocale( ) ) );
}
if ( _dateUpdateBlogBefor != null )
{
filter.setUpdateDateBefor( DateUtil.formatDate( _dateUpdateBlogBefor, request.getLocale( ) ) );
}
BlogSearchService.getInstance( ).getSearchResults( filter, listBlogsId );
}
else
{
listBlogsId = BlogHome.getIdBlogsList( );
} |
File |
Line |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
1223 |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
1288 |
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( ) ) |
File |
Line |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
631 |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
1223 |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
1288 |
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( ) ) |
File |
Line |
fr/paris/lutece/plugins/blog/service/BlogService.java |
206 |
fr/paris/lutece/plugins/blog/service/BlogService.java |
266 |
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( ) );
} |
File |
Line |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
539 |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
580 |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
631 |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
1173 |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
1223 |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
1288 |
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 ) );
} |
File |
Line |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
540 |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
581 |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
632 |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
1082 |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
1174 |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
1224 |
fr/paris/lutece/plugins/blog/web/BlogJspBean.java |
1289 |
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 ) );
} |
File |
Line |
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 ) |
File |
Line |
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 ) |
File |
Line |
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 ) |