org.exoplatform.answer.webui
Class UIQuestions
java.lang.Object
org.exoplatform.webui.core.UIComponent
org.exoplatform.webui.core.UIContainer
org.exoplatform.answer.webui.UIQuestions
public class UIQuestions
- extends org.exoplatform.webui.core.UIContainer
| Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer |
org.exoplatform.webui.core.UIContainer.SelectTabActionListener |
| Fields inherited from class org.exoplatform.webui.core.UIComponent |
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent |
| 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 |
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
UIQuestions
public UIQuestions()
throws Exception
- Throws:
Exception
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.