001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for SCFrameworkVersion. This utility wraps
024     * {@link com.liferay.portlet.softwarecatalog.service.impl.SCFrameworkVersionServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see SCFrameworkVersionService
032     * @see com.liferay.portlet.softwarecatalog.service.base.SCFrameworkVersionServiceBaseImpl
033     * @see com.liferay.portlet.softwarecatalog.service.impl.SCFrameworkVersionServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class SCFrameworkVersionServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.softwarecatalog.service.impl.SCFrameworkVersionServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addFrameworkVersion(
044                    java.lang.String name, java.lang.String url, boolean active,
045                    int priority, com.liferay.portal.service.ServiceContext serviceContext)
046                    throws com.liferay.portal.kernel.exception.PortalException {
047                    return getService()
048                                       .addFrameworkVersion(name, url, active, priority,
049                            serviceContext);
050            }
051    
052            public static void deleteFrameworkVersion(long frameworkVersionId)
053                    throws com.liferay.portal.kernel.exception.PortalException {
054                    getService().deleteFrameworkVersion(frameworkVersionId);
055            }
056    
057            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getFrameworkVersion(
058                    long frameworkVersionId)
059                    throws com.liferay.portal.kernel.exception.PortalException {
060                    return getService().getFrameworkVersion(frameworkVersionId);
061            }
062    
063            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
064                    long groupId, boolean active) {
065                    return getService().getFrameworkVersions(groupId, active);
066            }
067    
068            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
069                    long groupId, boolean active, int start, int end) {
070                    return getService().getFrameworkVersions(groupId, active, start, end);
071            }
072    
073            /**
074            * Returns the OSGi service identifier.
075            *
076            * @return the OSGi service identifier
077            */
078            public static java.lang.String getOSGiServiceIdentifier() {
079                    return getService().getOSGiServiceIdentifier();
080            }
081    
082            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateFrameworkVersion(
083                    long frameworkVersionId, java.lang.String name, java.lang.String url,
084                    boolean active, int priority)
085                    throws com.liferay.portal.kernel.exception.PortalException {
086                    return getService()
087                                       .updateFrameworkVersion(frameworkVersionId, name, url,
088                            active, priority);
089            }
090    
091            public static SCFrameworkVersionService getService() {
092                    if (_service == null) {
093                            _service = (SCFrameworkVersionService)PortalBeanLocatorUtil.locate(SCFrameworkVersionService.class.getName());
094    
095                            ReferenceRegistry.registerReference(SCFrameworkVersionServiceUtil.class,
096                                    "_service");
097                    }
098    
099                    return _service;
100            }
101    
102            /**
103             * @deprecated As of 6.2.0
104             */
105            @Deprecated
106            public void setService(SCFrameworkVersionService service) {
107            }
108    
109            private static SCFrameworkVersionService _service;
110    }