|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICommentService
ICommentService.
| Method Summary | |
|---|---|
void |
create(Comment comment)
Insert. |
Comment |
findByPrimaryKey(int nIdComment)
Load. |
java.util.List<Comment> |
findByResource(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType,
boolean bPublishedOnly,
boolean bAscSort)
Select by resource. |
java.util.List<Comment> |
findLastComments(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType,
int nNbComments,
boolean bPublishedOnly)
Load last comments. |
int |
getCommentNb(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType)
Check comment nb. |
void |
remove(int nIdComment)
Delete. |
void |
removeByResource(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType)
Delete by resource |
void |
update(Comment comment)
Store. |
void |
updateCommentStatus(int nIdComment,
boolean bPublished)
Update comment status. |
| Method Detail |
|---|
@Transactional(value="extend-comment.transactionManager") void remove(int nIdComment)
nIdComment - the n id comment
@Transactional(value="extend-comment.transactionManager")
void removeByResource(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType)
strIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource type@Transactional(value="extend-comment.transactionManager") void create(Comment comment)
comment - the comment@Transactional(value="extend-comment.transactionManager") void update(Comment comment)
comment - the comment
@Transactional(value="extend-comment.transactionManager")
void updateCommentStatus(int nIdComment,
boolean bPublished)
nIdComment - the n id commentbPublished - the b publishedComment findByPrimaryKey(int nIdComment)
nIdComment - the n id comment
java.util.List<Comment> findByResource(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType,
boolean bPublishedOnly,
boolean bAscSort)
strIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typebPublishedOnly - the b only publishedbAscSort - True if comments should be sorted ascendantly, false otherwise
int getCommentNb(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType)
strIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource type
java.util.List<Comment> findLastComments(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType,
int nNbComments,
boolean bPublishedOnly)
strIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typenNbComments - the n nb commentssbPublishedOnly - the b published only
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||