1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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 userId,
31              long repositoryId, String fileName)
32          throws SearchException;
33  
34      public void addFile(
35              long companyId, String portletId, long groupId, long userId,
36              long repositoryId, String fileName, long fileEntryId,
37              String properties, Date modifiedDate, String[] tagsCategories,
38              String[] tagsEntries)
39          throws SearchException;
40  
41      /**
42       * @deprecated
43       */
44      public void addFile(
45              long companyId, String portletId, long groupId, long repositoryId,
46              String fileName)
47          throws SearchException;
48  
49      /**
50       * @deprecated
51       */
52      public void addFile(
53              long companyId, String portletId, long groupId, long repositoryId,
54              String fileName, long fileEntryId, String properties,
55              Date modifiedDate, String[] tagsCategories, String[] tagsEntries)
56          throws SearchException;
57  
58      public void deleteFile(
59              long companyId, String portletId, long repositoryId,
60              String fileName)
61          throws SearchException;
62  
63      public Document getFileDocument(
64              long companyId, String portletId, long groupId, long userId,
65              long repositoryId, String fileName)
66          throws SearchException;
67  
68      public Document getFileDocument(
69              long companyId, String portletId, long groupId, long userId,
70              long repositoryId, String fileName, long fileEntryId,
71              String properties, Date modifiedDate, String[] tagsCategories,
72              String[] tagsEntries)
73          throws SearchException;
74  
75      /**
76       * @deprecated
77       */
78      public Document getFileDocument(
79              long companyId, String portletId, long groupId, long repositoryId,
80              String fileName)
81          throws SearchException;
82  
83      /**
84       * @deprecated
85       */
86      public Document getFileDocument(
87              long companyId, String portletId, long groupId, long repositoryId,
88              String fileName, long fileEntryId, String properties,
89              Date modifiedDate, String[] tagsCategories, String[] tagsEntries)
90          throws SearchException;
91  
92      public String getFileUID(
93          String portletId, long repositoryId, String fileName);
94  
95      public void updateFile(
96              long companyId, String portletId, long groupId, long userId,
97              long repositoryId, String fileName, long fileEntryId,
98              String properties, Date modifiedDate, String[] tagsCategories,
99              String[] tagsEntries)
100         throws SearchException;
101 
102     /**
103      * @deprecated
104      */
105     public void updateFile(
106             long companyId, String portletId, long groupId, long repositoryId,
107             String fileName, long fileEntryId, String properties,
108             Date modifiedDate, String[] tagsCategories, String[] tagsEntries)
109         throws SearchException;
110 
111 }