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.dynamicdatalists.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the remote service utility for DDLRecord. This utility wraps
022     * {@link com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on a remote server. Methods of this service are expected to have security
025     * checks based on the propagated JAAS credentials because this service can be
026     * accessed remotely.
027     *
028     * @author Brian Wing Shun Chan
029     * @see DDLRecordService
030     * @see com.liferay.portlet.dynamicdatalists.service.base.DDLRecordServiceBaseImpl
031     * @see com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordServiceImpl
032     * @generated
033     */
034    public class DDLRecordServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            public static java.lang.String getBeanIdentifier() {
047                    return getService().getBeanIdentifier();
048            }
049    
050            /**
051            * Sets the Spring bean ID for this bean.
052            *
053            * @param beanIdentifier the Spring bean ID for this bean
054            */
055            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    getService().setBeanIdentifier(beanIdentifier);
057            }
058    
059            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
060                    long groupId, long recordSetId, int displayIndex,
061                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
062                    com.liferay.portal.service.ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    return getService()
066                                       .addRecord(groupId, recordSetId, displayIndex, fields,
067                            serviceContext);
068            }
069    
070            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
071                    long groupId, long recordSetId, int displayIndex,
072                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
073                    com.liferay.portal.service.ServiceContext serviceContext)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .addRecord(groupId, recordSetId, displayIndex, fieldsMap,
078                            serviceContext);
079            }
080    
081            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord deleteRecordLocale(
082                    long recordId, java.util.Locale locale,
083                    com.liferay.portal.service.ServiceContext serviceContext)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    return getService().deleteRecordLocale(recordId, locale, serviceContext);
087            }
088    
089            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord(
090                    long recordId)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException {
093                    return getService().getRecord(recordId);
094            }
095    
096            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
097                    long recordId, boolean majorVersion, int displayIndex,
098                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
099                    boolean mergeFields,
100                    com.liferay.portal.service.ServiceContext serviceContext)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    return getService()
104                                       .updateRecord(recordId, majorVersion, displayIndex, fields,
105                            mergeFields, serviceContext);
106            }
107    
108            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
109                    long recordId, int displayIndex,
110                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
111                    boolean mergeFields,
112                    com.liferay.portal.service.ServiceContext serviceContext)
113                    throws com.liferay.portal.kernel.exception.PortalException,
114                            com.liferay.portal.kernel.exception.SystemException {
115                    return getService()
116                                       .updateRecord(recordId, displayIndex, fieldsMap,
117                            mergeFields, serviceContext);
118            }
119    
120            public static DDLRecordService getService() {
121                    if (_service == null) {
122                            _service = (DDLRecordService)PortalBeanLocatorUtil.locate(DDLRecordService.class.getName());
123    
124                            ReferenceRegistry.registerReference(DDLRecordServiceUtil.class,
125                                    "_service");
126                    }
127    
128                    return _service;
129            }
130    
131            /**
132             * @deprecated As of 6.2.0
133             */
134            public void setService(DDLRecordService service) {
135            }
136    
137            private static DDLRecordService _service;
138    }