Class CommentExtenderConfig
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.business.extender.config.ExtenderConfig
-
- fr.paris.lutece.plugins.extend.modules.comment.business.config.CommentExtenderConfig
-
- All Implemented Interfaces:
fr.paris.lutece.plugins.extend.business.extender.config.IExtenderConfig
public class CommentExtenderConfig extends fr.paris.lutece.plugins.extend.business.extender.config.ExtenderConfigCommentExtenderConfig
-
-
Constructor Summary
Constructors Constructor Description CommentExtenderConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAddCommentPosition()java.lang.StringgetAdminBadge()Get the badge of comments posted by admin usersbooleangetAuthorizeSubComments()Check if sub comments are authorized for this extenderbooleangetDeleteComments()Returns the DeleteComments optionintgetIdMailingList()intgetIdWorkflow()Getter for id_workflowjava.lang.StringgetMessageCommentCreated()Get the message to display to users when a comment is createdintgetNbComments()booleangetUseBBCodeEditor()Check if a BBCode editor should be used to compose commentsbooleanisDisplaySubComments()booleanisEnabledAuthMode()booleanisModerated()Checks if is moderated.booleanisTriCommentsByCreation()Get Tri date commentsvoidsetAddCommentPosition(int nPosition)* @param the position numbervoidsetAdminBadge(java.lang.String strAdminAnswerBadge)Set the badge of comments posted by admin usersvoidsetAuthorizeSubComments(boolean bAuthorizeSubComments)Authorize or unauthorize sub comments for this extendervoidsetDeleteComments(boolean bDeleteComments)Sets the DeleteComments optionvoidsetDisplaySubComments(boolean bDisplaySubComments)voidsetEnabledAuthMode(boolean bEnableAuthMode)voidsetIdMailingList(int nIdMailingList)voidsetIdWorkflow(int nIdWorkflow)setter for id_workflowvoidsetMessageCommentCreated(java.lang.String strMessageCommentCreated)Set the message to display to users when a comment is createdvoidsetModerated(boolean bModerated)Sets the moderated.voidsetNbComments(int nNbComments)voidsetTriCommentsByCreation(boolean bTriDateComments)Sets tri date commentsvoidsetUseBBCodeEditor(boolean bUseBBCodeEditor)Set the usage of a BBCode editor compose comments
-
-
-
Method Detail
-
isModerated
public boolean isModerated()
Checks if is moderated.- Returns:
- true, if is moderated
-
setModerated
public void setModerated(boolean bModerated)
Sets the moderated.- Parameters:
bModerated- the new moderated
-
getNbComments
public int getNbComments()
- Returns:
- the nNbComments
-
setNbComments
public void setNbComments(int nNbComments)
- Parameters:
nNbComments- the nNbComments to set
-
getIdMailingList
public int getIdMailingList()
- Returns:
- the nIdMailingList
-
setIdMailingList
public void setIdMailingList(int nIdMailingList)
- Parameters:
nIdMailingList- the nIdMailingList to set
-
getAuthorizeSubComments
public boolean getAuthorizeSubComments()
Check if sub comments are authorized for this extender- Returns:
- True if sub comments are authorized, false otherwise
-
setAuthorizeSubComments
public void setAuthorizeSubComments(boolean bAuthorizeSubComments)
Authorize or unauthorize sub comments for this extender- Parameters:
bAuthorizeSubComments- True if sub comments are authorized, false otherwise
-
getUseBBCodeEditor
public boolean getUseBBCodeEditor()
Check if a BBCode editor should be used to compose comments- Returns:
- True if a BBCode should be used to compose comments, false otherwise
-
setUseBBCodeEditor
public void setUseBBCodeEditor(boolean bUseBBCodeEditor)
Set the usage of a BBCode editor compose comments- Parameters:
bUseBBCodeEditor- True to use a BBCode editor to compose comments, false otherwise
-
getAdminBadge
public java.lang.String getAdminBadge()
Get the badge of comments posted by admin users- Returns:
- The badge of comments posted by admin users
-
setAdminBadge
public void setAdminBadge(java.lang.String strAdminAnswerBadge)
Set the badge of comments posted by admin users- Parameters:
strAdminAnswerBadge- The badge of comments posted by admin users
-
getMessageCommentCreated
public java.lang.String getMessageCommentCreated()
Get the message to display to users when a comment is created- Returns:
- The message to display
-
setMessageCommentCreated
public void setMessageCommentCreated(java.lang.String strMessageCommentCreated)
Set the message to display to users when a comment is created- Parameters:
strMessageCommentCreated- The message to display
-
getAddCommentPosition
public int getAddCommentPosition()
-
setAddCommentPosition
public void setAddCommentPosition(int nPosition)
* @param the position number
-
isEnabledAuthMode
public boolean isEnabledAuthMode()
- Returns:
- isEnableAuthMode true if the authentication mode is enable
-
setEnabledAuthMode
public void setEnabledAuthMode(boolean bEnableAuthMode)
- Parameters:
bEnableAuthMode- true if the authentication mode is enable
-
isDisplaySubComments
public boolean isDisplaySubComments()
- Returns:
- isDisplaySubComments true if the display sub comments mode is enable
-
setDisplaySubComments
public void setDisplaySubComments(boolean bDisplaySubComments)
- Parameters:
bDisplaySubComments- true if the display sub comments mode is enable
-
getDeleteComments
public boolean getDeleteComments()
Returns the DeleteComments option- Returns:
- True if the the option is enabled
-
setDeleteComments
public void setDeleteComments(boolean bDeleteComments)
Sets the DeleteComments option- Parameters:
bDeleteComments- The DeleteComments option
-
isTriCommentsByCreation
public boolean isTriCommentsByCreation()
Get Tri date comments- Returns:
- if tri date comments
-
setTriCommentsByCreation
public void setTriCommentsByCreation(boolean bTriDateComments)
Sets tri date comments- Parameters:
bTriDateComments- tri date comments
-
getIdWorkflow
public int getIdWorkflow()
Getter for id_workflow- Returns:
- the _nIdWorkflow
-
setIdWorkflow
public void setIdWorkflow(int nIdWorkflow)
setter for id_workflow- Parameters:
nIdWorkflow- the Id Workflow to set
-
-