org.exoplatform.faq.service
Class FAQSetting

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

public class FAQSetting
extends java.lang.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 java.lang.String DISPLAY_TYPE_ALPHABET
          The DISPLA y_ typ e_ alphabet.
static java.lang.String DISPLAY_TYPE_POSTDATE
          The DISPLA y_ typ e_ postdate.
static java.lang.String ORDERBY_TYPE_ASC
          The ORDERB y_ typ e_ asc.
static java.lang.String ORDERBY_TYPE_DESC
          The ORDERB y_ typ e_ desc.
 
Constructor Summary
FAQSetting()
           
 
Method Summary
 java.lang.String getCurrentUser()
           
 java.lang.String getDisplayMode()
          This method get one value is Alphabet or Post Date.
 java.lang.String getEmailMoveQuestion()
           
 java.lang.String getEmailSettingContent()
          Get the content of email will be sent for user.
 java.lang.String getEmailSettingSubject()
          Gets the subject of email which is sent to user.
 java.lang.String getIdNameCategoryForum()
           
 java.lang.String getIsAdmin()
          Gets the checks if is admin.
 boolean getIsDiscussForum()
           
 java.lang.String getOrderBy()
          Get field is ordered of datas are get from FAQ system, value is returned : alphabet or created date.
 java.lang.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 isSortQuestionByVote()
           
 void setCanEdit(boolean canEdit)
          Sets the can edit.
 void setCurrentUser(java.lang.String currentUser)
           
 void setDisplayMode(java.lang.String displayMode)
          All categories/questions can be displayed in some types depending on users.
 void setEmailMoveQuestion(java.lang.String emailMoveQuestion)
           
 void setEmailSettingContent(java.lang.String emailSettingContent)
          Registers content of email is sent to user, when set value for email, note: have two case
 void setEmailSettingSubject(java.lang.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(java.lang.String str)
           
 void setIsAdmin(java.lang.String isAdmin)
          Sets the checks if is admin.
 void setIsDiscussForum(boolean b)
           
 void setOrderBy(java.lang.String orderBy)
          Registers field which is ordered when get them from database.
 void setOrderType(java.lang.String orderType)
          Registers order of the field which is chosen when get data, input one of tow values: ascending and descending.
 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 java.lang.String DISPLAY_TYPE_ALPHABET
The DISPLA y_ typ e_ alphabet.


DISPLAY_TYPE_POSTDATE

public static java.lang.String DISPLAY_TYPE_POSTDATE
The DISPLA y_ typ e_ postdate.


ORDERBY_TYPE_ASC

public static java.lang.String ORDERBY_TYPE_ASC
The ORDERB y_ typ e_ asc.


ORDERBY_TYPE_DESC

public static java.lang.String ORDERBY_TYPE_DESC
The ORDERB y_ typ e_ desc.

Constructor Detail

FAQSetting

public FAQSetting()
Method Detail

getDisplayMode

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

Returns:
displayType

setDisplayMode

public void setDisplayMode(java.lang.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 java.lang.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(java.lang.String orderBy)
Registers field which is ordered when get them from database.

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

getOrderType

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

Returns:
ascending or descending

setOrderType

public void setOrderType(java.lang.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 java.lang.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(java.lang.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 java.lang.String getEmailSettingSubject()
Gets the subject of email which is sent to user.

Returns:
the email setting subject

setEmailSettingSubject

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

Parameters:
emailSettingSubject - the new email setting subject

getIsAdmin

public java.lang.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(java.lang.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 java.lang.String getIdNameCategoryForum()

setIdNameCategoryForum

public void setIdNameCategoryForum(java.lang.String str)

isEnableAutomaticRSS

public boolean isEnableAutomaticRSS()

setEnableAutomaticRSS

public void setEnableAutomaticRSS(boolean enableAutomaticRSS)

isEnableViewAvatar

public boolean isEnableViewAvatar()

setEnableViewAvatar

public void setEnableViewAvatar(boolean enableViewAvatar)

getEmailMoveQuestion

public java.lang.String getEmailMoveQuestion()

setEmailMoveQuestion

public void setEmailMoveQuestion(java.lang.String emailMoveQuestion)

getCurrentUser

public java.lang.String getCurrentUser()

setCurrentUser

public void setCurrentUser(java.lang.String currentUser)


Copyright © 2011 eXo Platform SAS. All Rights Reserved.