com.liferay.documentlibrary.util
Class Indexer

java.lang.Object
  extended by com.liferay.documentlibrary.util.Indexer
All Implemented Interfaces:
com.liferay.portal.kernel.search.Indexer

public class Indexer
extends java.lang.Object
implements com.liferay.portal.kernel.search.Indexer

View Source

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

Field Summary
 
Fields inherited from interface com.liferay.portal.kernel.search.Indexer
DEFAULT_INTERVAL
 
Constructor Summary
Indexer()
           
 
Method Summary
static void addFile(long companyId, java.lang.String portletId, long groupId, long repositoryId, java.lang.String fileName)
          Deprecated. Use DLIndexerUtil.
static void addFile(long companyId, java.lang.String portletId, long groupId, long repositoryId, java.lang.String fileName, long fileEntryId, java.lang.String properties, java.util.Date modifiedDate, java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
          Deprecated. Use DLIndexerUtil.
static void deleteFile(long companyId, java.lang.String portletId, long repositoryId, java.lang.String fileName)
          Deprecated. Use DLIndexerUtil.
 java.lang.String[] getClassNames()
           
 com.liferay.portal.kernel.search.DocumentSummary getDocumentSummary(com.liferay.portal.kernel.search.Document doc, java.lang.String snippet, javax.portlet.PortletURL portletURL)
           
static com.liferay.portal.kernel.search.Document getFileDocument(long companyId, java.lang.String portletId, long groupId, long repositoryId, java.lang.String fileName)
          Deprecated. Use DLIndexerUtil.
static com.liferay.portal.kernel.search.Document getFileDocument(long companyId, java.lang.String portletId, long groupId, long repositoryId, java.lang.String fileName, long fileEntryId, java.lang.String properties, java.util.Date modifiedDate, java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
          Deprecated. Use DLIndexerUtil.
static java.lang.String getFileUID(java.lang.String portletId, long repositoryId, java.lang.String fileName)
          Deprecated. Use DLIndexerUtil.
 void reIndex(java.lang.String[] ids)
           
 void reIndex(java.lang.String className, long classPK)
           
static void updateFile(long companyId, java.lang.String portletId, long groupId, long repositoryId, java.lang.String fileName, long fileEntryId, java.lang.String properties, java.util.Date modifiedDate, java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
          Deprecated. Use DLIndexerUtil.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Indexer

public Indexer()
Method Detail

addFile

public static void addFile(long companyId,
                           java.lang.String portletId,
                           long groupId,
                           long repositoryId,
                           java.lang.String fileName)
                    throws com.liferay.portal.kernel.search.SearchException
Deprecated. Use DLIndexerUtil.

Throws:
com.liferay.portal.kernel.search.SearchException

addFile

public static void addFile(long companyId,
                           java.lang.String portletId,
                           long groupId,
                           long repositoryId,
                           java.lang.String fileName,
                           long fileEntryId,
                           java.lang.String properties,
                           java.util.Date modifiedDate,
                           java.lang.String[] tagsCategories,
                           java.lang.String[] tagsEntries)
                    throws com.liferay.portal.kernel.search.SearchException
Deprecated. Use DLIndexerUtil.

Throws:
com.liferay.portal.kernel.search.SearchException

deleteFile

public static void deleteFile(long companyId,
                              java.lang.String portletId,
                              long repositoryId,
                              java.lang.String fileName)
                       throws com.liferay.portal.kernel.search.SearchException
Deprecated. Use DLIndexerUtil.

Throws:
com.liferay.portal.kernel.search.SearchException

getFileDocument

public static com.liferay.portal.kernel.search.Document getFileDocument(long companyId,
                                                                        java.lang.String portletId,
                                                                        long groupId,
                                                                        long repositoryId,
                                                                        java.lang.String fileName)
                                                                 throws com.liferay.portal.kernel.search.SearchException
Deprecated. Use DLIndexerUtil.

Throws:
com.liferay.portal.kernel.search.SearchException

getFileDocument

public static com.liferay.portal.kernel.search.Document getFileDocument(long companyId,
                                                                        java.lang.String portletId,
                                                                        long groupId,
                                                                        long repositoryId,
                                                                        java.lang.String fileName,
                                                                        long fileEntryId,
                                                                        java.lang.String properties,
                                                                        java.util.Date modifiedDate,
                                                                        java.lang.String[] tagsCategories,
                                                                        java.lang.String[] tagsEntries)
                                                                 throws com.liferay.portal.kernel.search.SearchException
Deprecated. Use DLIndexerUtil.

Throws:
com.liferay.portal.kernel.search.SearchException

getFileUID

public static java.lang.String getFileUID(java.lang.String portletId,
                                          long repositoryId,
                                          java.lang.String fileName)
Deprecated. Use DLIndexerUtil.


updateFile

public static void updateFile(long companyId,
                              java.lang.String portletId,
                              long groupId,
                              long repositoryId,
                              java.lang.String fileName,
                              long fileEntryId,
                              java.lang.String properties,
                              java.util.Date modifiedDate,
                              java.lang.String[] tagsCategories,
                              java.lang.String[] tagsEntries)
                       throws com.liferay.portal.kernel.search.SearchException
Deprecated. Use DLIndexerUtil.

Throws:
com.liferay.portal.kernel.search.SearchException

getClassNames

public java.lang.String[] getClassNames()
Specified by:
getClassNames in interface com.liferay.portal.kernel.search.Indexer

getDocumentSummary

public com.liferay.portal.kernel.search.DocumentSummary getDocumentSummary(com.liferay.portal.kernel.search.Document doc,
                                                                           java.lang.String snippet,
                                                                           javax.portlet.PortletURL portletURL)
Specified by:
getDocumentSummary in interface com.liferay.portal.kernel.search.Indexer

reIndex

public void reIndex(java.lang.String className,
                    long classPK)
Specified by:
reIndex in interface com.liferay.portal.kernel.search.Indexer

reIndex

public void reIndex(java.lang.String[] ids)
             throws com.liferay.portal.kernel.search.SearchException
Specified by:
reIndex in interface com.liferay.portal.kernel.search.Indexer
Throws:
com.liferay.portal.kernel.search.SearchException