001
014
015 package com.liferay.portlet.dynamicdatamapping.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class DDMStructureServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
059 long userId, long groupId, java.lang.String parentStructureKey,
060 long classNameId, java.lang.String structureKey,
061 java.util.Map<java.util.Locale, java.lang.String> nameMap,
062 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
063 java.lang.String xsd, java.lang.String storageType, int type,
064 com.liferay.portal.service.ServiceContext serviceContext)
065 throws com.liferay.portal.kernel.exception.PortalException,
066 com.liferay.portal.kernel.exception.SystemException {
067 return getService()
068 .addStructure(userId, groupId, parentStructureKey,
069 classNameId, structureKey, nameMap, descriptionMap, xsd,
070 storageType, type, serviceContext);
071 }
072
073 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
074 long userId, long groupId, long classNameId,
075 java.util.Map<java.util.Locale, java.lang.String> nameMap,
076 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
077 java.lang.String xsd,
078 com.liferay.portal.service.ServiceContext serviceContext)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException {
081 return getService()
082 .addStructure(userId, groupId, classNameId, nameMap,
083 descriptionMap, xsd, serviceContext);
084 }
085
086 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
087 long groupId, long parentStructureId, long classNameId,
088 java.lang.String structureKey,
089 java.util.Map<java.util.Locale, java.lang.String> nameMap,
090 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
091 java.lang.String xsd, java.lang.String storageType, int type,
092 com.liferay.portal.service.ServiceContext serviceContext)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException {
095 return getService()
096 .addStructure(groupId, parentStructureId, classNameId,
097 structureKey, nameMap, descriptionMap, xsd, storageType, type,
098 serviceContext);
099 }
100
101 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure(
102 long structureId,
103 java.util.Map<java.util.Locale, java.lang.String> nameMap,
104 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
105 com.liferay.portal.service.ServiceContext serviceContext)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException {
108 return getService()
109 .copyStructure(structureId, nameMap, descriptionMap,
110 serviceContext);
111 }
112
113 public static void deleteStructure(long structureId)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException {
116 getService().deleteStructure(structureId);
117 }
118
119 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(
120 long groupId, java.lang.String structureKey)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException {
123 return getService().fetchStructure(groupId, structureKey);
124 }
125
126 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
127 long structureId)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException {
130 return getService().getStructure(structureId);
131 }
132
133 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
134 long groupId, java.lang.String structureKey)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException {
137 return getService().getStructure(groupId, structureKey);
138 }
139
140 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
141 long groupId, java.lang.String structureKey,
142 boolean includeGlobalStructures)
143 throws com.liferay.portal.kernel.exception.PortalException,
144 com.liferay.portal.kernel.exception.SystemException {
145 return getService()
146 .getStructure(groupId, structureKey, includeGlobalStructures);
147 }
148
149 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
150 long groupId)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getService().getStructures(groupId);
153 }
154
155 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
156 long[] groupIds)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getService().getStructures(groupIds);
159 }
160
161 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
162 long companyId, long[] groupIds, long[] classNameIds,
163 java.lang.String keywords, int start, int end,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getService()
167 .search(companyId, groupIds, classNameIds, keywords, start,
168 end, orderByComparator);
169 }
170
171 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
172 long companyId, long[] groupIds, long[] classNameIds,
173 java.lang.String name, java.lang.String description,
174 java.lang.String storageType, int type, boolean andOperator, int start,
175 int end,
176 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177 throws com.liferay.portal.kernel.exception.SystemException {
178 return getService()
179 .search(companyId, groupIds, classNameIds, name,
180 description, storageType, type, andOperator, start, end,
181 orderByComparator);
182 }
183
184 public static int searchCount(long companyId, long[] groupIds,
185 long[] classNameIds, java.lang.String keywords)
186 throws com.liferay.portal.kernel.exception.SystemException {
187 return getService()
188 .searchCount(companyId, groupIds, classNameIds, keywords);
189 }
190
191 public static int searchCount(long companyId, long[] groupIds,
192 long[] classNameIds, java.lang.String name,
193 java.lang.String description, java.lang.String storageType, int type,
194 boolean andOperator)
195 throws com.liferay.portal.kernel.exception.SystemException {
196 return getService()
197 .searchCount(companyId, groupIds, classNameIds, name,
198 description, storageType, type, andOperator);
199 }
200
201 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
202 long structureId, long parentStructureId,
203 java.util.Map<java.util.Locale, java.lang.String> nameMap,
204 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
205 java.lang.String xsd,
206 com.liferay.portal.service.ServiceContext serviceContext)
207 throws com.liferay.portal.kernel.exception.PortalException,
208 com.liferay.portal.kernel.exception.SystemException {
209 return getService()
210 .updateStructure(structureId, parentStructureId, nameMap,
211 descriptionMap, xsd, serviceContext);
212 }
213
214 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
215 long groupId, long parentStructureId, java.lang.String structureKey,
216 java.util.Map<java.util.Locale, java.lang.String> nameMap,
217 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
218 java.lang.String xsd,
219 com.liferay.portal.service.ServiceContext serviceContext)
220 throws com.liferay.portal.kernel.exception.PortalException,
221 com.liferay.portal.kernel.exception.SystemException {
222 return getService()
223 .updateStructure(groupId, parentStructureId, structureKey,
224 nameMap, descriptionMap, xsd, serviceContext);
225 }
226
227 public static DDMStructureService getService() {
228 if (_service == null) {
229 _service = (DDMStructureService)PortalBeanLocatorUtil.locate(DDMStructureService.class.getName());
230
231 ReferenceRegistry.registerReference(DDMStructureServiceUtil.class,
232 "_service");
233 }
234
235 return _service;
236 }
237
238
241 public void setService(DDMStructureService service) {
242 }
243
244 private static DDMStructureService _service;
245 }