public class Suggest extends Object implements fr.paris.lutece.portal.service.resource.IExtendableResource, fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource, fr.paris.lutece.portal.service.rbac.RBACResource
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_TYPE |
static String |
ROLE_NONE |
static int |
STATE_DISABLE |
static int |
STATE_ENABLE |
static String |
TAG_LIST_ENTRY |
| Constructor and Description |
|---|
Suggest() |
| Modifier and Type | Method and Description |
|---|---|
List<SuggestAction> |
getActions() |
List<Category> |
getCategories() |
String |
getCodeTheme() |
String |
getConfirmationMessage() |
Timestamp |
getDateCreation() |
String |
getDescription() |
List<IEntry> |
getEntries() |
String |
getExtendableResourceDescription() |
String |
getExtendableResourceImageUrl() |
String |
getExtendableResourceName() |
String |
getExtendableResourceType() |
String |
getHeader() |
int |
getIdDefaultSort() |
String |
getIdExtendableResource() |
Integer |
getIdImageResource()
the image resource id associate to the suggest
|
int |
getIdMailingListSuggestSubmit() |
int |
getIdSuggest() |
fr.paris.lutece.portal.service.image.ImageResource |
getImage()
get Image
|
String |
getLibelleContribution() |
String |
getLibelleValidateButton() |
String |
getNotificationNewCommentBody() |
String |
getNotificationNewCommentSenderName() |
String |
getNotificationNewCommentTitle() |
String |
getNotificationNewSuggestSubmitBody() |
String |
getNotificationNewSuggestSubmitSenderName() |
String |
getNotificationNewSuggestSubmitTitle() |
Integer |
getNumberCharCommentDisplayInSuggestSubmitList() |
Integer |
getNumberCommentDisplayInSuggestSubmitList() |
int |
getNumberDayRequired()
return the number of day required for disable a suggest submit
|
int |
getNumberSuggestSubmitCaractersShown()
return the nunber of caracters shown in the list of suggest submit
|
int |
getNumberSuggestSubmitInTopComment()
return the number of suggest submit display in the list of top comment
|
int |
getNumberSuggestSubmitInTopScore()
return the number of suggest submit display in the list of top score
|
int |
getNumberSuggestSubmitPerPage() |
int |
getNumberVoteRequired()
return the number of vote required for publishing a suggest submit
|
String |
getResourceId()
RBAC resource implmentation
|
String |
getResourceTypeCode()
RBAC resource implmentation
|
String |
getRole()
Gets the suggest role
|
int |
getSortField() |
List<SuggestSubmit> |
getSuggestsSubmit() |
List<SuggestSubmitType> |
getSuggestSubmitTypes() |
String |
getTermsOfUse()
the terms of use
|
String |
getTitle() |
String |
getUnavailabilityMessage() |
VoteType |
getVoteType() |
String |
getWorkgroup() |
String |
getXml(javax.servlet.http.HttpServletRequest request,
StringBuffer sbListSuggestSubmit,
Locale locale)
Returns the xml of this suggest
|
static void |
init()
Initialize the Suggest
|
boolean |
isActive() |
boolean |
isActiveCaptcha() |
boolean |
isActiveCommentAuthentification() |
boolean |
isActiveEditorBbcode() |
boolean |
isActiveSuggestPropositionState()
return true if the suggest proposition state exist
|
boolean |
isActiveSuggestSubmitAuthentification()
return true if the form of suggest submit creation required a captcha
|
boolean |
isActiveSuggestSubmitPaginator() |
boolean |
isActiveVoteAuthentification() |
boolean |
isAuthorizedComment()
return true if the comment are authorized
|
boolean |
isDefaultSuggest() |
boolean |
isDisableNewComment() |
boolean |
isDisableNewSuggestSubmit() |
boolean |
isDisableVote() |
boolean |
isDisplayCommentInSuggestSubmitList() |
boolean |
isEnableMailNewCommentSubmit() |
boolean |
isEnableMailNewReportedSubmit() |
boolean |
isEnableMailNewSuggestSubmit() |
boolean |
isEnableReports() |
boolean |
isEnableTermsOfUse() |
boolean |
isLimitNumberVote() |
boolean |
isShowCategoryBlock() |
boolean |
isShowTopCommentBlock() |
boolean |
isShowTopScoreBlock() |
String |
parseBbcodeValue(String strValue)
parseBbcodeValue
|
void |
setActions(List<SuggestAction> suggestActions)
set a list of action can be use for the suggest
|
void |
setActive(boolean active)
set true if the suggest is active
|
void |
setActiveCaptcha(boolean activeCaptcha)
set true if the suggest for creating suggest contain a captcha
|
void |
setActiveCommentAuthentification(boolean activeCommentAuthentification)
set true if the comment on suggest submit required an authentification
|
void |
setActiveEditorBbcode(boolean nActiveEditorBbCode)
set true if the editor BBcode must be display
|
void |
setActiveSuggestPropositionState(boolean activeSuggestPropositionState)
set true if the suggest proposition state exist
|
void |
setActiveSuggestSubmitAuthentification(boolean activeSuggestSubmitAuthentification)
set true if the form of suggest submit creation required a captcha
|
void |
setActiveSuggestSubmitPaginator(boolean activeSuggestSubmitPaginator)
set true if the paginator is enable
|
void |
setActiveVoteAuthentification(boolean activeVoteAuthentification)
set true if the vote on suggest submit required an authentification
|
void |
setAuthorizedComment(boolean authorizedComment)
set true if the comment are authorized
|
void |
setCategories(List<Category> listCategories)
set the list of categories associate to the suggest
|
void |
setCodeTheme(String strCodeTheme)
set the theme code
|
void |
setConfirmationMessage(String strConfirmationMessage) |
void |
setDateCreation(Timestamp dateCreation)
set the creation date
|
void |
setDefaultSuggest(boolean bDefaultSuggest)
set true if the suggest is a Default suggest
|
void |
setDescription(String strDescription) |
void |
setDisableNewComment(boolean disableNewComment)
true if the new comment must be disable
|
void |
setDisableNewSuggestSubmit(boolean disableNewSuggestSubmit)
set true if the new suggest submit must be disable
|
void |
setDisableVote(boolean bDisable)
set true if the vote is disable
|
void |
setDisplayCommentInSuggestSubmitList(boolean bDisplayCommentInSuggestSubmitList) |
void |
setEnableMailNewCommentSubmit(boolean bEnableMailNewCommentSubmit)
set true if a mail must be sent when the new comment is submitted
|
void |
setEnableMailNewReportedSubmit(boolean bEnableMailNewReportedSubmit)
set true if a mail must be sent when the new reported is submitted
|
void |
setEnableMailNewSuggestSubmit(boolean enableMailNewSuggestSubmit)
set true if a mail must be sent when the new suggest is submitted
|
void |
setEnableReports(boolean bEnableReports) |
void |
setEnableTermsOfUse(boolean bEnableTermsOfUse) |
void |
setEntries(List<IEntry> listEntries)
set the list of entries associate to the suggest
|
void |
setHeader(String strHeader)
Sets the suggest's header
|
void |
setIdDefaultSort(int nIdDefaultSort)
set id Default Sort
|
void |
setIdImageResource(Integer nIdImageResource)
image resource id associate to the suggest
|
void |
setIdMailingListSuggestSubmit(int mailingListId)
set the id of the mailing list associate to the suggest submit
|
void |
setIdSuggest(int idSuggest)
set the id of the suggest
|
void |
setImage(fr.paris.lutece.portal.service.image.ImageResource image)
set Image Resource
|
void |
setLibelleContribution(String libelleSuggestName)
set the libelle of the suggest name
|
void |
setLibelleValidateButton(String libelleValidateButton)
set the libelle of the validate button
|
void |
setLimitNumberVote(boolean numberVote)
set true if the user can submit just one vote
|
void |
setNotificationNewCommentBody(String _strNotificationNewCommentBody) |
void |
setNotificationNewCommentSenderName(String _strNotificationNewCommentSenderName) |
void |
setNotificationNewCommentTitle(String _strNotificationNewCommentTitle) |
void |
setNotificationNewSuggestSubmitBody(String _strNotificationSuggestSubmitBody) |
void |
setNotificationNewSuggestSubmitSenderName(String _strNotificationNewSuggestSubmitSenderName) |
void |
setNotificationNewSuggestSubmitTitle(String _strNotificationNewSuggestSubmitTitle) |
void |
setNumberCharCommentDisplayInSuggestSubmitList(Integer nNumberCommentDisplayInSuggestSubmitList) |
void |
setNumberCommentDisplayInSuggestSubmitList(Integer nNumberCommentDisplayInSuggestSubmitList) |
void |
setNumberDayRequired(int numberDayRequired)
set the number of day required for disable a suggest submit
|
void |
setNumberSuggestSubmitCaractersShown(int numberCaractersShown)
set the nunber of caracters shown in the list of suggest submit
|
void |
setNumberSuggestSubmitInTopComment(int numberTopComment)
Set the number of suggest submit display in the list of top comment
|
void |
setNumberSuggestSubmitInTopScore(int numberTopScore)
Set the number of comment display in the list of top score
|
void |
setNumberSuggestSubmitPerPage(int numberSuggestSubmitPerPage)
set the number of suggest submit per page
|
void |
setNumberVoteRequired(int numberVoteRequired)
Set the number of vote required for publishing a suggest submit
|
void |
setRole(String strRole)
Sets the suggest's role
|
void |
setShowCategoryBlock(boolean activeCategoryBloc)
set true if the category bloc must be show
|
void |
setShowTopCommentBlock(boolean activeTopCommentBloc)
set true if the top comment bloc must be show
|
void |
setShowTopScoreBlock(boolean activeTopScoreBloc)
set true if the top score bloc must be show
|
void |
setSortField(int nSortField) |
void |
setSuggestsSubmit(List<SuggestSubmit> suggestsSubmit)
set the suggest submit List associate to the suggest
|
void |
setSuggestSubmiTypes(List<SuggestSubmitType> suggestSubmitTypes)
set the suggest submit type List associate to the suggest
|
void |
setTermsOfUse(String strTermsOfUse)
set Terms of use
|
void |
setTitle(String strTitle)
set the title of the suggest
|
void |
setUnavailabilityMessage(String unavailabilityMessage)
set the unavailability message of the suggest
|
void |
setVoteType(VoteType type)
set the vote type associate to the suggest
|
void |
setWorkgroup(String workGroup)
set the work group associate to the suggest
|
public static final String RESOURCE_TYPE
public static final String ROLE_NONE
public static final String TAG_LIST_ENTRY
public static final int STATE_ENABLE
public static final int STATE_DISABLE
public static void init()
public int getIdMailingListSuggestSubmit()
public void setIdMailingListSuggestSubmit(int mailingListId)
mailingListId - the id of the mailing list associate to the suggest submitpublic boolean isActiveCaptcha()
public void setActiveCaptcha(boolean activeCaptcha)
activeCaptcha - true if the suggest for creating suggest contain a captchapublic String getLibelleValidateButton()
public void setLibelleValidateButton(String libelleValidateButton)
libelleValidateButton - the libelle of the validate buttonpublic String getLibelleContribution()
public void setLibelleContribution(String libelleSuggestName)
libelleSuggestName - the libelle of the suggest contributionpublic String getTitle()
public void setTitle(String strTitle)
strTitle - the title of the suggestpublic String getUnavailabilityMessage()
public void setUnavailabilityMessage(String unavailabilityMessage)
unavailabilityMessage - the unavailability message of the suggestpublic String getWorkgroup()
getWorkgroup in interface fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResourcepublic void setWorkgroup(String workGroup)
workGroup - the work group associate to the suggestpublic int getIdSuggest()
public void setIdSuggest(int idSuggest)
idSuggest - the id of the suggestpublic boolean isActive()
public void setActive(boolean active)
active - true if the suggest is activepublic Timestamp getDateCreation()
public void setDateCreation(Timestamp dateCreation)
dateCreation - the creation datepublic String getResourceTypeCode()
getResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResourcepublic String getResourceId()
getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResourcepublic List<SuggestAction> getActions()
public void setActions(List<SuggestAction> suggestActions)
suggestActions - a list of action must be use for the suggestpublic int getNumberVoteRequired()
public void setNumberVoteRequired(int numberVoteRequired)
numberVoteRequired - the number of vote required for publishing a suggest submitpublic int getNumberDayRequired()
public void setNumberDayRequired(int numberDayRequired)
numberDayRequired - the number of day required for disable a suggest submitpublic boolean isActiveSuggestSubmitAuthentification()
public void setActiveSuggestSubmitAuthentification(boolean activeSuggestSubmitAuthentification)
activeSuggestSubmitAuthentification - true if the form of suggest submit creation required a captchapublic boolean isActiveVoteAuthentification()
public void setActiveVoteAuthentification(boolean activeVoteAuthentification)
activeVoteAuthentification - true if the vote on suggest submit required an authentificationpublic boolean isActiveCommentAuthentification()
public void setActiveCommentAuthentification(boolean activeCommentAuthentification)
activeCommentAuthentification - true if the comment on suggest submit required an authentificationpublic boolean isDisableNewSuggestSubmit()
public void setDisableNewSuggestSubmit(boolean disableNewSuggestSubmit)
disableNewSuggestSubmit - true if the new suggest submit must be disablepublic boolean isEnableMailNewSuggestSubmit()
public void setEnableMailNewSuggestSubmit(boolean enableMailNewSuggestSubmit)
enableMailNewSuggestSubmit - true if a mail must be sent when the new suggest is submittedpublic boolean isDisableNewComment()
public void setDisableNewComment(boolean disableNewComment)
disableNewComment - true if the new comment must be disablepublic void setEntries(List<IEntry> listEntries)
listEntries - the list of entries associate to the suggestpublic List<Category> getCategories()
public void setCategories(List<Category> listCategories)
listCategories - the list of categories associate to the suggestpublic VoteType getVoteType()
public void setVoteType(VoteType type)
type - the vote type associate to the suggestpublic boolean isAuthorizedComment()
public void setAuthorizedComment(boolean authorizedComment)
authorizedComment - true if the comment are authorizedpublic boolean isActiveSuggestPropositionState()
public void setActiveSuggestPropositionState(boolean activeSuggestPropositionState)
activeSuggestPropositionState - true if the suggest proposition state existpublic int getNumberSuggestSubmitInTopComment()
public void setNumberSuggestSubmitInTopComment(int numberTopComment)
numberTopComment - the number of suggest submit in the list of top commentpublic int getNumberSuggestSubmitInTopScore()
public void setNumberSuggestSubmitInTopScore(int numberTopScore)
numberTopScore - the top scorepublic boolean isLimitNumberVote()
public void setLimitNumberVote(boolean numberVote)
numberVote - true if the user can submit just one votepublic int getNumberSuggestSubmitCaractersShown()
public void setNumberSuggestSubmitCaractersShown(int numberCaractersShown)
numberCaractersShown - the nunber of caracters shown in the list of suggest submitpublic boolean isShowCategoryBlock()
public void setShowCategoryBlock(boolean activeCategoryBloc)
activeCategoryBloc - true if the category bloc must be showpublic boolean isShowTopScoreBlock()
public void setShowTopScoreBlock(boolean activeTopScoreBloc)
activeTopScoreBloc - true if the top score bloc must be showpublic boolean isShowTopCommentBlock()
public void setShowTopCommentBlock(boolean activeTopCommentBloc)
activeTopCommentBloc - true if the top comment bloc must be showpublic List<SuggestSubmit> getSuggestsSubmit()
public void setSuggestsSubmit(List<SuggestSubmit> suggestsSubmit)
suggestsSubmit - the suggest submit List associate to the suggestpublic String getXml(javax.servlet.http.HttpServletRequest request, StringBuffer sbListSuggestSubmit, Locale locale)
request - The HTTP Servlet requestsbListSuggestSubmit - The string bufferlocale - la localepublic int getNumberSuggestSubmitPerPage()
public void setNumberSuggestSubmitPerPage(int numberSuggestSubmitPerPage)
numberSuggestSubmitPerPage - the number of suggest submit per pagepublic boolean isActiveSuggestSubmitPaginator()
public void setActiveSuggestSubmitPaginator(boolean activeSuggestSubmitPaginator)
activeSuggestSubmitPaginator - true if the paginator is enablepublic String getRole()
public void setRole(String strRole)
strRole - The rolepublic void setHeader(String strHeader)
strHeader - the strHeader to setpublic String getHeader()
public void setSortField(int nSortField)
nSortField - the _nSortField to setpublic int getSortField()
public String getCodeTheme()
public void setCodeTheme(String strCodeTheme)
strCodeTheme - the theme codepublic String getConfirmationMessage()
public void setConfirmationMessage(String strConfirmationMessage)
strConfirmationMessage - the message of the validation to setpublic void setActiveEditorBbcode(boolean nActiveEditorBbCode)
nActiveEditorBbCode - true if the editor BBcode must be displaypublic boolean isActiveEditorBbcode()
public String parseBbcodeValue(String strValue)
strValue - the value to parsepublic int getIdDefaultSort()
public void setIdDefaultSort(int nIdDefaultSort)
nIdDefaultSort - the default sort idpublic boolean isDefaultSuggest()
public void setDefaultSuggest(boolean bDefaultSuggest)
bDefaultSuggest - true if the suggest is a Default suggestpublic boolean isDisableVote()
public void setDisableVote(boolean bDisable)
bDisable - true if the vote is disablepublic boolean isDisplayCommentInSuggestSubmitList()
public void setDisplayCommentInSuggestSubmitList(boolean bDisplayCommentInSuggestSubmitList)
bDisplayCommentInSuggestSubmitList - true if the list of comment must be display in suggest submit listpublic Integer getNumberCommentDisplayInSuggestSubmitList()
public void setNumberCommentDisplayInSuggestSubmitList(Integer nNumberCommentDisplayInSuggestSubmitList)
nNumberCommentDisplayInSuggestSubmitList - the number of comment submit display by suggest submit in the list of suggest submitpublic Integer getNumberCharCommentDisplayInSuggestSubmitList()
public void setNumberCharCommentDisplayInSuggestSubmitList(Integer nNumberCommentDisplayInSuggestSubmitList)
nNumberCommentDisplayInSuggestSubmitList - the number of char comment display by suggest submit in the list of suggest submitpublic boolean isEnableMailNewCommentSubmit()
public void setEnableMailNewCommentSubmit(boolean bEnableMailNewCommentSubmit)
bEnableMailNewCommentSubmit - true if a mail must be sent when the new comment is submittedpublic boolean isEnableMailNewReportedSubmit()
public void setEnableMailNewReportedSubmit(boolean bEnableMailNewReportedSubmit)
bEnableMailNewReportedSubmit - true if a mail must be sent when the new comment is submittedpublic List<SuggestSubmitType> getSuggestSubmitTypes()
public void setSuggestSubmiTypes(List<SuggestSubmitType> suggestSubmitTypes)
suggestSubmitTypes - the suggest submit type List associate to the suggestpublic boolean isEnableTermsOfUse()
public void setEnableTermsOfUse(boolean bEnableTermsOfUse)
bEnableTermsOfUse - true if Terms of use must be enablepublic String getTermsOfUse()
public void setTermsOfUse(String strTermsOfUse)
strTermsOfUse - the terms of usepublic String getDescription()
public void setDescription(String strDescription)
strDescription - set the suggest descriptionpublic boolean isEnableReports()
public void setEnableReports(boolean bEnableReports)
bEnableReports - true if reports are enablepublic Integer getIdImageResource()
public void setIdImageResource(Integer nIdImageResource)
nIdImageResource - image resource id associate to the suggestpublic fr.paris.lutece.portal.service.image.ImageResource getImage()
public void setImage(fr.paris.lutece.portal.service.image.ImageResource image)
image - Image Resourcepublic String getIdExtendableResource()
getIdExtendableResource in interface fr.paris.lutece.portal.service.resource.IExtendableResourcepublic String getExtendableResourceType()
getExtendableResourceType in interface fr.paris.lutece.portal.service.resource.IExtendableResourcepublic String getExtendableResourceName()
getExtendableResourceName in interface fr.paris.lutece.portal.service.resource.IExtendableResourcepublic String getExtendableResourceDescription()
getExtendableResourceDescription in interface fr.paris.lutece.portal.service.resource.IExtendableResourcepublic String getExtendableResourceImageUrl()
getExtendableResourceImageUrl in interface fr.paris.lutece.portal.service.resource.IExtendableResourcepublic String getNotificationNewCommentSenderName()
public void setNotificationNewCommentSenderName(String _strNotificationNewCommentSenderName)
_strNotificationNewCommentSenderName - public String getNotificationNewCommentTitle()
public void setNotificationNewCommentTitle(String _strNotificationNewCommentTitle)
_strNotificationNewCommentTitle - public String getNotificationNewCommentBody()
public void setNotificationNewCommentBody(String _strNotificationNewCommentBody)
_strNotificationNewCommentBody - public String getNotificationNewSuggestSubmitSenderName()
public void setNotificationNewSuggestSubmitSenderName(String _strNotificationNewSuggestSubmitSenderName)
_strNotificationNewSuggestSubmitSenderName - public String getNotificationNewSuggestSubmitTitle()
public void setNotificationNewSuggestSubmitTitle(String _strNotificationNewSuggestSubmitTitle)
_strNotificationNewSuggestSubmitTitle - public String getNotificationNewSuggestSubmitBody()
public void setNotificationNewSuggestSubmitBody(String _strNotificationSuggestSubmitBody)
_strNotificationSuggestSubmitBody - Copyright © 2016 City of Paris. All rights reserved.