1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.documentlibrary.util;
16  
17  import com.liferay.portal.kernel.search.Document;
18  import com.liferay.portal.kernel.search.SearchException;
19  
20  import java.util.Date;
21  
22  /**
23   * <a href="DLIndexer.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   */
27  public interface DLIndexer {
28  
29      public void addFile(
30              long companyId, String portletId, long groupId, long repositoryId,
31              String fileName)
32          throws SearchException;
33  
34      public void addFile(
35              long companyId, String portletId, long groupId, long repositoryId,
36              String fileName, String properties, Date modifiedDate,
37              String[] tagsEntries)
38          throws SearchException;
39  
40      public void deleteFile(
41              long companyId, String portletId, long repositoryId,
42              String fileName)
43          throws SearchException;
44  
45      public Document getFileDocument(
46              long companyId, String portletId, long groupId, long repositoryId,
47              String fileName)
48          throws SearchException;
49  
50      public Document getFileDocument(
51              long companyId, String portletId, long groupId, long repositoryId,
52              String fileName, String properties, Date modifiedDate,
53              String[] tagsEntries)
54          throws SearchException;
55  
56      public String getFileUID(
57          String portletId, long repositoryId, String fileName);
58  
59      public void updateFile(
60              long companyId, String portletId, long groupId, long repositoryId,
61              String fileName, String properties, Date modifiedDate,
62              String[] tagsEntries)
63          throws SearchException;
64  
65  }