001    /**
002     * Copyright (c) 2000-2012 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 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            /**
183             * @deprecated
184             */
185            public void setService(DDMStructureService service) {
186            }
187    
188            private static DDMStructureService _service;
189    }