1
14
15 package com.liferay.portlet.documentlibrary.service;
16
17
18
34 public class DLFileEntryServiceWrapper implements DLFileEntryService {
35 public DLFileEntryServiceWrapper(DLFileEntryService dlFileEntryService) {
36 _dlFileEntryService = dlFileEntryService;
37 }
38
39 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
40 long folderId, java.lang.String name, java.lang.String title,
41 java.lang.String description, java.lang.String[] tagsEntries,
42 java.lang.String extraSettings, byte[] bytes,
43 boolean addCommunityPermissions, boolean addGuestPermissions)
44 throws com.liferay.portal.PortalException,
45 com.liferay.portal.SystemException, java.rmi.RemoteException {
46 return _dlFileEntryService.addFileEntry(folderId, name, title,
47 description, tagsEntries, extraSettings, bytes,
48 addCommunityPermissions, addGuestPermissions);
49 }
50
51 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
52 long folderId, java.lang.String name, java.lang.String title,
53 java.lang.String description, java.lang.String[] tagsEntries,
54 java.lang.String extraSettings, byte[] bytes,
55 java.lang.String[] communityPermissions,
56 java.lang.String[] guestPermissions)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException, java.rmi.RemoteException {
59 return _dlFileEntryService.addFileEntry(folderId, name, title,
60 description, tagsEntries, extraSettings, bytes,
61 communityPermissions, guestPermissions);
62 }
63
64 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
65 long folderId, java.lang.String name, java.lang.String title,
66 java.lang.String description, java.lang.String[] tagsEntries,
67 java.lang.String extraSettings, java.io.File file,
68 boolean addCommunityPermissions, boolean addGuestPermissions)
69 throws com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException, java.rmi.RemoteException {
71 return _dlFileEntryService.addFileEntry(folderId, name, title,
72 description, tagsEntries, extraSettings, file,
73 addCommunityPermissions, addGuestPermissions);
74 }
75
76 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
77 long folderId, java.lang.String name, java.lang.String title,
78 java.lang.String description, java.lang.String[] tagsEntries,
79 java.lang.String extraSettings, java.io.File file,
80 java.lang.String[] communityPermissions,
81 java.lang.String[] guestPermissions)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException, java.rmi.RemoteException {
84 return _dlFileEntryService.addFileEntry(folderId, name, title,
85 description, tagsEntries, extraSettings, file,
86 communityPermissions, guestPermissions);
87 }
88
89 public void deleteFileEntry(long folderId, java.lang.String name)
90 throws com.liferay.portal.PortalException,
91 com.liferay.portal.SystemException, java.rmi.RemoteException {
92 _dlFileEntryService.deleteFileEntry(folderId, name);
93 }
94
95 public void deleteFileEntry(long folderId, java.lang.String name,
96 double version)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException, java.rmi.RemoteException {
99 _dlFileEntryService.deleteFileEntry(folderId, name, version);
100 }
101
102 public void deleteFileEntryByTitle(long folderId,
103 java.lang.String titleWithExtension)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException, java.rmi.RemoteException {
106 _dlFileEntryService.deleteFileEntryByTitle(folderId, titleWithExtension);
107 }
108
109 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
110 long folderId)
111 throws com.liferay.portal.PortalException,
112 com.liferay.portal.SystemException, java.rmi.RemoteException {
113 return _dlFileEntryService.getFileEntries(folderId);
114 }
115
116 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
117 long folderId, java.lang.String name)
118 throws com.liferay.portal.PortalException,
119 com.liferay.portal.SystemException, java.rmi.RemoteException {
120 return _dlFileEntryService.getFileEntry(folderId, name);
121 }
122
123 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
124 long folderId, java.lang.String titleWithExtension)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException, java.rmi.RemoteException {
127 return _dlFileEntryService.getFileEntryByTitle(folderId,
128 titleWithExtension);
129 }
130
131 public com.liferay.portal.model.Lock getFileEntryLock(long folderId,
132 java.lang.String name)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException, java.rmi.RemoteException {
135 return _dlFileEntryService.getFileEntryLock(folderId, name);
136 }
137
138 public com.liferay.portal.model.Lock lockFileEntry(long folderId,
139 java.lang.String name)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException, java.rmi.RemoteException {
142 return _dlFileEntryService.lockFileEntry(folderId, name);
143 }
144
145 public com.liferay.portal.model.Lock lockFileEntry(long folderId,
146 java.lang.String name, java.lang.String owner, long expirationTime)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException, java.rmi.RemoteException {
149 return _dlFileEntryService.lockFileEntry(folderId, name, owner,
150 expirationTime);
151 }
152
153 public com.liferay.portal.model.Lock refreshFileEntryLock(
154 java.lang.String lockUuid, long expirationTime)
155 throws com.liferay.portal.PortalException,
156 com.liferay.portal.SystemException, java.rmi.RemoteException {
157 return _dlFileEntryService.refreshFileEntryLock(lockUuid, expirationTime);
158 }
159
160 public void unlockFileEntry(long folderId, java.lang.String name)
161 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
162 _dlFileEntryService.unlockFileEntry(folderId, name);
163 }
164
165 public void unlockFileEntry(long folderId, java.lang.String name,
166 java.lang.String lockUuid)
167 throws com.liferay.portal.PortalException,
168 com.liferay.portal.SystemException, java.rmi.RemoteException {
169 _dlFileEntryService.unlockFileEntry(folderId, name, lockUuid);
170 }
171
172 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
173 long folderId, long newFolderId, java.lang.String name,
174 java.lang.String sourceFileName, java.lang.String title,
175 java.lang.String description, java.lang.String[] tagsEntries,
176 java.lang.String extraSettings, byte[] bytes)
177 throws com.liferay.portal.PortalException,
178 com.liferay.portal.SystemException, java.rmi.RemoteException {
179 return _dlFileEntryService.updateFileEntry(folderId, newFolderId, name,
180 sourceFileName, title, description, tagsEntries, extraSettings,
181 bytes);
182 }
183
184 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
185 long folderId, long newFolderId, java.lang.String name,
186 java.lang.String sourceFileName, java.lang.String title,
187 java.lang.String description, java.lang.String[] tagsEntries,
188 java.lang.String extraSettings, java.io.File file)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException, java.rmi.RemoteException {
191 return _dlFileEntryService.updateFileEntry(folderId, newFolderId, name,
192 sourceFileName, title, description, tagsEntries, extraSettings, file);
193 }
194
195 public DLFileEntryService getWrappedDLFileEntryService() {
196 return _dlFileEntryService;
197 }
198
199 private DLFileEntryService _dlFileEntryService;
200 }