001    /**
002     * Copyright (c) 2000-2010 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    
019    /**
020     * 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.
021     *
022     * <p>
023     * 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.
024     * </p>
025     *
026     * <p>
027     * 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.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see ExpandoColumnService
032     * @see com.liferay.portlet.expando.service.base.ExpandoColumnServiceBaseImpl
033     * @see com.liferay.portlet.expando.service.impl.ExpandoColumnServiceImpl
034     * @generated
035     */
036    public class ExpandoColumnServiceUtil {
037            public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
038                    long tableId, java.lang.String name, int type)
039                    throws com.liferay.portal.kernel.exception.PortalException,
040                            com.liferay.portal.kernel.exception.SystemException {
041                    return getService().addColumn(tableId, name, type);
042            }
043    
044            public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
045                    long tableId, java.lang.String name, int type,
046                    java.lang.Object defaultData)
047                    throws com.liferay.portal.kernel.exception.PortalException,
048                            com.liferay.portal.kernel.exception.SystemException {
049                    return getService().addColumn(tableId, name, type, defaultData);
050            }
051    
052            public static void deleteColumn(long columnId)
053                    throws com.liferay.portal.kernel.exception.PortalException,
054                            com.liferay.portal.kernel.exception.SystemException {
055                    getService().deleteColumn(columnId);
056            }
057    
058            public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
059                    long columnId, java.lang.String name, int type)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException {
062                    return getService().updateColumn(columnId, name, type);
063            }
064    
065            public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
066                    long columnId, 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().updateColumn(columnId, name, type, defaultData);
071            }
072    
073            public static com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
074                    long columnId, java.lang.String typeSettings)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    return getService().updateTypeSettings(columnId, typeSettings);
078            }
079    
080            public static ExpandoColumnService getService() {
081                    if (_service == null) {
082                            _service = (ExpandoColumnService)PortalBeanLocatorUtil.locate(ExpandoColumnService.class.getName());
083                    }
084    
085                    return _service;
086            }
087    
088            public void setService(ExpandoColumnService service) {
089                    _service = service;
090            }
091    
092            private static ExpandoColumnService _service;
093    }