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.expando.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 ExpandoValue. This utility wraps
022     * {@link com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl} 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 ExpandoValueService
030     * @see com.liferay.portlet.expando.service.base.ExpandoValueServiceBaseImpl
031     * @see com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl
032     * @generated
033     */
034    public class ExpandoValueServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
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.expando.model.ExpandoValue addValue(
060                    long companyId, java.lang.String className, java.lang.String tableName,
061                    java.lang.String columnName, long classPK, java.lang.Object data)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    return getService()
065                                       .addValue(companyId, className, tableName, columnName,
066                            classPK, data);
067            }
068    
069            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
070                    long companyId, java.lang.String className, java.lang.String tableName,
071                    java.lang.String columnName, long classPK, java.lang.String data)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    return getService()
075                                       .addValue(companyId, className, tableName, columnName,
076                            classPK, data);
077            }
078    
079            public static void addValues(long companyId, java.lang.String className,
080                    java.lang.String tableName, long classPK,
081                    java.util.Map<java.lang.String, java.io.Serializable> attributeValues)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    getService()
085                            .addValues(companyId, className, tableName, classPK, attributeValues);
086            }
087    
088            public static java.util.Map<java.lang.String, java.io.Serializable> getData(
089                    long companyId, java.lang.String className, java.lang.String tableName,
090                    java.util.Collection<java.lang.String> columnNames, long classPK)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException {
093                    return getService()
094                                       .getData(companyId, className, tableName, columnNames,
095                            classPK);
096            }
097    
098            public static java.io.Serializable getData(long companyId,
099                    java.lang.String className, java.lang.String tableName,
100                    java.lang.String columnName, long classPK)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    return getService()
104                                       .getData(companyId, className, tableName, columnName, classPK);
105            }
106    
107            public static com.liferay.portal.kernel.json.JSONObject getJSONData(
108                    long companyId, java.lang.String className, java.lang.String tableName,
109                    java.lang.String columnName, long classPK)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException {
112                    return getService()
113                                       .getJSONData(companyId, className, tableName, columnName,
114                            classPK);
115            }
116    
117            public static ExpandoValueService getService() {
118                    if (_service == null) {
119                            _service = (ExpandoValueService)PortalBeanLocatorUtil.locate(ExpandoValueService.class.getName());
120    
121                            ReferenceRegistry.registerReference(ExpandoValueServiceUtil.class,
122                                    "_service");
123                    }
124    
125                    return _service;
126            }
127    
128            /**
129             * @deprecated As of 6.2.0
130             */
131            public void setService(ExpandoValueService service) {
132            }
133    
134            private static ExpandoValueService _service;
135    }