org.exoplatform.answer.webui
Class UIQuestions

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.answer.webui.UIQuestions

public class UIQuestions
extends org.exoplatform.webui.core.UIContainer


Nested Class Summary
static class UIQuestions.AddCategoryActionListener
           
static class UIQuestions.AddNewQuestionActionListener
           
static class UIQuestions.ChangeLanguageActionListener
           
static class UIQuestions.ChangeStatusAnswerActionListener
           
static class UIQuestions.CloseQuestionActionListener
           
static class UIQuestions.CommentQuestionActionListener
           
static class UIQuestions.CommentToAnswerActionListener
           
static class UIQuestions.DeleteAnswerActionListener
           
static class UIQuestions.DeleteCategoryActionListener
           
static class UIQuestions.DeleteCommentActionListener
           
static class UIQuestions.DeleteQuestionActionListener
           
static class UIQuestions.DiscussForumActionListener
           
static class UIQuestions.DownloadAttachActionListener
           
static class UIQuestions.EditAnswerActionListener
           
static class UIQuestions.EditCategoryActionListener
           
static class UIQuestions.EditQuestionActionListener
           
static class UIQuestions.ExportActionListener
           
static class UIQuestions.ImportActionListener
           
static class UIQuestions.MoveQuestionActionListener
           
static class UIQuestions.OpenQuestionActionListener
           
static class UIQuestions.PrintAllQuestionActionListener
           
static class UIQuestions.QuestionManagamentActionListener
           
static class UIQuestions.ResponseQuestionActionListener
           
static class UIQuestions.SendQuestionActionListener
           
static class UIQuestions.SettingActionListener
           
static class UIQuestions.SortAnswerActionListener
           
static class UIQuestions.UnVoteQuestionActionListener
           
static class UIQuestions.ViewQuestionActionListener
           
static class UIQuestions.ViewUserProfileActionListener
           
static class UIQuestions.VoteAnswerActionListener
           
static class UIQuestions.VoteQuestionActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
protected static String ANSWER_ITER
           
 String backPath_
           
 String categoryId_
           
protected static String COMMENT_ITER
           
protected  String discussId
           
 org.exoplatform.faq.service.FAQSetting faqSetting_
           
 boolean isChangeLanguage
           
 Boolean isSortAnswerUp
           
 String language_
           
 List<String> listLanguage
           
static String OBJECT_BACK
           
static String OBJECT_ITERATOR
           
static String OBJECT_LANGUAGE
           
static String OBJECT_RELATION
           
 UIAnswersPageIterator pageIterator
           
 org.exoplatform.faq.service.JCRPageList pageList
           
 long pageSelect
           
protected static String SEARCH_INPUT
           
 boolean viewAuthorInfor
           
 String viewingQuestionId_
           
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIQuestions()
           
 
Method Summary
protected  String calculateTimeMessageOfLastActivity(long time)
           
protected  boolean canVote(org.exoplatform.faq.service.Question question)
           
 boolean checkQuestionToView(org.exoplatform.faq.service.Question question, org.exoplatform.webui.application.WebuiRequestContext context)
           
protected  String convertSize(long size)
           
protected  String[] getActionCategoryWithUser()
           
protected  String[] getActionQuestion()
           
protected  String[] getActionTollbar()
           
protected  String getAvatarUrl(String userId)
           
protected  String getBackPath()
           
protected  boolean getCanEditQuestion()
           
 String getCategoryId()
           
protected  String getCSSByFileType(String fileName, String fileType)
           
 org.exoplatform.faq.service.FAQService getFAQService()
           
 org.exoplatform.faq.service.FAQSetting getFAQSetting()
           
protected  String getIconActionQuestion(String action)
           
 String getImageUrl(String imagePath)
           
 String getLanguage()
           
protected  org.exoplatform.faq.service.Question[] getListQuestion()
           
protected  String[] getMenuCateManager()
           
protected  org.exoplatform.faq.service.Answer[] getPageListAnswer(String questionId)
           
protected  org.exoplatform.faq.service.Comment[] getPageListComment(String questionId)
           
 String getPortalName()
           
protected  String getQuestionContent()
           
protected  org.exoplatform.faq.service.Question getQuestionDetail()
           
protected  Map<String,String> getQuestionLanguages()
           
protected  Map<String,String> getQuestionRelation(List<String> questionIdLst)
           
protected  String getQuestionView()
           
 String getRSSLink()
           
 String getVoteScore(org.exoplatform.faq.service.Question question)
           
protected  boolean isAddQuestion()
           
protected  boolean isDiscussForum()
           
protected  boolean isNotInSpace()
           
 boolean isViewRootCate()
           
 void processResponseQuestionAction(org.exoplatform.webui.application.WebuiRequestContext context, String questionId)
          this function is pick up from ResponseQuestionActionListener for reuse in ViewQuestionActionListener
 String render(Object obj)
           
 void setCategoryId(String categoryId)
           
 void setDefaultLanguage()
           
 void setFAQService(org.exoplatform.faq.service.FAQService service)
           
 void setFAQSetting(org.exoplatform.faq.service.FAQSetting setting)
           
protected  void setIsModerators()
           
 void setLanguage(String language)
           
 void setLanguageView(String language)
           
 void setListObject()
           
 void setViewRootCate()
           
 void showMessageDeletedQuestion(org.exoplatform.webui.application.WebuiRequestContext context)
           
 void updateCurrentLanguage()
           
 void updateCurrentQuestionList()
           
 void updateLanguageMap()
           
 void updateQuestionLanguageByLanguage(String questionPath, String language)
           
 void viewQuestion(org.exoplatform.faq.service.Question question)
           
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, processRender, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEARCH_INPUT

