org.exoplatform.wiki.service.search
Class WikiSearchData

java.lang.Object
  extended by org.exoplatform.wiki.service.search.SearchData
      extended by org.exoplatform.wiki.service.search.WikiSearchData

public class WikiSearchData
extends SearchData


Field Summary
static String ALL_PAGESPATH
           
static String GROUP_PAGESPATH
           
static String PORTAL_PAGESPATH
           
static String WIKIHOME_PATH
           
 
Fields inherited from class org.exoplatform.wiki.service.search.SearchData
ALL_PATH, content, GROUP_PATH, jcrQueryPath, limit, pageId, PORTAL_PATH, text, title, USER_PATH, wikiOwner, wikiType
 
Constructor Summary
WikiSearchData(String wikiType, String wikiOwner, String pageId)
           
WikiSearchData(String text, String title, String content, String wikiType, String wikiOwner)
           
WikiSearchData(String text, String title, String content, String wikiType, String wikiOwner, String pageId)
           
 
Method Summary
 void createJcrQueryPath()
           
 String getPageConstraint()
          get SQL constraint for searching available page (be a child of WikiHome page and not removed).
 String getStatement()
           
 String getStatementForRenamedPage()
           
 String getStatementForTitle(boolean onlyHomePages)
           
 void setNodeType(String nodeType)
           
 
Methods inherited from class org.exoplatform.wiki.service.search.SearchData
getContent, getJcrQueryPath, getLimit, getOffset, getPageId, getText, getTitle, getWikiOwner, getWikiType, setContent, setJcrQueryPath, setLimit, setOffset, setPageId, setText, setTitle, setWikiOwner, setWikiType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIKIHOME_PATH

public static String WIKIHOME_PATH

ALL_PAGESPATH

public static String ALL_PAGESPATH

PORTAL_PAGESPATH

public static String PORTAL_PAGESPATH

GROUP_PAGESPATH

public static String GROUP_PAGESPATH
Constructor Detail

WikiSearchData

public WikiSearchData(String text,
                      String title,
                      String content,
                      String wikiType,
                      String wikiOwner,
                      String pageId)

WikiSearchData

public WikiSearchData(String wikiType,
                      String wikiOwner,
                      String pageId)

WikiSearchData

public WikiSearchData(String text,
                      String title,
                      String content,
                      String wikiType,
                      String wikiOwner)
Method Detail

setNodeType

public void setNodeType(String nodeType)

createJcrQueryPath

public void createJcrQueryPath()

getStatementForTitle

public String getStatementForTitle(boolean onlyHomePages)

getStatement

public String getStatement()
Overrides:
getStatement in class SearchData

getStatementForRenamedPage

public String getStatementForRenamedPage()

getPageConstraint

public String getPageConstraint()
get SQL constraint for searching available page (be a child of WikiHome page and not removed).

Returns:
  • returned string is in format: ((jcr:path like [path to page node likely] or jcr:path = [path to page node]) AND (jcr:mixinTypes IS NULL OR NOT (jcr:mixinTypes = 'wiki:removed'))
  • if wikiType or wikiOwner is null, paths of the constraint are /%/pageId and /pageId. It means that pages of which id is pageId are searched from root.


  • Copyright © 2013 eXo Platform SAS. All Rights Reserved.