001
014
015 package com.liferay.portlet.dynamicdatalists.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 DDLRecordVersionServiceUtil {
038
043
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(
054 long recordId, java.lang.String version)
055 throws com.liferay.portal.kernel.exception.PortalException {
056 return getService().getRecordVersion(recordId, version);
057 }
058
059 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(
060 long recordVersionId)
061 throws com.liferay.portal.kernel.exception.PortalException {
062 return getService().getRecordVersion(recordVersionId);
063 }
064
065 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> getRecordVersions(
066 long recordId, int start, int end,
067 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator)
068 throws com.liferay.portal.kernel.exception.PortalException {
069 return getService()
070 .getRecordVersions(recordId, start, end, orderByComparator);
071 }
072
073 public static int getRecordVersionsCount(long recordId)
074 throws com.liferay.portal.kernel.exception.PortalException {
075 return getService().getRecordVersionsCount(recordId);
076 }
077
078
083 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
084 getService().setBeanIdentifier(beanIdentifier);
085 }
086
087 public static DDLRecordVersionService getService() {
088 if (_service == null) {
089 _service = (DDLRecordVersionService)PortalBeanLocatorUtil.locate(DDLRecordVersionService.class.getName());
090
091 ReferenceRegistry.registerReference(DDLRecordVersionServiceUtil.class,
092 "_service");
093 }
094
095 return _service;
096 }
097
098
101 @Deprecated
102 public void setService(DDLRecordVersionService service) {
103 }
104
105 private static DDLRecordVersionService _service;
106 }