protected static String SEARCH_INPUT

COMMENT_ITER

protected static String COMMENT_ITER

ANSWER_ITER

protected static String ANSWER_ITER

OBJECT_ITERATOR

public static final String OBJECT_ITERATOR
See Also:
Constant Field Values

OBJECT_BACK

public static final String OBJECT_BACK
See Also:
Constant Field Values

OBJECT_LANGUAGE

public static final String OBJECT_LANGUAGE
See Also:
Constant Field Values

OBJECT_RELATION

public static final String OBJECT_RELATION
See Also:
Constant Field Values

faqSetting_

public org.exoplatform.faq.service.FAQSetting faqSetting_

pageList

public org.exoplatform.faq.service.JCRPageList pageList

isSortAnswerUp

public Boolean isSortAnswerUp

categoryId_

public String categoryId_

viewingQuestionId_

public String viewingQuestionId_

isChangeLanguage

public boolean isChangeLanguage

listLanguage

public List<String> listLanguage

backPath_

public String backPath_

language_

public String language_

discussId

protected String discussId

viewAuthorInfor

public boolean viewAuthorInfor

pageIterator

public UIAnswersPageIterator pageIterator

pageSelect

public long pageSelect
Constructor Detail

UIQuestions

public UIQuestions()
            throws Exception
Throws:
Exception
Method Detail

isNotInSpace

protected boolean isNotInSpace()

isViewRootCate

public boolean isViewRootCate()

setViewRootCate

public void setViewRootCate()

isAddQuestion

protected boolean isAddQuestion()

getCSSByFileType

protected String getCSSByFileType(String fileName,
                                  String fileType)

getRSSLink

public String getRSSLink()

getPortalName

public String getPortalName()

getImageUrl

public String getImageUrl(String imagePath)
                   throws Exception
Throws:
Exception

isDiscussForum

protected boolean isDiscussForum()
                          throws Exception
Throws:
Exception

setListObject

public void setListObject()

getPageListAnswer

protected org.exoplatform.faq.service.Answer[] getPageListAnswer(String questionId)
                                                          throws Exception
Throws:
Exception

getPageListComment

protected org.exoplatform.faq.service.Comment[] getPageListComment(String questionId)
                                                            throws Exception
Throws:
Exception

getActionTollbar

protected String[] getActionTollbar()

getMenuCateManager

protected String[] getMenuCateManager()

getFAQSetting

public org.exoplatform.faq.service.FAQSetting getFAQSetting()

getActionCategoryWithUser

protected String[] getActionCategoryWithUser()

getActionQuestion

protected String[] getActionQuestion()

getIconActionQuestion

protected String getIconActionQuestion(String action)

updateCurrentQuestionList

public void updateCurrentQuestionList()
                               throws Exception
Throws:
Exception

setFAQSetting

public void setFAQSetting(org.exoplatform.faq.service.FAQSetting setting)

setFAQService

public void setFAQService(org.exoplatform.faq.service.FAQService service)

setLanguageView

public void setLanguageView(String language)

getQuestionContent

protected String getQuestionContent()

getQuestionDetail

protected org.exoplatform.faq.service.Question getQuestionDetail()

setIsModerators

protected void setIsModerators()
                        throws Exception
Throws:
Exception

getVoteScore

public String getVoteScore(org.exoplatform.faq.service.Question question)

canVote

protected boolean canVote(org.exoplatform.faq.service.Question question)

setDefaultLanguage

public void setDefaultLanguage()

convertSize

protected String convertSize(long size)

getListQuestion

protected org.exoplatform.faq.service.Question[] getListQuestion()

getCanEditQuestion

protected boolean getCanEditQuestion()

getQuestionView

protected String getQuestionView()

getQuestionLanguages

protected Map<String,String> getQuestionLanguages()

getAvatarUrl

protected String getAvatarUrl(String userId)
                       throws Exception
Throws:
Exception

getCategoryId

public String getCategoryId()

setCategoryId

public void setCategoryId(String categoryId)

viewQuestion

public void viewQuestion(org.exoplatform.faq.service.Question question)
                  throws Exception
Throws:
Exception

updateCurrentLanguage

public void updateCurrentLanguage()

updateQuestionLanguageByLanguage

public void updateQuestionLanguageByLanguage(String questionPath,
                                             String language)
                                      throws Exception
Throws:
Exception

updateLanguageMap

public void updateLanguageMap()
                       throws Exception
Throws:
Exception

getQuestionRelation

protected Map<String,String> getQuestionRelation(List<String> questionIdLst)

getBackPath

protected String getBackPath()

render

public String render(Object obj)
              throws RenderingException
Throws:
RenderingException

calculateTimeMessageOfLastActivity

protected String calculateTimeMessageOfLastActivity(long time)

checkQuestionToView

public boolean checkQuestionToView(org.exoplatform.faq.service.Question question,
                                   org.exoplatform.webui.application.WebuiRequestContext context)
                            throws Exception
Throws:
Exception

setLanguage

public void setLanguage(String language)

getFAQService

public org.exoplatform.faq.service.FAQService getFAQService()

getLanguage

public String getLanguage()

processResponseQuestionAction

public void processResponseQuestionAction(org.exoplatform.webui.application.WebuiRequestContext context,
                                          String questionId)
                                   throws Exception
this function is pick up from ResponseQuestionActionListener for reuse in ViewQuestionActionListener

Parameters:
event -
questionId -
Throws:
Exception

showMessageDeletedQuestion

public void showMessageDeletedQuestion(org.exoplatform.webui.application.WebuiRequestContext context)
                                throws Exception
Throws:
Exception


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.