org.exoplatform.faq.service
Class FAQSetting

java.lang.Object
  extended by org.exoplatform.faq.service.FAQSetting

public class FAQSetting
extends Object

Created by The eXo Platform SARL This Object is used to set some properties of FAQ. Author : Truong Nguyen truong.nguyen@exoplatform.com Apr 10, 2008, 2:07:25 PM


Field Summary
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 Summary
FAQSetting()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISPLAY_TYPE_ALPHABET

public static String DISPLAY_TYPE_ALPHABET
The DISPLA type alphabet.


DISPLAY_TYPE_POSTDATE

public static String DISPLAY_TYPE_POSTDATE
The DISPLA type postdate.


ORDERBY_TYPE_ASC

public static String ORDERBY_TYPE_ASC
The ORDERB type asc.


ORDERBY_TYPE_DESC

public static String ORDERBY_TYPE_DESC
The ORDERB type desc.


ORDERBY_ASC

public static String ORDERBY_ASC
The ORDERB asc.


ORDERBY_DESC

public static String ORDERBY_DESC
The ORDERB desc.


DISPLAY_APPROVED

public static String DISPLAY_APPROVED

DISPLAY_BOTH

public static String DISPLAY_BOTH
Constructor Detail

FAQSetting

public FAQSetting()
Method Detail

getDisplayMode

public String getDisplayMode()
This method get one value is Alphabet or Post Date.

Returns:
displayType

setDisplayMode

public void setDisplayMode(String displayMode)
All categories/questions can be displayed in some types depending on users. This is a combobox with two values: Alphabet or Post Date

Parameters:
displayMode - the display mode

getOrderBy

public String getOrderBy()
Get field is ordered of datas are get from FAQ system, value is returned : alphabet or created date.

Returns:
order of categories and questions

setOrderBy

public void setOrderBy(String orderBy)
Registers field which is ordered when get them from database.

Parameters:
orderBy - only one of two case: alphabet or created

getOrderType

public String getOrderType()
Get how to order when get data, have two values: ascending and descending.

Returns:
ascending or descending

setOrderType

public void setOrderType(String orderType)
Registers order of the field which is chosen when get data, input one of tow values: ascending and descending.

Parameters:
orderType - ascending or descending

isCanEdit

public boolean isCanEdit()
Checks if is can edit. Return true if user is admin or moderator or this category and return false if opposite

Returns:
true, if is can edit

setCanEdit

public void setCanEdit(boolean canEdit)
Sets the can edit. input a boolean value, true if user is addmin of FAQ or moderator of this category and false if opposite

Parameters:
canEdit - the new can edit

getEmailSettingContent

public String getEmailSettingContent()
Get the content of email will be sent for user. This email have two cases:

The first: when add new question

The second: when edit or answer for question

Returns:
the email setting content

setEmailSettingContent

public void setEmailSettingContent(String emailSettingContent)
Registers content of email is sent to user, when set value for email, note: have two case

The first: when add new question

The second: when edit or answer for question.

Parameters:
emailSettingContent - content of email

getEmailSettingSubject

public String getEmailSettingSubject()
Gets the subject of email which is sent to user.

Returns:
the email setting subject

setEmailSettingSubject

public void setEmailSettingSubject(String emailSettingSubject)
Sets the subject of email will be sent to user.

Parameters:
emailSettingSubject - the new email setting subject

getIsAdmin

public String getIsAdmin()
Gets the checks if is admin. Return a String "True" if user is addmin and "False" if is not addmin

Returns:
the checks if is admin

setIsAdmin

public void setIsAdmin(String isAdmin)
Sets the checks if is admin. Input "True" if user is addmin and "False" if not

Parameters:
isAdmin - the new checks if is admin

isAdmin

public boolean isAdmin()
Checks user is admin or not. This function retrun true if user is addmin and false if not

Returns:
true, if is admin

isSortQuestionByVote

public boolean isSortQuestionByVote()

setSortQuestionByVote

public void setSortQuestionByVote(boolean sortAnswerByVote)

isEnanbleVotesAndComments

public boolean isEnanbleVotesAndComments()

setEnanbleVotesAndComments

public void setEnanbleVotesAndComments(boolean enanbleVotesAndComments)

isEnableAnonymousSubmitQuestion

public boolean isEnableAnonymousSubmitQuestion()

setEnableAnonymousSubmitQuestion

public void setEnableAnonymousSubmitQuestion(boolean isSubmit)

getIsDiscussForum

public boolean getIsDiscussForum()

setIsDiscussForum

public void setIsDiscussForum(boolean b)

getIdNameCategoryForum

public String getIdNameCategoryForum()

setIdNameCategoryForum

public void setIdNameCategoryForum(String str)

isEnableAutomaticRSS

public boolean isEnableAutomaticRSS()

setEnableAutomaticRSS

public void setEnableAutomaticRSS(boolean enableAutomaticRSS)

isEnableViewAvatar

public boolean isEnableViewAvatar()

setEnableViewAvatar

public void setEnableViewAvatar(boolean enableViewAvatar)

getEmailMoveQuestion

public String getEmailMoveQuestion()

setEmailMoveQuestion

public void setEmailMoveQuestion(String emailMoveQuestion)

getCurrentUser

public String getCurrentUser()

setCurrentUser

public void setCurrentUser(String currentUser)

setPostQuestionInRootCategory

public void setPostQuestionInRootCategory(boolean isPostQuestionInRootCategory)
Parameters:
isPostQuestionInRootCategory - the isPostQuestionInRootCategory to set

isPostQuestionInRootCategory

public boolean isPostQuestionInRootCategory()
Returns:
the isPostQuestionInRootCategory


Copyright © 2013 eXo Platform SAS. All Rights Reserved.