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 DLFileVersionServiceUtil {
038
043
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053
058 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059 getService().setBeanIdentifier(beanIdentifier);
060 }
061
062 public static com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion(
063 long fileVersionId)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException {
066 return getService().getFileVersion(fileVersionId);
067 }
068
069 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getFileVersions(
070 long fileEntryId, int status)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException {
073 return getService().getFileVersions(fileEntryId, status);
074 }
075
076 public static int getFileVersionsCount(long fileEntryId, int status)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException {
079 return getService().getFileVersionsCount(fileEntryId, status);
080 }
081
082 public static com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(
083 long fileEntryId)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException {
086 return getService().getLatestFileVersion(fileEntryId);
087 }
088
089 public static DLFileVersionService getService() {
090 if (_service == null) {
091 _service = (DLFileVersionService)PortalBeanLocatorUtil.locate(DLFileVersionService.class.getName());
092
093 ReferenceRegistry.registerReference(DLFileVersionServiceUtil.class,
094 "_service");
095 }
096
097 return _service;
098 }
099
100
103 public void setService(DLFileVersionService service) {
104 }
105
106 private static DLFileVersionService _service;
107 }