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            /**
070            * Returns the Spring bean ID for this bean.
071            *
072            * @return the Spring bean ID for this bean
073            */
074            public static java.lang.String getBeanIdentifier() {
075                    return getService().getBeanIdentifier();
076            }
077    
078            public static java.io.Serializable getData(long companyId,
079                    java.lang.String className, java.lang.String tableName,
080                    java.lang.String columnName, long classPK)
081                    throws com.liferay.portal.kernel.exception.PortalException {
082                    return getService()
083                                       .getData(companyId, className, tableName, columnName, classPK);
084            }
085    
086            public static java.util.Map<java.lang.String, java.io.Serializable> getData(
087                    long companyId, java.lang.String className, java.lang.String tableName,
088                    java.util.Collection<java.lang.String> columnNames, long classPK)
089                    throws com.liferay.portal.kernel.exception.PortalException {
090                    return getService()
091                                       .getData(companyId, className, tableName, columnNames,
092                            classPK);
093            }
094    
095            public static com.liferay.portal.kernel.json.JSONObject getJSONData(
096                    long companyId, java.lang.String className, java.lang.String tableName,
097                    java.lang.String columnName, long classPK)
098                    throws com.liferay.portal.kernel.exception.PortalException {
099                    return getService()
100                                       .getJSONData(companyId, className, tableName, columnName,
101                            classPK);
102            }
103    
104            /**
105            * Sets the Spring bean ID for this bean.
106            *
107            * @param beanIdentifier the Spring bean ID for this bean
108            */
109            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
110                    getService().setBeanIdentifier(beanIdentifier);
111            }
112    
113            public static ExpandoValueService getService() {
114                    if (_service == null) {
115                            _service = (ExpandoValueService)PortalBeanLocatorUtil.locate(ExpandoValueService.class.getName());
116    
117                            ReferenceRegistry.registerReference(ExpandoValueServiceUtil.class,
118                                    "_service");
119                    }
120    
121                    return _service;
122            }
123    
124            /**
125             * @deprecated As of 6.2.0
126             */
127            @Deprecated
128            public void setService(ExpandoValueService service) {
129            }
130    
131            private static ExpandoValueService _service;
132    }