001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
021     * The utility for the d d m structure remote service. This utility wraps {@link com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
022     *
023     * <p>
024     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see DDMStructureService
029     * @see com.liferay.portlet.dynamicdatamapping.service.base.DDMStructureServiceBaseImpl
030     * @see com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureServiceImpl
031     * @generated
032     */
033    public class DDMStructureServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureServiceImpl} and rerun ServiceBuilder to regenerate this class.
038             */
039    
040            /**
041            * Returns the Spring bean ID for this bean.
042            *
043            * @return the Spring bean ID for this bean
044            */
045            public static java.lang.String getBeanIdentifier() {
046                    return getService().getBeanIdentifier();
047            }
048    
049            /**
050            * Sets the Spring bean ID for this bean.
051            *
052            * @param beanIdentifier the Spring bean ID for this bean
053            */
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            /**
181             * @deprecated
182             */
183            public void setService(DDMStructureService service) {
184            }
185    
186            private static DDMStructureService _service;
187    }