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.softwarecatalog.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 SCLicense. This utility wraps
022     * {@link com.liferay.portlet.softwarecatalog.service.impl.SCLicenseServiceImpl} 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 SCLicenseService
030     * @see com.liferay.portlet.softwarecatalog.service.base.SCLicenseServiceBaseImpl
031     * @see com.liferay.portlet.softwarecatalog.service.impl.SCLicenseServiceImpl
032     * @generated
033     */
034    public class SCLicenseServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.softwarecatalog.service.impl.SCLicenseServiceImpl} 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.softwarecatalog.model.SCLicense addLicense(
060                    java.lang.String name, java.lang.String url, boolean openSource,
061                    boolean active, boolean recommended)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    return getService()
065                                       .addLicense(name, url, openSource, active, recommended);
066            }
067    
068            public static void deleteLicense(long licenseId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    getService().deleteLicense(licenseId);
072            }
073    
074            public static com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
075                    long licenseId)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException {
078                    return getService().getLicense(licenseId);
079            }
080    
081            public static com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
082                    long licenseId, java.lang.String name, java.lang.String url,
083                    boolean openSource, boolean active, boolean recommended)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    return getService()
087                                       .updateLicense(licenseId, name, url, openSource, active,
088                            recommended);
089            }
090    
091            public static SCLicenseService getService() {
092                    if (_service == null) {
093                            _service = (SCLicenseService)PortalBeanLocatorUtil.locate(SCLicenseService.class.getName());
094    
095                            ReferenceRegistry.registerReference(SCLicenseServiceUtil.class,
096                                    "_service");
097                    }
098    
099                    return _service;
100            }
101    
102            /**
103             * @deprecated As of 6.2.0
104             */
105            public void setService(SCLicenseService service) {
106            }
107    
108            private static SCLicenseService _service;
109    }