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