1
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
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 }