1
22
23 package com.liferay.portlet.documentlibrary.service;
24
25
51 public class DLFileEntryServiceUtil {
52 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
53 long folderId, java.lang.String name, java.lang.String title,
54 java.lang.String description, java.lang.String[] tagsEntries,
55 java.lang.String extraSettings, byte[] byteArray,
56 boolean addCommunityPermissions, boolean addGuestPermissions)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException, java.rmi.RemoteException {
59 DLFileEntryService dlFileEntryService = DLFileEntryServiceFactory.getService();
60
61 return dlFileEntryService.addFileEntry(folderId, name, title,
62 description, tagsEntries, extraSettings, byteArray,
63 addCommunityPermissions, addGuestPermissions);
64 }
65
66 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
67 long folderId, java.lang.String name, java.lang.String title,
68 java.lang.String description, java.lang.String[] tagsEntries,
69 java.lang.String extraSettings, byte[] byteArray,
70 java.lang.String[] communityPermissions,
71 java.lang.String[] guestPermissions)
72 throws com.liferay.portal.PortalException,
73 com.liferay.portal.SystemException, java.rmi.RemoteException {
74 DLFileEntryService dlFileEntryService = DLFileEntryServiceFactory.getService();
75
76 return dlFileEntryService.addFileEntry(folderId, name, title,
77 description, tagsEntries, extraSettings, byteArray,
78 communityPermissions, guestPermissions);
79 }
80
81 public static void deleteFileEntry(long folderId, java.lang.String name)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException, java.rmi.RemoteException {
84 DLFileEntryService dlFileEntryService = DLFileEntryServiceFactory.getService();
85 dlFileEntryService.deleteFileEntry(folderId, name);
86 }
87
88 public static void deleteFileEntry(long folderId, java.lang.String name,
89 double version)
90 throws com.liferay.portal.PortalException,
91 com.liferay.portal.SystemException, java.rmi.RemoteException {
92 DLFileEntryService dlFileEntryService = DLFileEntryServiceFactory.getService();
93 dlFileEntryService.deleteFileEntry(folderId, name, version);
94 }
95
96 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
97 long folderId, java.lang.String name)
98 throws com.liferay.portal.PortalException,
99 com.liferay.portal.SystemException, java.rmi.RemoteException {
100 DLFileEntryService dlFileEntryService = DLFileEntryServiceFactory.getService();
101
102 return dlFileEntryService.getFileEntry(folderId, name);
103 }
104
105 public static void lockFileEntry(long folderId, java.lang.String name)
106 throws com.liferay.portal.PortalException,
107 com.liferay.portal.SystemException, java.rmi.RemoteException {
108 DLFileEntryService dlFileEntryService = DLFileEntryServiceFactory.getService();
109 dlFileEntryService.lockFileEntry(folderId, name);
110 }
111
112 public static void unlockFileEntry(long folderId, java.lang.String name)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException, java.rmi.RemoteException {
115 DLFileEntryService dlFileEntryService = DLFileEntryServiceFactory.getService();
116 dlFileEntryService.unlockFileEntry(folderId, name);
117 }
118
119 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
120 long folderId, long newFolderId, java.lang.String name,
121 java.lang.String sourceFileName, java.lang.String title,
122 java.lang.String description, java.lang.String[] tagsEntries,
123 java.lang.String extraSettings, byte[] byteArray)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException, java.rmi.RemoteException {
126 DLFileEntryService dlFileEntryService = DLFileEntryServiceFactory.getService();
127
128 return dlFileEntryService.updateFileEntry(folderId, newFolderId, name,
129 sourceFileName, title, description, tagsEntries, extraSettings,
130 byteArray);
131 }
132 }