001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class DLFileEntryMetadataLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata addDLFileEntryMetadata(
048 com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addDLFileEntryMetadata(dlFileEntryMetadata);
051 }
052
053
059 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata createDLFileEntryMetadata(
060 long fileEntryMetadataId) {
061 return getService().createDLFileEntryMetadata(fileEntryMetadataId);
062 }
063
064
072 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata deleteDLFileEntryMetadata(
073 long fileEntryMetadataId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteDLFileEntryMetadata(fileEntryMetadataId);
077 }
078
079
086 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata deleteDLFileEntryMetadata(
087 com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteDLFileEntryMetadata(dlFileEntryMetadata);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchDLFileEntryMetadata(
168 long fileEntryMetadataId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchDLFileEntryMetadata(fileEntryMetadataId);
171 }
172
173
181 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata getDLFileEntryMetadata(
182 long fileEntryMetadataId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getDLFileEntryMetadata(fileEntryMetadataId);
186 }
187
188 public static com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getPersistedModel(primaryKeyObj);
193 }
194
195
207 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> getDLFileEntryMetadatas(
208 int start, int end)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getService().getDLFileEntryMetadatas(start, end);
211 }
212
213
219 public static int getDLFileEntryMetadatasCount()
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getService().getDLFileEntryMetadatasCount();
222 }
223
224
231 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata updateDLFileEntryMetadata(
232 com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 return getService().updateDLFileEntryMetadata(dlFileEntryMetadata);
235 }
236
237
245 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata updateDLFileEntryMetadata(
246 com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata,
247 boolean merge)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getService().updateDLFileEntryMetadata(dlFileEntryMetadata, merge);
250 }
251
252
257 public static java.lang.String getBeanIdentifier() {
258 return getService().getBeanIdentifier();
259 }
260
261
266 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
267 getService().setBeanIdentifier(beanIdentifier);
268 }
269
270 public static void deleteFileEntryMetadata(long fileEntryId)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException {
273 getService().deleteFileEntryMetadata(fileEntryId);
274 }
275
276 public static void deleteFileVersionFileEntryMetadata(long fileVersionId)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException {
279 getService().deleteFileVersionFileEntryMetadata(fileVersionId);
280 }
281
282 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata getFileEntryMetadata(
283 long fileEntryMetadataId)
284 throws com.liferay.portal.kernel.exception.PortalException,
285 com.liferay.portal.kernel.exception.SystemException {
286 return getService().getFileEntryMetadata(fileEntryMetadataId);
287 }
288
289 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata getFileEntryMetadata(
290 long ddmStructureId, long fileVersionId)
291 throws com.liferay.portal.kernel.exception.PortalException,
292 com.liferay.portal.kernel.exception.SystemException {
293 return getService().getFileEntryMetadata(ddmStructureId, fileVersionId);
294 }
295
296
299 public static long getFileEntryMetadataCount(long fileEntryId,
300 long fileVersionId)
301 throws com.liferay.portal.kernel.exception.SystemException {
302 return getService().getFileEntryMetadataCount(fileEntryId, fileVersionId);
303 }
304
305 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> getFileVersionFileEntryMetadatas(
306 long fileVersionId)
307 throws com.liferay.portal.kernel.exception.SystemException {
308 return getService().getFileVersionFileEntryMetadatas(fileVersionId);
309 }
310
311 public static long getFileVersionFileEntryMetadatasCount(long fileVersionId)
312 throws com.liferay.portal.kernel.exception.SystemException {
313 return getService().getFileVersionFileEntryMetadatasCount(fileVersionId);
314 }
315
316 public static void updateFileEntryMetadata(long companyId,
317 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures,
318 long fileEntryTypeId, long fileEntryId, long fileVersionId,
319 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
320 com.liferay.portal.service.ServiceContext serviceContext)
321 throws com.liferay.portal.kernel.exception.PortalException,
322 com.liferay.portal.kernel.exception.SystemException {
323 getService()
324 .updateFileEntryMetadata(companyId, ddmStructures, fileEntryTypeId,
325 fileEntryId, fileVersionId, fieldsMap, serviceContext);
326 }
327
328 public static void updateFileEntryMetadata(long fileEntryTypeId,
329 long fileEntryId, long fileVersionId,
330 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
331 com.liferay.portal.service.ServiceContext serviceContext)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException {
334 getService()
335 .updateFileEntryMetadata(fileEntryTypeId, fileEntryId,
336 fileVersionId, fieldsMap, serviceContext);
337 }
338
339 public static DLFileEntryMetadataLocalService getService() {
340 if (_service == null) {
341 _service = (DLFileEntryMetadataLocalService)PortalBeanLocatorUtil.locate(DLFileEntryMetadataLocalService.class.getName());
342
343 ReferenceRegistry.registerReference(DLFileEntryMetadataLocalServiceUtil.class,
344 "_service");
345 }
346
347 return _service;
348 }
349
350
353 public void setService(DLFileEntryMetadataLocalService service) {
354 }
355
356 private static DLFileEntryMetadataLocalService _service;
357 }