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 DLContentLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.documentlibrary.model.DLContent addDLContent(
048 com.liferay.portlet.documentlibrary.model.DLContent dlContent)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addDLContent(dlContent);
051 }
052
053
059 public static com.liferay.portlet.documentlibrary.model.DLContent createDLContent(
060 long contentId) {
061 return getService().createDLContent(contentId);
062 }
063
064
072 public static com.liferay.portlet.documentlibrary.model.DLContent deleteDLContent(
073 long contentId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteDLContent(contentId);
077 }
078
079
086 public static com.liferay.portlet.documentlibrary.model.DLContent deleteDLContent(
087 com.liferay.portlet.documentlibrary.model.DLContent dlContent)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteDLContent(dlContent);
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.DLContent fetchDLContent(
168 long contentId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchDLContent(contentId);
171 }
172
173
181 public static com.liferay.portlet.documentlibrary.model.DLContent getDLContent(
182 long contentId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getDLContent(contentId);
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.DLContent> getDLContents(
208 int start, int end)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getService().getDLContents(start, end);
211 }
212
213
219 public static int getDLContentsCount()
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getService().getDLContentsCount();
222 }
223
224
231 public static com.liferay.portlet.documentlibrary.model.DLContent updateDLContent(
232 com.liferay.portlet.documentlibrary.model.DLContent dlContent)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 return getService().updateDLContent(dlContent);
235 }
236
237
245 public static com.liferay.portlet.documentlibrary.model.DLContent updateDLContent(
246 com.liferay.portlet.documentlibrary.model.DLContent dlContent,
247 boolean merge)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getService().updateDLContent(dlContent, merge);
250 }
251
252 public static com.liferay.portlet.documentlibrary.model.DLContentDataBlobModel getDataBlobModel(
253 java.io.Serializable primaryKey)
254 throws com.liferay.portal.kernel.exception.SystemException {
255 return getService().getDataBlobModel(primaryKey);
256 }
257
258
263 public static java.lang.String getBeanIdentifier() {
264 return getService().getBeanIdentifier();
265 }
266
267
272 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
273 getService().setBeanIdentifier(beanIdentifier);
274 }
275
276 public static com.liferay.portlet.documentlibrary.model.DLContent addContent(
277 long companyId, long repositoryId, java.lang.String path,
278 java.lang.String version, byte[] bytes)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 return getService()
281 .addContent(companyId, repositoryId, path, version, bytes);
282 }
283
284 public static com.liferay.portlet.documentlibrary.model.DLContent addContent(
285 long companyId, long repositoryId, java.lang.String path,
286 java.lang.String version, java.io.InputStream inputStream, long size)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 return getService()
289 .addContent(companyId, repositoryId, path, version,
290 inputStream, size);
291 }
292
293 public static void deleteContent(long companyId, long repositoryId,
294 java.lang.String path, java.lang.String version)
295 throws com.liferay.portal.kernel.exception.PortalException,
296 com.liferay.portal.kernel.exception.SystemException {
297 getService().deleteContent(companyId, repositoryId, path, version);
298 }
299
300 public static void deleteContents(long companyId, long repositoryId,
301 java.lang.String path)
302 throws com.liferay.portal.kernel.exception.SystemException {
303 getService().deleteContents(companyId, repositoryId, path);
304 }
305
306 public static void deleteContentsByDirectory(long companyId,
307 long repositoryId, java.lang.String dirName)
308 throws com.liferay.portal.kernel.exception.SystemException {
309 getService().deleteContentsByDirectory(companyId, repositoryId, dirName);
310 }
311
312 public static com.liferay.portlet.documentlibrary.model.DLContent getContent(
313 long companyId, long repositoryId, java.lang.String path)
314 throws com.liferay.portal.kernel.exception.SystemException,
315 com.liferay.portlet.documentlibrary.NoSuchContentException {
316 return getService().getContent(companyId, repositoryId, path);
317 }
318
319 public static com.liferay.portlet.documentlibrary.model.DLContent getContent(
320 long companyId, long repositoryId, java.lang.String path,
321 java.lang.String version)
322 throws com.liferay.portal.kernel.exception.SystemException,
323 com.liferay.portlet.documentlibrary.NoSuchContentException {
324 return getService().getContent(companyId, repositoryId, path, version);
325 }
326
327 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> getContents(
328 long companyId, long repositoryId)
329 throws com.liferay.portal.kernel.exception.SystemException {
330 return getService().getContents(companyId, repositoryId);
331 }
332
333 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> getContents(
334 long companyId, long repositoryId, java.lang.String path)
335 throws com.liferay.portal.kernel.exception.SystemException {
336 return getService().getContents(companyId, repositoryId, path);
337 }
338
339 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> getContentsByDirectory(
340 long companyId, long repositoryId, java.lang.String dirName)
341 throws com.liferay.portal.kernel.exception.SystemException {
342 return getService()
343 .getContentsByDirectory(companyId, repositoryId, dirName);
344 }
345
346 public static boolean hasContent(long companyId, long repositoryId,
347 java.lang.String path, java.lang.String version)
348 throws com.liferay.portal.kernel.exception.SystemException {
349 return getService().hasContent(companyId, repositoryId, path, version);
350 }
351
352 public static void updateDLContent(long companyId, long oldRepositoryId,
353 long newRepositoryId, java.lang.String oldPath, java.lang.String newPath)
354 throws com.liferay.portal.kernel.exception.SystemException {
355 getService()
356 .updateDLContent(companyId, oldRepositoryId, newRepositoryId,
357 oldPath, newPath);
358 }
359
360 public static DLContentLocalService getService() {
361 if (_service == null) {
362 _service = (DLContentLocalService)PortalBeanLocatorUtil.locate(DLContentLocalService.class.getName());
363
364 ReferenceRegistry.registerReference(DLContentLocalServiceUtil.class,
365 "_service");
366 }
367
368 return _service;
369 }
370
371
374 public void setService(DLContentLocalService service) {
375 }
376
377 private static DLContentLocalService _service;
378 }