public class FAQSetting extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DISPLAY_APPROVED |
static String |
DISPLAY_BOTH |
static String |
DISPLAY_TYPE_ALPHABET
The DISPLA type alphabet.
|
static String |
DISPLAY_TYPE_POSTDATE
The DISPLA type postdate.
|
static String |
ORDERBY_ASC
The ORDERB asc.
|
static String |
ORDERBY_DESC
The ORDERB desc.
|
static String |
ORDERBY_TYPE_ASC
The ORDERB type asc.
|
static String |
ORDERBY_TYPE_DESC
The ORDERB type desc.
|
| Constructor and Description |
|---|
FAQSetting() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentUser() |
String |
getDisplayMode()
This method get one value is Alphabet or Post Date.
|
String |
getEmailMoveQuestion() |
String |
getEmailSettingContent()
Get the content of email will be sent for user.
|
String |
getEmailSettingSubject()
Gets the subject of email which is sent to user.
|
String |
getIdNameCategoryForum() |
String |
getIsAdmin()
Gets the checks if is admin.
|
boolean |
getIsDiscussForum() |
String |
getOrderBy()
Get field is ordered of datas are get from FAQ system, value is returned : alphabet or created date.
|
String |
getOrderType()
Get how to order when get data, have two values: ascending and descending.
|
boolean |
isAdmin()
Checks user is admin or not.
|
boolean |
isCanEdit()
Checks if is can edit.
|
boolean |
isEnableAnonymousSubmitQuestion() |
boolean |
isEnableAutomaticRSS() |
boolean |
isEnableViewAvatar() |
boolean |
isEnanbleVotesAndComments() |
boolean |
isPostQuestionInRootCategory() |
boolean |
isSortQuestionByVote() |
void |
setCanEdit(boolean canEdit)
Sets the can edit.
|
void |
setCurrentUser(String currentUser) |
void |
setDisplayMode(String displayMode)
All categories/questions can be displayed in some types depending on users.
|
void |
setEmailMoveQuestion(String emailMoveQuestion) |
void |
setEmailSettingContent(String emailSettingContent)
Registers content of email is sent to user,
when set value for email, note: have two case
|
void |
setEmailSettingSubject(String emailSettingSubject)
Sets the subject of email will be sent to user.
|
void |
setEnableAnonymousSubmitQuestion(boolean isSubmit) |
void |
setEnableAutomaticRSS(boolean enableAutomaticRSS) |
void |
setEnableViewAvatar(boolean enableViewAvatar) |
void |
setEnanbleVotesAndComments(boolean enanbleVotesAndComments) |
void |
setIdNameCategoryForum(String str) |
void |
setIsAdmin(String isAdmin)
Sets the checks if is admin.
|
void |
setIsDiscussForum(boolean b) |
void |
setOrderBy(String orderBy)
Registers field which is ordered when get them from database.
|
void |
setOrderType(String orderType)
Registers order of the field which is chosen when get data,
input one of tow values:
ascending and descending. |
void |
setPostQuestionInRootCategory(boolean isPostQuestionInRootCategory) |
void |
setSortQuestionByVote(boolean sortAnswerByVote) |
public static String DISPLAY_TYPE_ALPHABET
public static String DISPLAY_TYPE_POSTDATE
public static String ORDERBY_TYPE_ASC
public static String ORDERBY_TYPE_DESC
public static String ORDERBY_ASC
public static String ORDERBY_DESC
public static String DISPLAY_APPROVED
public static String DISPLAY_BOTH
public String getDisplayMode()
public void setDisplayMode(String displayMode)
displayMode - the display modepublic String getOrderBy()
public void setOrderBy(String orderBy)
orderBy - only one of two case: alphabet or createdpublic String getOrderType()
public void setOrderType(String orderType)
ascending and descending.orderType - ascending or descendingpublic boolean isCanEdit()
true if user is admin or moderator or
this category and return false if oppositepublic void setCanEdit(boolean canEdit)
true if user is addmin of FAQ or moderator
of this category and false if oppositecanEdit - the new can editpublic String getEmailSettingContent()
The first: when add new question
The second: when edit or answer for question
public void setEmailSettingContent(String emailSettingContent)
The first: when add new question
The second: when edit or answer for question.
emailSettingContent - content of emailpublic String getEmailSettingSubject()
public void setEmailSettingSubject(String emailSettingSubject)
emailSettingSubject - the new email setting subjectpublic String getIsAdmin()
public void setIsAdmin(String isAdmin)
isAdmin - the new checks if is adminpublic boolean isAdmin()
true
if user is addmin and false if notpublic boolean isSortQuestionByVote()
public void setSortQuestionByVote(boolean sortAnswerByVote)
public boolean isEnanbleVotesAndComments()
public void setEnanbleVotesAndComments(boolean enanbleVotesAndComments)
public boolean isEnableAnonymousSubmitQuestion()
public void setEnableAnonymousSubmitQuestion(boolean isSubmit)
public boolean getIsDiscussForum()
public void setIsDiscussForum(boolean b)
public String getIdNameCategoryForum()
public void setIdNameCategoryForum(String str)
public boolean isEnableAutomaticRSS()
public void setEnableAutomaticRSS(boolean enableAutomaticRSS)
public boolean isEnableViewAvatar()
public void setEnableViewAvatar(boolean enableViewAvatar)
public String getEmailMoveQuestion()
public void setEmailMoveQuestion(String emailMoveQuestion)
public String getCurrentUser()
public void setCurrentUser(String currentUser)
public void setPostQuestionInRootCategory(boolean isPostQuestionInRootCategory)
isPostQuestionInRootCategory - the isPostQuestionInRootCategory to setpublic boolean isPostQuestionInRootCategory()
Copyright © 2003–2015 eXo Platform SAS. All rights reserved.