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 column remote service. This utility wraps {@link com.liferay.portlet.expando.service.impl.ExpandoColumnServiceImpl} 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 ExpandoColumnService
029     * @see com.liferay.portlet.expando.service.base.ExpandoColumnServiceBaseImpl
030     * @see com.liferay.portlet.expando.service.impl.ExpandoColumnServiceImpl
031     * @generated
032     */
033    public class ExpandoColumnServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.expando.service.impl.ExpandoColumnServiceImpl} 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.ExpandoColumn addColumn(
059                    long tableId, java.lang.String name, int type)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException {
062                    return getService().addColumn(tableId, name, type);
063            }
064    
065            public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
066                    long tableId, java.lang.String name, int type,
067                    java.lang.Object defaultData)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return getService().addColumn(tableId, name, type, defaultData);
071            }
072    
073            public static void deleteColumn(long columnId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    getService().deleteColumn(columnId);
077            }
078    
079            public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
080                    long columnId, java.lang.String name, int type)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException {
083                    return getService().updateColumn(columnId, name, type);
084            }
085    
086            public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
087                    long columnId, java.lang.String name, int type,
088                    java.lang.Object defaultData)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException {
091                    return getService().updateColumn(columnId, name, type, defaultData);
092            }
093    
094            public static com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
095                    long columnId, java.lang.String typeSettings)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException {
098                    return getService().updateTypeSettings(columnId, typeSettings);
099            }
100    
101            public static ExpandoColumnService getService() {
102                    if (_service == null) {
103                            _service = (ExpandoColumnService)PortalBeanLocatorUtil.locate(ExpandoColumnService.class.getName());
104    
105                            ReferenceRegistry.registerReference(ExpandoColumnServiceUtil.class,
106                                    "_service");
107                    }
108    
109                    return _service;
110            }
111    
112            /**
113             * @deprecated
114             */
115            public void setService(ExpandoColumnService service) {
116            }
117    
118            private static ExpandoColumnService _service;
119    }