001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class DLContentLocalServiceUtil {
038
043
044
051 public static com.liferay.portlet.documentlibrary.model.DLContent addDLContent(
052 com.liferay.portlet.documentlibrary.model.DLContent dlContent)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addDLContent(dlContent);
055 }
056
057
063 public static com.liferay.portlet.documentlibrary.model.DLContent createDLContent(
064 long contentId) {
065 return getService().createDLContent(contentId);
066 }
067
068
076 public static com.liferay.portlet.documentlibrary.model.DLContent deleteDLContent(
077 long contentId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().deleteDLContent(contentId);
081 }
082
083
090 public static com.liferay.portlet.documentlibrary.model.DLContent deleteDLContent(
091 com.liferay.portlet.documentlibrary.model.DLContent dlContent)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().deleteDLContent(dlContent);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171
179 public static long dynamicQueryCount(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181 com.liferay.portal.kernel.dao.orm.Projection projection)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().dynamicQueryCount(dynamicQuery, projection);
184 }
185
186 public static com.liferay.portlet.documentlibrary.model.DLContent fetchDLContent(
187 long contentId)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getService().fetchDLContent(contentId);
190 }
191
192
200 public static com.liferay.portlet.documentlibrary.model.DLContent getDLContent(
201 long contentId)
202 throws com.liferay.portal.kernel.exception.PortalException,
203 com.liferay.portal.kernel.exception.SystemException {
204 return getService().getDLContent(contentId);
205 }
206
207 public static com.liferay.portal.model.PersistedModel getPersistedModel(
208 java.io.Serializable primaryKeyObj)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException {
211 return getService().getPersistedModel(primaryKeyObj);
212 }
213
214
226 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> getDLContents(
227 int start, int end)
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return getService().getDLContents(start, end);
230 }
231
232
238 public static int getDLContentsCount()
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getService().getDLContentsCount();
241 }
242
243
250 public static com.liferay.portlet.documentlibrary.model.DLContent updateDLContent(
251 com.liferay.portlet.documentlibrary.model.DLContent dlContent)
252 throws com.liferay.portal.kernel.exception.SystemException {
253 return getService().updateDLContent(dlContent);
254 }
255
256 public static com.liferay.portlet.documentlibrary.model.DLContentDataBlobModel getDataBlobModel(
257 java.io.Serializable primaryKey)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 return getService().getDataBlobModel(primaryKey);
260 }
261
262
267 public static java.lang.String getBeanIdentifier() {
268 return getService().getBeanIdentifier();
269 }
270
271
276 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
277 getService().setBeanIdentifier(beanIdentifier);
278 }
279
280 public static com.liferay.portlet.documentlibrary.model.DLContent addContent(
281 long companyId, long repositoryId, java.lang.String path,
282 java.lang.String version, byte[] bytes)
283 throws com.liferay.portal.kernel.exception.SystemException {
284 return getService()
285 .addContent(companyId, repositoryId, path, version, bytes);
286 }
287
288 public static com.liferay.portlet.documentlibrary.model.DLContent addContent(
289 long companyId, long repositoryId, java.lang.String path,
290 java.lang.String version, java.io.InputStream inputStream, long size)
291 throws com.liferay.portal.kernel.exception.SystemException {
292 return getService()
293 .addContent(companyId, repositoryId, path, version,
294 inputStream, size);
295 }
296
297 public static void deleteContent(long companyId, long repositoryId,
298 java.lang.String path, java.lang.String version)
299 throws com.liferay.portal.kernel.exception.PortalException,
300 com.liferay.portal.kernel.exception.SystemException {
301 getService().deleteContent(companyId, repositoryId, path, version);
302 }
303
304 public static void deleteContents(long companyId, long repositoryId,
305 java.lang.String path)
306 throws com.liferay.portal.kernel.exception.SystemException {
307 getService().deleteContents(companyId, repositoryId, path);
308 }
309
310 public static void deleteContentsByDirectory(long companyId,
311 long repositoryId, java.lang.String dirName)
312 throws com.liferay.portal.kernel.exception.SystemException {
313 getService().deleteContentsByDirectory(companyId, repositoryId, dirName);
314 }
315
316 public static com.liferay.portlet.documentlibrary.model.DLContent getContent(
317 long companyId, long repositoryId, java.lang.String path)
318 throws com.liferay.portal.kernel.exception.SystemException,
319 com.liferay.portlet.documentlibrary.NoSuchContentException {
320 return getService().getContent(companyId, repositoryId, path);
321 }
322
323 public static com.liferay.portlet.documentlibrary.model.DLContent getContent(
324 long companyId, long repositoryId, java.lang.String path,
325 java.lang.String version)
326 throws com.liferay.portal.kernel.exception.SystemException,
327 com.liferay.portlet.documentlibrary.NoSuchContentException {
328 return getService().getContent(companyId, repositoryId, path, version);
329 }
330
331 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> getContents(
332 long companyId, long repositoryId)
333 throws com.liferay.portal.kernel.exception.SystemException {
334 return getService().getContents(companyId, repositoryId);
335 }
336
337 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> getContents(
338 long companyId, long repositoryId, java.lang.String path)
339 throws com.liferay.portal.kernel.exception.SystemException {
340 return getService().getContents(companyId, repositoryId, path);
341 }
342
343 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> getContentsByDirectory(
344 long companyId, long repositoryId, java.lang.String dirName)
345 throws com.liferay.portal.kernel.exception.SystemException {
346 return getService()
347 .getContentsByDirectory(companyId, repositoryId, dirName);
348 }
349
350 public static boolean hasContent(long companyId, long repositoryId,
351 java.lang.String path, java.lang.String version)
352 throws com.liferay.portal.kernel.exception.SystemException {
353 return getService().hasContent(companyId, repositoryId, path, version);
354 }
355
356 public static void updateDLContent(long companyId, long oldRepositoryId,
357 long newRepositoryId, java.lang.String oldPath, java.lang.String newPath)
358 throws com.liferay.portal.kernel.exception.SystemException {
359 getService()
360 .updateDLContent(companyId, oldRepositoryId, newRepositoryId,
361 oldPath, newPath);
362 }
363
364 public static DLContentLocalService getService() {
365 if (_service == null) {
366 _service = (DLContentLocalService)PortalBeanLocatorUtil.locate(DLContentLocalService.class.getName());
367
368 ReferenceRegistry.registerReference(DLContentLocalServiceUtil.class,
369 "_service");
370 }
371
372 return _service;
373 }
374
375
378 public void setService(DLContentLocalService service) {
379 }
380
381 private static DLContentLocalService _service;
382 }