public class UIQuestions
extends org.exoplatform.webui.core.UIContainer
| Modifier and Type | Field and Description |
|---|---|
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_ |
| Constructor and Description |
|---|
UIQuestions() |
| Modifier and Type | Method and Description |
|---|---|
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) |
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypesbroadcast, buildModelObject, 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, urlprotected static String SEARCH_INPUT
protected static String COMMENT_ITER
protected static String ANSWER_ITER
public static final String OBJECT_ITERATOR
public static final String OBJECT_BACK
public static final String OBJECT_LANGUAGE
public static final String OBJECT_RELATION
public org.exoplatform.faq.service.FAQSetting faqSetting_
public org.exoplatform.faq.service.JCRPageList pageList
public Boolean isSortAnswerUp
public String categoryId_
public String viewingQuestionId_
public boolean isChangeLanguage
public String backPath_
public String language_
protected String discussId
public boolean viewAuthorInfor
public UIAnswersPageIterator pageIterator
public long pageSelect
protected boolean isNotInSpace()
public boolean isViewRootCate()
public void setViewRootCate()
protected boolean isAddQuestion()
public String getRSSLink()
public String getPortalName()
public void setListObject()
protected org.exoplatform.faq.service.Answer[] getPageListAnswer(String questionId) throws Exception
Exceptionprotected org.exoplatform.faq.service.Comment[] getPageListComment(String questionId) throws Exception
Exceptionprotected String[] getActionTollbar()
protected String[] getMenuCateManager()
public org.exoplatform.faq.service.FAQSetting getFAQSetting()
protected String[] getActionCategoryWithUser()
protected String[] getActionQuestion()
public void updateCurrentQuestionList()
throws Exception
Exceptionpublic void setFAQSetting(org.exoplatform.faq.service.FAQSetting setting)
public void setFAQService(org.exoplatform.faq.service.FAQService service)
public void setLanguageView(String language)
protected String getQuestionContent()
protected org.exoplatform.faq.service.Question getQuestionDetail()
public String getVoteScore(org.exoplatform.faq.service.Question question)
protected boolean canVote(org.exoplatform.faq.service.Question question)
public void setDefaultLanguage()
protected String convertSize(long size)
protected org.exoplatform.faq.service.Question[] getListQuestion()
protected boolean getCanEditQuestion()
protected String getQuestionView()
public String getCategoryId()
public void setCategoryId(String categoryId)
public void viewQuestion(org.exoplatform.faq.service.Question question)
throws Exception
Exceptionpublic void updateCurrentLanguage()
public void updateQuestionLanguageByLanguage(String questionPath, String language) throws Exception
Exceptionprotected String getBackPath()
public String render(Object obj) throws RenderingException
RenderingExceptionprotected String calculateTimeMessageOfLastActivity(long time)
public boolean checkQuestionToView(org.exoplatform.faq.service.Question question,
org.exoplatform.webui.application.WebuiRequestContext context)
throws Exception
Exceptionpublic void setLanguage(String language)
public org.exoplatform.faq.service.FAQService getFAQService()
public String getLanguage()
public void processResponseQuestionAction(org.exoplatform.webui.application.WebuiRequestContext context,
String questionId)
throws Exception
ResponseQuestionActionListener for reuse in ViewQuestionActionListenercontext - questionId - ExceptionCopyright © 2003–2018 eXo Platform SAS. All rights reserved.