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 DDLRecordSetServiceUtil {
038
043 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet addRecordSet(
044 long groupId, long ddmStructureId, java.lang.String recordSetKey,
045 java.util.Map<java.util.Locale, java.lang.String> nameMap,
046 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
047 int minDisplayRows, int scope,
048 com.liferay.portal.service.ServiceContext serviceContext)
049 throws com.liferay.portal.kernel.exception.PortalException {
050 return getService()
051 .addRecordSet(groupId, ddmStructureId, recordSetKey,
052 nameMap, descriptionMap, minDisplayRows, scope, serviceContext);
053 }
054
055 public static void deleteRecordSet(long recordSetId)
056 throws com.liferay.portal.kernel.exception.PortalException {
057 getService().deleteRecordSet(recordSetId);
058 }
059
060
065 public static java.lang.String getBeanIdentifier() {
066 return getService().getBeanIdentifier();
067 }
068
069 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getRecordSet(
070 long recordSetId)
071 throws com.liferay.portal.kernel.exception.PortalException {
072 return getService().getRecordSet(recordSetId);
073 }
074
075 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> search(
076 long companyId, long groupId, java.lang.String keywords, int scope,
077 int start, int end,
078 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> orderByComparator) {
079 return getService()
080 .search(companyId, groupId, keywords, scope, start, end,
081 orderByComparator);
082 }
083
084 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> search(
085 long companyId, long groupId, java.lang.String name,
086 java.lang.String description, int scope, boolean andOperator,
087 int start, int end,
088 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> orderByComparator) {
089 return getService()
090 .search(companyId, groupId, name, description, scope,
091 andOperator, start, end, orderByComparator);
092 }
093
094 public static int searchCount(long companyId, long groupId,
095 java.lang.String keywords, int scope) {
096 return getService().searchCount(companyId, groupId, keywords, scope);
097 }
098
099 public static int searchCount(long companyId, long groupId,
100 java.lang.String name, java.lang.String description, int scope,
101 boolean andOperator) {
102 return getService()
103 .searchCount(companyId, groupId, name, description, scope,
104 andOperator);
105 }
106
107
112 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
113 getService().setBeanIdentifier(beanIdentifier);
114 }
115
116 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateMinDisplayRows(
117 long recordSetId, int minDisplayRows,
118 com.liferay.portal.service.ServiceContext serviceContext)
119 throws com.liferay.portal.kernel.exception.PortalException {
120 return getService()
121 .updateMinDisplayRows(recordSetId, minDisplayRows,
122 serviceContext);
123 }
124
125 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
126 long groupId, long ddmStructureId, java.lang.String recordSetKey,
127 java.util.Map<java.util.Locale, java.lang.String> nameMap,
128 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
129 int minDisplayRows,
130 com.liferay.portal.service.ServiceContext serviceContext)
131 throws com.liferay.portal.kernel.exception.PortalException {
132 return getService()
133 .updateRecordSet(groupId, ddmStructureId, recordSetKey,
134 nameMap, descriptionMap, minDisplayRows, serviceContext);
135 }
136
137 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
138 long recordSetId, long ddmStructureId,
139 java.util.Map<java.util.Locale, java.lang.String> nameMap,
140 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
141 int minDisplayRows,
142 com.liferay.portal.service.ServiceContext serviceContext)
143 throws com.liferay.portal.kernel.exception.PortalException {
144 return getService()
145 .updateRecordSet(recordSetId, ddmStructureId, nameMap,
146 descriptionMap, minDisplayRows, serviceContext);
147 }
148
149 public static DDLRecordSetService getService() {
150 if (_service == null) {
151 _service = (DDLRecordSetService)PortalBeanLocatorUtil.locate(DDLRecordSetService.class.getName());
152
153 ReferenceRegistry.registerReference(DDLRecordSetServiceUtil.class,
154 "_service");
155 }
156
157 return _service;
158 }
159
160
163 @Deprecated
164 public void setService(DDLRecordSetService service) {
165 }
166
167 private static DDLRecordSetService _service;
168 }