001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.documentlibrary.service;
022:
023: /**
024: * <a href="DLFileEntryLocalService.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This interface defines the service. The default implementation is
033: * <code>com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl</code>.
034: * Modify methods in that class and rerun ServiceBuilder to populate this class
035: * and all other generated classes.
036: * </p>
037: *
038: * <p>
039: * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceFactory
045: * @see com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil
046: *
047: */
048: public interface DLFileEntryLocalService {
049: public com.liferay.portlet.documentlibrary.model.DLFileEntry addDLFileEntry(
050: com.liferay.portlet.documentlibrary.model.DLFileEntry model)
051: throws com.liferay.portal.SystemException;
052:
053: public java.util.List dynamicQuery(
054: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
055: throws com.liferay.portal.SystemException;
056:
057: public java.util.List dynamicQuery(
058: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
059: int begin, int end)
060: throws com.liferay.portal.SystemException;
061:
062: public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
063: com.liferay.portlet.documentlibrary.model.DLFileEntry model)
064: throws com.liferay.portal.SystemException;
065:
066: public com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence getDLFileEntryPersistence();
067:
068: public void setDLFileEntryPersistence(
069: com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence dlFileEntryPersistence);
070:
071: public com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder getDLFileEntryFinder();
072:
073: public void setDLFileEntryFinder(
074: com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder dlFileEntryFinder);
075:
076: public com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder getDLFileEntryAndShortcutFinder();
077:
078: public void setDLFileEntryAndShortcutFinder(
079: com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder dlFileEntryAndShortcutFinder);
080:
081: public com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence getDLFileRankPersistence();
082:
083: public void setDLFileRankPersistence(
084: com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence dlFileRankPersistence);
085:
086: public com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder getDLFileRankFinder();
087:
088: public void setDLFileRankFinder(
089: com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder dlFileRankFinder);
090:
091: public com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence getDLFileShortcutPersistence();
092:
093: public void setDLFileShortcutPersistence(
094: com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence dlFileShortcutPersistence);
095:
096: public com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder getDLFileShortcutFinder();
097:
098: public void setDLFileShortcutFinder(
099: com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder dlFileShortcutFinder);
100:
101: public com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence getDLFileVersionPersistence();
102:
103: public void setDLFileVersionPersistence(
104: com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence dlFileVersionPersistence);
105:
106: public com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence getDLFolderPersistence();
107:
108: public void setDLFolderPersistence(
109: com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence dlFolderPersistence);
110:
111: public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
112:
113: public void setResourcePersistence(
114: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
115:
116: public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
117:
118: public void setResourceFinder(
119: com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
120:
121: public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
122:
123: public void setUserPersistence(
124: com.liferay.portal.service.persistence.UserPersistence userPersistence);
125:
126: public com.liferay.portal.service.persistence.UserFinder getUserFinder();
127:
128: public void setUserFinder(
129: com.liferay.portal.service.persistence.UserFinder userFinder);
130:
131: public com.liferay.portal.service.persistence.WebDAVPropsPersistence getWebDAVPropsPersistence();
132:
133: public void setWebDAVPropsPersistence(
134: com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence);
135:
136: public com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence();
137:
138: public void setMBMessagePersistence(
139: com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence);
140:
141: public com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder();
142:
143: public void setMBMessageFinder(
144: com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder);
145:
146: public com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence getRatingsStatsPersistence();
147:
148: public void setRatingsStatsPersistence(
149: com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence ratingsStatsPersistence);
150:
151: public com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence();
152:
153: public void setTagsAssetPersistence(
154: com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence);
155:
156: public com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder();
157:
158: public void setTagsAssetFinder(
159: com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder);
160:
161: public void afterPropertiesSet();
162:
163: public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
164: long userId, long folderId, java.lang.String name,
165: java.lang.String title, java.lang.String description,
166: java.lang.String[] tagsEntries,
167: java.lang.String extraSettings, java.io.File file,
168: boolean addCommunityPermissions, boolean addGuestPermissions)
169: throws com.liferay.portal.SystemException,
170: com.liferay.portal.PortalException;
171:
172: public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
173: long userId, long folderId, java.lang.String name,
174: java.lang.String title, java.lang.String description,
175: java.lang.String[] tagsEntries,
176: java.lang.String extraSettings, byte[] byteArray,
177: boolean addCommunityPermissions, boolean addGuestPermissions)
178: throws com.liferay.portal.SystemException,
179: com.liferay.portal.PortalException;
180:
181: public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
182: java.lang.String uuid, long userId, long folderId,
183: java.lang.String name, java.lang.String title,
184: java.lang.String description,
185: java.lang.String[] tagsEntries,
186: java.lang.String extraSettings, byte[] byteArray,
187: boolean addCommunityPermissions, boolean addGuestPermissions)
188: throws com.liferay.portal.SystemException,
189: com.liferay.portal.PortalException;
190:
191: public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
192: long userId, long folderId, java.lang.String name,
193: java.lang.String title, java.lang.String description,
194: java.lang.String[] tagsEntries,
195: java.lang.String extraSettings, java.io.File file,
196: java.lang.String[] communityPermissions,
197: java.lang.String[] guestPermissions)
198: throws com.liferay.portal.SystemException,
199: com.liferay.portal.PortalException;
200:
201: public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
202: long userId, long folderId, java.lang.String name,
203: java.lang.String title, java.lang.String description,
204: java.lang.String[] tagsEntries,
205: java.lang.String extraSettings, byte[] byteArray,
206: java.lang.String[] communityPermissions,
207: java.lang.String[] guestPermissions)
208: throws com.liferay.portal.SystemException,
209: com.liferay.portal.PortalException;
210:
211: public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
212: long userId, long folderId, java.lang.String name,
213: java.lang.String title, java.lang.String description,
214: java.lang.String[] tagsEntries,
215: java.lang.String extraSettings, java.io.File file,
216: java.lang.Boolean addCommunityPermissions,
217: java.lang.Boolean addGuestPermissions,
218: java.lang.String[] communityPermissions,
219: java.lang.String[] guestPermissions)
220: throws com.liferay.portal.SystemException,
221: com.liferay.portal.PortalException;
222:
223: public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
224: java.lang.String uuid, long userId, long folderId,
225: java.lang.String name, java.lang.String title,
226: java.lang.String description,
227: java.lang.String[] tagsEntries,
228: java.lang.String extraSettings, byte[] byteArray,
229: java.lang.Boolean addCommunityPermissions,
230: java.lang.Boolean addGuestPermissions,
231: java.lang.String[] communityPermissions,
232: java.lang.String[] guestPermissions)
233: throws com.liferay.portal.SystemException,
234: com.liferay.portal.PortalException;
235:
236: public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
237: java.lang.String uuid, long userId, long folderId,
238: java.lang.String name, java.lang.String title,
239: java.lang.String description,
240: java.lang.String[] tagsEntries,
241: java.lang.String extraSettings, java.io.InputStream is,
242: long size, java.lang.Boolean addCommunityPermissions,
243: java.lang.Boolean addGuestPermissions,
244: java.lang.String[] communityPermissions,
245: java.lang.String[] guestPermissions)
246: throws com.liferay.portal.SystemException,
247: com.liferay.portal.PortalException;
248:
249: public void addFileEntryResources(long folderId,
250: java.lang.String name, boolean addCommunityPermissions,
251: boolean addGuestPermissions)
252: throws com.liferay.portal.SystemException,
253: com.liferay.portal.PortalException;
254:
255: public void addFileEntryResources(
256: com.liferay.portlet.documentlibrary.model.DLFolder folder,
257: com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
258: boolean addCommunityPermissions, boolean addGuestPermissions)
259: throws com.liferay.portal.SystemException,
260: com.liferay.portal.PortalException;
261:
262: public void addFileEntryResources(long folderId,
263: java.lang.String name,
264: java.lang.String[] communityPermissions,
265: java.lang.String[] guestPermissions)
266: throws com.liferay.portal.SystemException,
267: com.liferay.portal.PortalException;
268:
269: public void addFileEntryResources(
270: com.liferay.portlet.documentlibrary.model.DLFolder folder,
271: com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
272: java.lang.String[] communityPermissions,
273: java.lang.String[] guestPermissions)
274: throws com.liferay.portal.SystemException,
275: com.liferay.portal.PortalException;
276:
277: public com.liferay.portlet.documentlibrary.model.DLFileEntry addOrOverwriteFileEntry(
278: long userId, long folderId, java.lang.String name,
279: java.lang.String sourceName, java.lang.String title,
280: java.lang.String description,
281: java.lang.String[] tagsEntries,
282: java.lang.String extraSettings, java.io.File file,
283: boolean addCommunityPermissions, boolean addGuestPermissions)
284: throws com.liferay.portal.SystemException,
285: com.liferay.portal.PortalException;
286:
287: public void deleteFileEntries(long folderId)
288: throws com.liferay.portal.SystemException,
289: com.liferay.portal.PortalException;
290:
291: public void deleteFileEntry(long folderId, java.lang.String name)
292: throws com.liferay.portal.SystemException,
293: com.liferay.portal.PortalException;
294:
295: public void deleteFileEntry(long folderId, java.lang.String name,
296: double version) throws com.liferay.portal.SystemException,
297: com.liferay.portal.PortalException;
298:
299: public void deleteFileEntry(
300: com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
301: throws com.liferay.portal.SystemException,
302: com.liferay.portal.PortalException;
303:
304: public java.util.List getCompanyFileEntries(long companyId,
305: int begin, int end)
306: throws com.liferay.portal.SystemException;
307:
308: public java.util.List getCompanyFileEntries(long companyId,
309: int begin, int end,
310: com.liferay.portal.kernel.util.OrderByComparator obc)
311: throws com.liferay.portal.SystemException;
312:
313: public int getCompanyFileEntriesCount(long companyId)
314: throws com.liferay.portal.SystemException;
315:
316: public java.io.InputStream getFileAsStream(long companyId,
317: long userId, long folderId, java.lang.String name)
318: throws com.liferay.portal.SystemException,
319: com.liferay.portal.PortalException;
320:
321: public java.io.InputStream getFileAsStream(long companyId,
322: long userId, long folderId, java.lang.String name,
323: double version) throws com.liferay.portal.SystemException,
324: com.liferay.portal.PortalException;
325:
326: public java.util.List getFileEntries(long folderId)
327: throws com.liferay.portal.SystemException;
328:
329: public java.util.List getFileEntries(long folderId, int begin,
330: int end) throws com.liferay.portal.SystemException;
331:
332: public java.util.List getFileEntries(long folderId, int begin,
333: int end,
334: com.liferay.portal.kernel.util.OrderByComparator obc)
335: throws com.liferay.portal.SystemException;
336:
337: public java.util.List getFileEntriesAndShortcuts(long folderId,
338: int begin, int end)
339: throws com.liferay.portal.SystemException;
340:
341: public java.util.List getFileEntriesAndShortcuts(
342: java.util.List folderIds, int begin, int end)
343: throws com.liferay.portal.SystemException;
344:
345: public int getFileEntriesAndShortcutsCount(long folderId)
346: throws com.liferay.portal.SystemException;
347:
348: public int getFileEntriesAndShortcutsCount(java.util.List folderIds)
349: throws com.liferay.portal.SystemException;
350:
351: public int getFileEntriesCount(long folderId)
352: throws com.liferay.portal.SystemException;
353:
354: public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
355: long fileEntryId)
356: throws com.liferay.portal.SystemException,
357: com.liferay.portal.PortalException;
358:
359: public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
360: long folderId, java.lang.String name)
361: throws com.liferay.portal.SystemException,
362: com.liferay.portal.PortalException;
363:
364: public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
365: java.lang.String uuid, long groupId)
366: throws com.liferay.portal.SystemException,
367: com.liferay.portal.PortalException;
368:
369: public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
370: long folderId, java.lang.String titleWithExtension)
371: throws com.liferay.portal.SystemException,
372: com.liferay.portal.PortalException;
373:
374: public int getFoldersFileEntriesCount(java.util.List folderIds)
375: throws com.liferay.portal.SystemException;
376:
377: public java.util.List getGroupFileEntries(long groupId, int begin,
378: int end) throws com.liferay.portal.SystemException;
379:
380: public java.util.List getGroupFileEntries(long groupId, int begin,
381: int end,
382: com.liferay.portal.kernel.util.OrderByComparator obc)
383: throws com.liferay.portal.SystemException;
384:
385: public java.util.List getGroupFileEntries(long groupId,
386: long userId, int begin, int end)
387: throws com.liferay.portal.SystemException;
388:
389: public java.util.List getGroupFileEntries(long groupId,
390: long userId, int begin, int end,
391: com.liferay.portal.kernel.util.OrderByComparator obc)
392: throws com.liferay.portal.SystemException;
393:
394: public int getGroupFileEntriesCount(long groupId)
395: throws com.liferay.portal.SystemException;
396:
397: public int getGroupFileEntriesCount(long groupId, long userId)
398: throws com.liferay.portal.SystemException;
399:
400: public java.util.List getNoAssetFileEntries()
401: throws com.liferay.portal.SystemException;
402:
403: public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
404: long userId, long folderId, long newFolderId,
405: java.lang.String name, java.lang.String sourceFileName,
406: java.lang.String title, java.lang.String description,
407: java.lang.String[] tagsEntries,
408: java.lang.String extraSettings, java.io.File file)
409: throws com.liferay.portal.SystemException,
410: com.liferay.portal.PortalException;
411:
412: public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
413: long userId, long folderId, long newFolderId,
414: java.lang.String name, java.lang.String sourceFileName,
415: java.lang.String title, java.lang.String description,
416: java.lang.String[] tagsEntries,
417: java.lang.String extraSettings, byte[] byteArray)
418: throws com.liferay.portal.SystemException,
419: com.liferay.portal.PortalException;
420:
421: public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
422: long userId, long folderId, long newFolderId,
423: java.lang.String name, java.lang.String sourceFileName,
424: java.lang.String title, java.lang.String description,
425: java.lang.String[] tagsEntries,
426: java.lang.String extraSettings, java.io.InputStream is,
427: long size) throws com.liferay.portal.SystemException,
428: com.liferay.portal.PortalException;
429:
430: public void updateTagsAsset(
431: long userId,
432: com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
433: java.lang.String[] tagsEntries)
434: throws com.liferay.portal.SystemException,
435: com.liferay.portal.PortalException;
436: }
|