public class Digg 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 |
---|
Digg() |
Modifier and Type | Method and Description |
---|---|
List<DiggAction> |
getActions() |
List<Category> |
getCategories() |
String |
getCodeTheme() |
String |
getConfirmationMessage() |
Timestamp |
getDateCreation() |
String |
getDescription() |
List<DiggSubmit> |
getDiggsSubmit() |
List<DiggSubmitType> |
getDiggSubmitTypes() |
List<IEntry> |
getEntries() |
String |
getExtendableResourceDescription() |
String |
getExtendableResourceImageUrl() |
String |
getExtendableResourceName() |
String |
getExtendableResourceType() |
String |
getHeader() |
int |
getIdDefaultSort() |
int |
getIdDigg() |
String |
getIdExtendableResource() |
Integer |
getIdImageResource()
the image resource id associate to the digg
|
int |
getIdMailingListDiggSubmit() |
fr.paris.lutece.portal.service.image.ImageResource |
getImage()
get Image
|
String |
getLibelleContribution() |
String |
getLibelleValidateButton() |
String |
getNotificationNewCommentBody() |
String |
getNotificationNewCommentSenderName() |
String |
getNotificationNewCommentTitle() |
String |
getNotificationNewDiggSubmitBody() |
String |
getNotificationNewDiggSubmitSenderName() |
String |
getNotificationNewDiggSubmitTitle() |
Integer |
getNumberCharCommentDisplayInDiggSubmitList() |
Integer |
getNumberCommentDisplayInDiggSubmitList() |
int |
getNumberDayRequired()
return the number of day required for disable a digg submit
|
int |
getNumberDiggSubmitCaractersShown()
return the nunber of caracters shown in the list of digg submit
|
int |
getNumberDiggSubmitInTopComment()
return the number of digg submit display in the list of top comment
|
int |
getNumberDiggSubmitInTopScore()
return the number of digg submit display in the list of top score
|
int |
getNumberDiggSubmitPerPage() |
int |
getNumberVoteRequired()
return the number of vote required for publishing a digg submit
|
String |
getResourceId()
RBAC resource implmentation
|
String |
getResourceTypeCode()
RBAC resource implmentation
|
String |
getRole()
Gets the digg role
|
int |
getSortField() |
String |
getTermsOfUse()
the terms of use
|
String |
getTitle() |
String |
getUnavailabilityMessage() |
VoteType |
getVoteType() |
String |
getWorkgroup() |
String |
getXml(javax.servlet.http.HttpServletRequest request,
StringBuffer sbListDiggSubmit,
Locale locale)
Returns the xml of this digg
|
static void |
init()
Initialize the Digg
|
boolean |
isActive() |
boolean |
isActiveCaptcha() |
boolean |
isActiveCommentAuthentification() |
boolean |
isActiveDiggPropositionState()
return true if the digg proposition state exist
|
boolean |
isActiveDiggSubmitAuthentification()
return true if the form of digg submit creation required a captcha
|
boolean |
isActiveDiggSubmitPaginator() |
boolean |
isActiveEditorBbcode() |
boolean |
isActiveVoteAuthentification() |
boolean |
isAuthorizedComment()
return true if the comment are authorized
|
boolean |
isDefaultDigg() |
boolean |
isDisableNewComment() |
boolean |
isDisableNewDiggSubmit() |
boolean |
isDisableVote() |
boolean |
isDisplayCommentInDiggSubmitList() |
boolean |
isEnableMailNewCommentSubmit() |
boolean |
isEnableMailNewDiggSubmit() |
boolean |
isEnableMailNewReportedSubmit() |
boolean |
isEnableReports() |
boolean |
isEnableTermsOfUse() |
boolean |
isLimitNumberVote() |
boolean |
isShowCategoryBlock() |
boolean |
isShowTopCommentBlock() |
boolean |
isShowTopScoreBlock() |
String |
parseBbcodeValue(String strValue)
parseBbcodeValue
|
void |
setActions(List<DiggAction> diggActions)
set a list of action can be use for the digg
|
void |
setActive(boolean active)
set true if the digg is active
|
void |
setActiveCaptcha(boolean activeCaptcha)
set true if the digg for creating digg contain a captcha
|
void |
setActiveCommentAuthentification(boolean activeCommentAuthentification)
set true if the comment on digg submit required an authentification
|
void |
setActiveDiggPropositionState(boolean activeDiggPropositionState)
set true if the digg proposition state exist
|
void |
setActiveDiggSubmitAuthentification(boolean activeDiggSubmitAuthentification)
set true if the form of digg submit creation required a captcha
|
void |
setActiveDiggSubmitPaginator(boolean activeDiggSubmitPaginator)
set true if the paginator is enable
|
void |
setActiveEditorBbcode(boolean nActiveEditorBbCode)
set true if the editor BBcode must be display
|
void |
setActiveVoteAuthentification(boolean activeVoteAuthentification)
set true if the vote on digg 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 digg
|
void |
setCodeTheme(String strCodeTheme)
set the theme code
|
void |
setConfirmationMessage(String strConfirmationMessage) |
void |
setDateCreation(Timestamp dateCreation)
set the creation date
|
void |
setDefaultDigg(boolean bDefaultDigg)
set true if the digg is a Default digg
|
void |
setDescription(String strDescription) |
void |
setDiggsSubmit(List<DiggSubmit> diggsSubmit)
set the digg submit List associate to the digg
|
void |
setDiggSubmiTypes(List<DiggSubmitType> diggSubmitTypes)
set the digg submit type List associate to the digg
|
void |
setDisableNewComment(boolean disableNewComment)
true if the new comment must be disable
|
void |
setDisableNewDiggSubmit(boolean disableNewDiggSubmit)
set true if the new digg submit must be disable
|
void |
setDisableVote(boolean bDisable)
set true if the vote is disable
|
void |
setDisplayCommentInDiggSubmitList(boolean bDisplayCommentInDiggSubmitList) |
void |
setEnableMailNewCommentSubmit(boolean bEnableMailNewCommentSubmit)
set true if a mail must be sent when the new comment is submitted
|
void |
setEnableMailNewDiggSubmit(boolean enableMailNewDiggSubmit)
set true if a mail must be sent when the new digg is submitted
|
void |
setEnableMailNewReportedSubmit(boolean bEnableMailNewReportedSubmit)
set true if a mail must be sent when the new reported is submitted
|
void |
setEnableReports(boolean bEnableReports) |
void |
setEnableTermsOfUse(boolean bEnableTermsOfUse) |
void |
setEntries(List<IEntry> listEntries)
set the list of entries associate to the digg
|
void |
setHeader(String strHeader)
Sets the digg's header
|
void |
setIdDefaultSort(int nIdDefaultSort)
set id Default Sort
|
void |
setIdDigg(int idDigg)
set the id of the digg
|
void |
setIdImageResource(Integer nIdImageResource)
image resource id associate to the digg
|
void |
setIdMailingListDiggSubmit(int mailingListId)
set the id of the mailing list associate to the digg submit
|
void |
setImage(fr.paris.lutece.portal.service.image.ImageResource image)
set Image Resource
|
void |
setLibelleContribution(String libelleDiggName)
set the libelle of the digg 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 |
setNotificationNewDiggSubmitBody(String _strNotificationDiggSubmitBody) |
void |
setNotificationNewDiggSubmitSenderName(String _strNotificationNewDiggSubmitSenderName) |
void |
setNotificationNewDiggSubmitTitle(String _strNotificationNewDiggSubmitTitle) |
void |
setNumberCharCommentDisplayInDiggSubmitList(Integer nNumberCommentDisplayInDiggSubmitList) |
void |
setNumberCommentDisplayInDiggSubmitList(Integer nNumberCommentDisplayInDiggSubmitList) |
void |
setNumberDayRequired(int numberDayRequired)
set the number of day required for disable a digg submit
|
void |
setNumberDiggSubmitCaractersShown(int numberCaractersShown)
set the nunber of caracters shown in the list of digg submit
|
void |
setNumberDiggSubmitInTopComment(int numberTopComment)
Set the number of digg submit display in the list of top comment
|
void |
setNumberDiggSubmitInTopScore(int numberTopScore)
Set the number of comment display in the list of top score
|
void |
setNumberDiggSubmitPerPage(int numberDiggSubmitPerPage)
set the number of digg submit per page
|
void |
setNumberVoteRequired(int numberVoteRequired)
Set the number of vote required for publishing a digg submit
|
void |
setRole(String strRole)
Sets the digg'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 |
setTermsOfUse(String strTermsOfUse)
set Terms of use
|
void |
setTitle(String strTitle)
set the title of the digg
|
void |
setUnavailabilityMessage(String unavailabilityMessage)
set the unavailability message of the digg
|
void |
setVoteType(VoteType type)
set the vote type associate to the digg
|
void |
setWorkgroup(String workGroup)
set the work group associate to the digg
|
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 getIdMailingListDiggSubmit()
public void setIdMailingListDiggSubmit(int mailingListId)
mailingListId
- the id of the mailing list associate to the digg submitpublic boolean isActiveCaptcha()
public void setActiveCaptcha(boolean activeCaptcha)
activeCaptcha
- true if the digg for creating digg contain a captchapublic String getLibelleValidateButton()
public void setLibelleValidateButton(String libelleValidateButton)
libelleValidateButton
- the libelle of the validate buttonpublic String getLibelleContribution()
public void setLibelleContribution(String libelleDiggName)
libelleDiggName
- the libelle of the digg contributionpublic String getTitle()
public void setTitle(String strTitle)
strTitle
- the title of the diggpublic String getUnavailabilityMessage()
public void setUnavailabilityMessage(String unavailabilityMessage)
unavailabilityMessage
- the unavailability message of the diggpublic String getWorkgroup()
getWorkgroup
in interface fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource
public void setWorkgroup(String workGroup)
workGroup
- the work group associate to the diggpublic int getIdDigg()
public void setIdDigg(int idDigg)
idDigg
- the id of the diggpublic boolean isActive()
public void setActive(boolean active)
active
- true if the digg is activepublic Timestamp getDateCreation()
public void setDateCreation(Timestamp dateCreation)
dateCreation
- the creation datepublic String getResourceTypeCode()
getResourceTypeCode
in interface fr.paris.lutece.portal.service.rbac.RBACResource
public String getResourceId()
getResourceId
in interface fr.paris.lutece.portal.service.rbac.RBACResource
public List<DiggAction> getActions()
public void setActions(List<DiggAction> diggActions)
diggActions
- a list of action must be use for the diggpublic int getNumberVoteRequired()
public void setNumberVoteRequired(int numberVoteRequired)
numberVoteRequired
- the number of vote required for publishing a digg submitpublic int getNumberDayRequired()
public void setNumberDayRequired(int numberDayRequired)
numberDayRequired
- the number of day required for disable a digg submitpublic boolean isActiveDiggSubmitAuthentification()
public void setActiveDiggSubmitAuthentification(boolean activeDiggSubmitAuthentification)
activeDiggSubmitAuthentification
- true if the form of digg submit creation required a captchapublic boolean isActiveVoteAuthentification()
public void setActiveVoteAuthentification(boolean activeVoteAuthentification)
activeVoteAuthentification
- true if the vote on digg submit required an authentificationpublic boolean isActiveCommentAuthentification()
public void setActiveCommentAuthentification(boolean activeCommentAuthentification)
activeCommentAuthentification
- true if the comment on digg submit required an authentificationpublic boolean isDisableNewDiggSubmit()
public void setDisableNewDiggSubmit(boolean disableNewDiggSubmit)
disableNewDiggSubmit
- true if the new digg submit must be disablepublic boolean isEnableMailNewDiggSubmit()
public void setEnableMailNewDiggSubmit(boolean enableMailNewDiggSubmit)
enableMailNewDiggSubmit
- true if a mail must be sent when the new digg 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 diggpublic List<Category> getCategories()
public void setCategories(List<Category> listCategories)
listCategories
- the list of categories associate to the diggpublic VoteType getVoteType()
public void setVoteType(VoteType type)
type
- the vote type associate to the diggpublic boolean isAuthorizedComment()
public void setAuthorizedComment(boolean authorizedComment)
authorizedComment
- true if the comment are authorizedpublic boolean isActiveDiggPropositionState()
public void setActiveDiggPropositionState(boolean activeDiggPropositionState)
activeDiggPropositionState
- true if the digg proposition state existpublic int getNumberDiggSubmitInTopComment()
public void setNumberDiggSubmitInTopComment(int numberTopComment)
numberTopComment
- the number of digg submit in the list of top commentpublic int getNumberDiggSubmitInTopScore()
public void setNumberDiggSubmitInTopScore(int numberTopScore)
numberTopScore
- the top scorepublic boolean isLimitNumberVote()
public void setLimitNumberVote(boolean numberVote)
numberVote
- true if the user can submit just one votepublic int getNumberDiggSubmitCaractersShown()
public void setNumberDiggSubmitCaractersShown(int numberCaractersShown)
numberCaractersShown
- the nunber of caracters shown in the list of digg 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<DiggSubmit> getDiggsSubmit()
public void setDiggsSubmit(List<DiggSubmit> diggsSubmit)
diggsSubmit
- the digg submit List associate to the diggpublic String getXml(javax.servlet.http.HttpServletRequest request, StringBuffer sbListDiggSubmit, Locale locale)
request
- The HTTP Servlet requestsbListDiggSubmit
- The string bufferlocale
- la localepublic int getNumberDiggSubmitPerPage()
public void setNumberDiggSubmitPerPage(int numberDiggSubmitPerPage)
numberDiggSubmitPerPage
- the number of digg submit per pagepublic boolean isActiveDiggSubmitPaginator()
public void setActiveDiggSubmitPaginator(boolean activeDiggSubmitPaginator)
activeDiggSubmitPaginator
- 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 isDefaultDigg()
public void setDefaultDigg(boolean bDefaultDigg)
bDefaultDigg
- true if the digg is a Default diggpublic boolean isDisableVote()
public void setDisableVote(boolean bDisable)
bDisable
- true if the vote is disablepublic boolean isDisplayCommentInDiggSubmitList()
public void setDisplayCommentInDiggSubmitList(boolean bDisplayCommentInDiggSubmitList)
bDisplayCommentInDiggSubmitList
- true if the list of comment must be display in digg submit listpublic Integer getNumberCommentDisplayInDiggSubmitList()
public void setNumberCommentDisplayInDiggSubmitList(Integer nNumberCommentDisplayInDiggSubmitList)
nNumberCommentDisplayInDiggSubmitList
- the number of comment submit display by digg submit in the list of digg submitpublic Integer getNumberCharCommentDisplayInDiggSubmitList()
public void setNumberCharCommentDisplayInDiggSubmitList(Integer nNumberCommentDisplayInDiggSubmitList)
nNumberCommentDisplayInDiggSubmitList
- the number of char comment display by digg submit in the list of digg 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<DiggSubmitType> getDiggSubmitTypes()
public void setDiggSubmiTypes(List<DiggSubmitType> diggSubmitTypes)
diggSubmitTypes
- the digg submit type List associate to the diggpublic 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 digg 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 diggpublic 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.IExtendableResource
public String getExtendableResourceType()
getExtendableResourceType
in interface fr.paris.lutece.portal.service.resource.IExtendableResource
public String getExtendableResourceName()
getExtendableResourceName
in interface fr.paris.lutece.portal.service.resource.IExtendableResource
public String getExtendableResourceDescription()
getExtendableResourceDescription
in interface fr.paris.lutece.portal.service.resource.IExtendableResource
public String getExtendableResourceImageUrl()
getExtendableResourceImageUrl
in interface fr.paris.lutece.portal.service.resource.IExtendableResource
public 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 getNotificationNewDiggSubmitSenderName()
public void setNotificationNewDiggSubmitSenderName(String _strNotificationNewDiggSubmitSenderName)
_strNotificationNewDiggSubmitSenderName
- public String getNotificationNewDiggSubmitTitle()
public void setNotificationNewDiggSubmitTitle(String _strNotificationNewDiggSubmitTitle)
_strNotificationNewDiggSubmitTitle
- public String getNotificationNewDiggSubmitBody()
public void setNotificationNewDiggSubmitBody(String _strNotificationDiggSubmitBody)
_strNotificationDiggSubmitBody
- Copyright © 2016 Mairie de Paris. All Rights Reserved.