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