|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.extend.modules.comment.service.CommentService
public class CommentService
CommentService
| Field Summary | |
|---|---|
static java.lang.String |
BEAN_SERVICE
The Constant BEAN_SERVICE. |
| Constructor Summary | |
|---|---|
CommentService()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String BEAN_SERVICE
| Constructor Detail |
|---|
public CommentService()
| Method Detail |
|---|
@Transactional(value="extend-comment.transactionManager") public void create(Comment comment)
create in interface ICommentServicecomment - the comment@Transactional(value="extend-comment.transactionManager") public void update(Comment comment)
update in interface ICommentServicecomment - the comment
@Transactional(value="extend-comment.transactionManager")
public void updateCommentStatus(int nIdComment,
boolean bPublished)
updateCommentStatus in interface ICommentServicenIdComment - the n id commentbPublished - the b published@Transactional(value="extend-comment.transactionManager") public void remove(int nIdComment)
remove in interface ICommentServicenIdComment - the n id comment
@Transactional(value="extend-comment.transactionManager")
public void removeByResource(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType)
removeByResource in interface ICommentServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typepublic Comment findByPrimaryKey(int nIdComment)
findByPrimaryKey in interface ICommentServicenIdComment - the n id comment
public java.util.List<Comment> findByResource(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType,
boolean bPublishedOnly,
boolean bAscSort)
findByResource in interface ICommentServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typebPublishedOnly - the b only publishedbAscSort - True if comments should be sorted ascendantly, false otherwise
public int getCommentNb(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType)
getCommentNb in interface ICommentServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource type
public java.util.List<Comment> findLastComments(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType,
int nNbComments,
boolean bPublishedOnly)
findLastComments in interface ICommentServicestrIdExtendableResource - 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 | |||||||||