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