001    /**
002     * Copyright (c) 2000-present 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.expando.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for ExpandoValue. This utility wraps
024     * {@link com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see ExpandoValueService
032     * @see com.liferay.portlet.expando.service.base.ExpandoValueServiceBaseImpl
033     * @see com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class ExpandoValueServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
044                    long companyId, java.lang.String className, java.lang.String tableName,
045                    java.lang.String columnName, long classPK, java.lang.String data)
046                    throws com.liferay.portal.kernel.exception.PortalException {
047                    return getService()
048                                       .addValue(companyId, className, tableName, columnName,
049                            classPK, data);
050            }
051    
052            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
053                    long companyId, java.lang.String className, java.lang.String tableName,
054                    java.lang.String columnName, long classPK, java.lang.Object data)
055                    throws com.liferay.portal.kernel.exception.PortalException {
056                    return getService()
057                                       .addValue(companyId, className, tableName, columnName,
058                            classPK, data);
059            }
060    
061            public static void addValues(long companyId, java.lang.String className,
062                    java.lang.String tableName, long classPK,
063                    java.util.Map<java.lang.String, java.io.Serializable> attributeValues)
064                    throws com.liferay.portal.kernel.exception.PortalException {
065                    getService()
066                            .addValues(companyId, className, tableName, classPK, attributeValues);
067            }
068    
069            public static java.io.Serializable getData(long companyId,
070                    java.lang.String className, java.lang.String tableName,
071                    java.lang.String columnName, long classPK)
072                    throws com.liferay.portal.kernel.exception.PortalException {
073                    return getService()
074                                       .getData(companyId, className, tableName, columnName, classPK);
075            }
076    
077            public static java.util.Map<java.lang.String, java.io.Serializable> getData(
078                    long companyId, java.lang.String className, java.lang.String tableName,
079                    java.util.Collection<java.lang.String> columnNames, long classPK)
080                    throws com.liferay.portal.kernel.exception.PortalException {
081                    return getService()
082                                       .getData(companyId, className, tableName, columnNames,
083                            classPK);
084            }
085    
086            public static com.liferay.portal.kernel.json.JSONObject getJSONData(
087                    long companyId, java.lang.String className, java.lang.String tableName,
088                    java.lang.String columnName, long classPK)
089                    throws com.liferay.portal.kernel.exception.PortalException {
090                    return getService()
091                                       .getJSONData(companyId, className, tableName, columnName,
092                            classPK);
093            }
094    
095            /**
096            * Returns the OSGi service identifier.
097            *
098            * @return the OSGi service identifier
099            */
100            public static java.lang.String getOSGiServiceIdentifier() {
101                    return getService().getOSGiServiceIdentifier();
102            }
103    
104            public static ExpandoValueService getService() {
105                    if (_service == null) {
106                            _service = (ExpandoValueService)PortalBeanLocatorUtil.locate(ExpandoValueService.class.getName());
107    
108                            ReferenceRegistry.registerReference(ExpandoValueServiceUtil.class,
109                                    "_service");
110                    }
111    
112                    return _service;
113            }
114    
115            private static ExpandoValueService _service;
116    }