com.liferay.portlet.imagegallery.util
Class IGIndexer

java.lang.Object
  extended by com.liferay.portal.search.BaseIndexer
      extended by com.liferay.portlet.imagegallery.util.IGIndexer
All Implemented Interfaces:
com.liferay.portal.kernel.search.Indexer

public class IGIndexer
extends com.liferay.portal.search.BaseIndexer

View Source

Author:
Brian Wing Shun Chan, Bruno Farache, Raymond Augé

Field Summary
static java.lang.String[] CLASS_NAMES
           
static java.lang.String PORTLET_ID
           
 
Fields inherited from interface com.liferay.portal.kernel.search.Indexer
DEFAULT_INTERVAL
 
Constructor Summary
IGIndexer()
           
 
Method Summary
protected  void checkSearchFolderId(long folderId, com.liferay.portal.kernel.search.SearchContext searchContext)
           
protected  void doDelete(java.lang.Object obj)
           
protected  com.liferay.portal.kernel.search.Document doGetDocument(java.lang.Object obj)
           
protected  void doReindex(java.lang.Object obj)
           
protected  void doReindex(java.lang.String[] ids)
           
protected  void doReindex(java.lang.String className, long classPK)
           
 java.lang.String[] getClassNames()
           
protected  java.lang.String getPortletId(com.liferay.portal.kernel.search.SearchContext searchContext)
           
 com.liferay.portal.kernel.search.Summary getSummary(com.liferay.portal.kernel.search.Document document, java.lang.String snippet, javax.portlet.PortletURL portletURL)
           
protected  void reindexFolders(long companyId)
           
protected  void reindexFolders(long companyId, int folderStart, int folderEnd)
           
protected  void reindexImages(long groupId, long folderId, int entryStart, int entryEnd)
           
protected  void reindexRoot(long companyId)
           
protected  void reindexRoot(long companyId, int groupStart, int groupEnd)
           
 
Methods inherited from class com.liferay.portal.search.BaseIndexer
addSearchCategoryIds, addSearchFolderIds, addSearchGroupId, addSearchKeywords, addSearchNodeIds, addSearchOwnerUserId, checkSearchCategoryId, checkSearchNodeId, createFullQuery, delete, getClassName, getDocument, getParentGroupId, postProcessContextQuery, postProcessFullQuery, postProcessSearchQuery, reindex, reindex, reindex, search
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAMES

public static final java.lang.String[] CLASS_NAMES

PORTLET_ID

public static final java.lang.String PORTLET_ID
See Also:
Constant Field Values
Constructor Detail

IGIndexer

public IGIndexer()
Method Detail

getClassNames

public java.lang.String[] getClassNames()

getSummary

public com.liferay.portal.kernel.search.Summary getSummary(com.liferay.portal.kernel.search.Document document,
                                                           java.lang.String snippet,
                                                           javax.portlet.PortletURL portletURL)

checkSearchFolderId

protected void checkSearchFolderId(long folderId,
                                   com.liferay.portal.kernel.search.SearchContext searchContext)
                            throws java.lang.Exception
Overrides:
checkSearchFolderId in class com.liferay.portal.search.BaseIndexer
Throws:
java.lang.Exception

doDelete

protected void doDelete(java.lang.Object obj)
                 throws java.lang.Exception
Specified by:
doDelete in class com.liferay.portal.search.BaseIndexer
Throws:
java.lang.Exception

doGetDocument

protected com.liferay.portal.kernel.search.Document doGetDocument(java.lang.Object obj)
                                                           throws java.lang.Exception
Specified by:
doGetDocument in class com.liferay.portal.search.BaseIndexer
Throws:
java.lang.Exception

doReindex

protected void doReindex(java.lang.Object obj)
                  throws java.lang.Exception
Specified by:
doReindex in class com.liferay.portal.search.BaseIndexer
Throws:
java.lang.Exception

doReindex

protected void doReindex(java.lang.String className,
                         long classPK)
                  throws java.lang.Exception
Specified by:
doReindex in class com.liferay.portal.search.BaseIndexer
Throws:
java.lang.Exception

doReindex

protected void doReindex(java.lang.String[] ids)
                  throws java.lang.Exception
Specified by:
doReindex in class com.liferay.portal.search.BaseIndexer
Throws:
java.lang.Exception

getPortletId

protected java.lang.String getPortletId(com.liferay.portal.kernel.search.SearchContext searchContext)
Specified by:
getPortletId in class com.liferay.portal.search.BaseIndexer

reindexFolders

protected void reindexFolders(long companyId)
                       throws java.lang.Exception
Throws:
java.lang.Exception

reindexFolders

protected void reindexFolders(long companyId,
                              int folderStart,
                              int folderEnd)
                       throws java.lang.Exception
Throws:
java.lang.Exception

reindexImages

protected void reindexImages(long groupId,
                             long folderId,
                             int entryStart,
                             int entryEnd)
                      throws java.lang.Exception
Throws:
java.lang.Exception

reindexRoot

protected void reindexRoot(long companyId)
                    throws java.lang.Exception
Throws:
java.lang.Exception

reindexRoot

protected void reindexRoot(long companyId,
                           int groupStart,
                           int groupEnd)
                    throws java.lang.Exception
Throws:
java.lang.Exception