fr.paris.lutece.plugins.extend.modules.comment.business
Interface ICommentDAO

All Known Implementing Classes:
CommentDAO

public interface ICommentDAO

ICommentDAO.


Method Summary
 void delete(int nIdComment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete.
 void deleteByResource(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete by id hub resource.
 int getCommentNb(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Check comment nb.
 void insert(Comment comment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert.
 Comment load(int nIdComment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load.
 java.util.List<Comment> selectByResource(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, boolean bPublishedOnly, boolean bAscSort, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select by id hub resource.
 java.util.List<Comment> selectLastComments(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, int nNbComments, boolean bPublishedOnly, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load last comments.
 void store(Comment comment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Store.
 void updateCommentStatus(int nIdComment, boolean bPublished, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update comment status.
 

Method Detail

delete

void delete(int nIdComment,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete.

Parameters:
nIdComment - the n id comment
plugin - the plugin

deleteByResource

void deleteByResource(java.lang.String strIdExtendableResource,
                      java.lang.String strExtendableResourceType,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete by id hub resource.

Parameters:
strIdExtendableResource - the str id extendable resource
strExtendableResourceType - the str extendable resource type
plugin - the plugin

insert

void insert(Comment comment,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert.

Parameters:
comment - the comment
plugin - the plugin

load

Comment load(int nIdComment,
             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load.

Parameters:
nIdComment - the n id comment
plugin - the plugin
Returns:
the comment

store

void store(Comment comment,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Store.

Parameters:
comment - the comment
plugin - the plugin

selectByResource

java.util.List<Comment> selectByResource(java.lang.String strIdExtendableResource,
                                         java.lang.String strExtendableResourceType,
                                         boolean bPublishedOnly,
                                         boolean bAscSort,
                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select by id hub resource.

Parameters:
strIdExtendableResource - the str id extendable resource
strExtendableResourceType - the str extendable resource type
bPublishedOnly - the b published
bAscSort - True if comments should be sorted ascendantly, false otherwise
plugin - the plugin
Returns:
the list

updateCommentStatus

void updateCommentStatus(int nIdComment,
                         boolean bPublished,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update comment status.

Parameters:
nIdComment - the n id comment
bPublished - the b published
plugin - the plugin

getCommentNb

int getCommentNb(java.lang.String strIdExtendableResource,
                 java.lang.String strExtendableResourceType,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check comment nb.

Parameters:
strIdExtendableResource - the str id extendable resource
strExtendableResourceType - the str extendable resource type
plugin - the plugin
Returns:
the int

selectLastComments

java.util.List<Comment> selectLastComments(java.lang.String strIdExtendableResource,
                                           java.lang.String strExtendableResourceType,
                                           int nNbComments,
                                           boolean bPublishedOnly,
                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load last comments.

Parameters:
strIdExtendableResource - the str id extendable resource
strExtendableResourceType - the str extendable resource type
nNbComments - the n nb comments
bPublishedOnly - the b published only
plugin - the plugin
Returns:
the list


Copyright © 2012 Mairie de Paris. All Rights Reserved.