Class UISearchResult

java.lang.Object
org.exoplatform.webui.core.UIComponent
org.exoplatform.webui.core.UIContainer
org.exoplatform.portal.webui.portal.UIPortalComponent
org.exoplatform.portal.webui.container.UIContainer
org.exoplatform.wcm.webui.search.UISearchResult

public class UISearchResult extends org.exoplatform.portal.webui.container.UIContainer
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer

    org.exoplatform.webui.core.UIContainer.SelectTabActionListener
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The Constant PARAMETER_REGX.
    static final String
    The Constant RESULT_NOT_FOUND.

    Fields inherited from class org.exoplatform.portal.webui.container.UIContainer

    cssClass, description, icon, moveAppsPermissions, moveContainersPermissions, profiles, TABLE_COLUMN_CONTAINER

    Fields inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent

    COMPONENT_EDIT_MODE, COMPONENT_VIEW_MODE, factoryId, height_, mode_, name_, template_, width_

    Fields inherited from class org.exoplatform.webui.core.UIComponent

    AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clears the displayed result list
    getCreatedDate(javax.jcr.Node node)
    Gets the created date.
    int
    Gets the current page.
    Gets the current page data.
    int
    Gets the items per page.
    Gets the keyword.
    int
    Gets the number of page.
    Gets the page mode
    Gets the published node uri.
    List<org.exoplatform.services.wcm.search.ResultNode>
    Gets the real node list to display
    Gets the result type.
    float
    Gets the search time.
    Gets the suggestion.
    Gets the suggestion URL.
     
    org.exoplatform.resolver.ResourceResolver
    getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context, String template)
     
    getTitle(javax.jcr.Node node)
    Gets the title.
    int
    Gets the total item.
    getURL(javax.jcr.Node node)
    Gets the uRL.
    getURLs(javax.jcr.Node node)
    Gets the uRL.
    void
    init(String templatePath, org.exoplatform.resolver.ResourceResolver resourceResolver)
    Inits the.
    boolean
    Checks if is show paginator.
    void
    processRender(org.exoplatform.webui.application.WebuiRequestContext context)
     
    void
    setKeyword(String keyword)
    Sets the keyword.
    void
    setPageList(org.exoplatform.commons.utils.PageList dataPageList)
    Sets the page list.
    void
    setResultType(String resultType)
    Sets the result type.
    void
    setSearchTime(float searchTime)
    Sets the search time.
    void
    setSuggestion(String suggestion)
    Sets the suggestion.
    void
    setSuggestionURL(String suggestionURL)
    Sets the suggestion URL.

    Methods inherited from class org.exoplatform.portal.webui.container.UIContainer

    getCssClass, getDescription, getIcon, getMoveAppsPermissions, getMoveContainersPermissions, getPermissionClasses, getProfiles, getStorageId, hasMoveAppsPermission, hasMoveContainersPermission, setCssClass, setDescription, setIcon, setMoveAppsPermissions, setMoveContainersPermissions, setProfiles, setStorageId

    Methods inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent

    getAccessPermissions, getFactoryId, getHeight, getName, getTitle, getWidth, hasAccessPermission, hasPermission, isModifiable, setAccessPermissions, setFactoryId, setHeight, setModifiable, setName, setTemplate, setTitle, setWidth

    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, buildModelObject, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getParent, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, 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 Details

  • Constructor Details

    • UISearchResult

      public UISearchResult()
  • Method Details

    • init

      public void init(String templatePath, org.exoplatform.resolver.ResourceResolver resourceResolver) throws Exception
      Inits the.
      Parameters:
      templatePath - the template path
      resourceResolver - the resource resolver
      Throws:
      Exception - the exception
    • processRender

      public void processRender(org.exoplatform.webui.application.WebuiRequestContext context) throws Exception
      Overrides:
      processRender in class org.exoplatform.webui.core.UIComponent
      Throws:
      Exception
    • setPageList

      public void setPageList(org.exoplatform.commons.utils.PageList dataPageList)
      Sets the page list.
      Parameters:
      dataPageList - the new page list
    • getTotalItem

      public int getTotalItem()
      Gets the total item.
      Returns:
      the total item
    • getItemsPerPage

      public int getItemsPerPage()
      Gets the items per page.
      Returns:
      the items per page
    • getCurrentPage

      public int getCurrentPage()
      Gets the current page.
      Returns:
      the current page
    • getPageMode

      public String getPageMode()
      Gets the page mode
      Returns:
      the page mode
    • getTemplate

      public String getTemplate()
      Overrides:
      getTemplate in class org.exoplatform.portal.webui.portal.UIPortalComponent
    • getTemplateResourceResolver

      public org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context, String template)
      Overrides:
      getTemplateResourceResolver in class org.exoplatform.webui.core.UIComponent
    • getCurrentPageData

      public List getCurrentPageData() throws Exception
      Gets the current page data.
      Returns:
      the current page data
      Throws:
      Exception - the exception
    • getTitle

      public String getTitle(javax.jcr.Node node) throws Exception
      Gets the title.
      Parameters:
      node - the node
      Returns:
      the title
      Throws:
      Exception - the exception
    • getURLs

      public List<String> getURLs(javax.jcr.Node node) throws Exception
      Gets the uRL.
      Parameters:
      node - the node
      Returns:
      the uRL
      Throws:
      Exception - the exception
    • getPublishedNodeURI

      public String getPublishedNodeURI(String navNodeURI)
      Gets the published node uri.
      Parameters:
      navNodeURI - the nav node uri
      Returns:
      the published node uri
    • getURL

      public String getURL(javax.jcr.Node node) throws Exception
      Gets the uRL.
      Parameters:
      node - the node
      Returns:
      the uRL
      Throws:
      Exception - the exception
    • getCreatedDate

      public String getCreatedDate(javax.jcr.Node node) throws Exception
      Gets the created date.
      Parameters:
      node - the node
      Returns:
      the created date
      Throws:
      Exception - the exception
    • isShowPaginator

      public boolean isShowPaginator() throws Exception
      Checks if is show paginator.
      Returns:
      true, if is show paginator
      Throws:
      Exception - the exception
    • getSearchTime

      public float getSearchTime()
      Gets the search time.
      Returns:
      the search time
    • setSearchTime

      public void setSearchTime(float searchTime)
      Sets the search time.
      Parameters:
      searchTime - the new search time
    • getSuggestion

      public String getSuggestion()
      Gets the suggestion.
      Returns:
      the suggestion
    • setSuggestion

      public void setSuggestion(String suggestion)
      Sets the suggestion.
      Parameters:
      suggestion - the suggestion
    • getSuggestionURL

      public String getSuggestionURL()
      Gets the suggestion URL.
      Returns:
      the suggestion URL
    • setSuggestionURL

      public void setSuggestionURL(String suggestionURL)
      Sets the suggestion URL.
      Parameters:
      suggestionURL - the suggestion url
    • getKeyword

      public String getKeyword()
      Gets the keyword.
      Returns:
      the keyword
    • setKeyword

      public void setKeyword(String keyword)
      Sets the keyword.
      Parameters:
      keyword - the new keyword
    • getResultType

      public String getResultType()
      Gets the result type.
      Returns:
      the result type
    • setResultType

      public void setResultType(String resultType)
      Sets the result type.
      Parameters:
      resultType - the new result type
    • getNumberOfPage

      public int getNumberOfPage()
      Gets the number of page.
      Returns:
      the number of page
    • clearResult

      public void clearResult()
      Clears the displayed result list
    • getRealCurrentPageData

      public List<org.exoplatform.services.wcm.search.ResultNode> getRealCurrentPageData() throws Exception
      Gets the real node list to display
      Returns:
      the real node list
      Throws:
      Exception