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