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 SCFrameworkVersion. This utility wraps
022     * {@link com.liferay.portlet.softwarecatalog.service.impl.SCFrameworkVersionServiceImpl} 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 SCFrameworkVersionService
030     * @see com.liferay.portlet.softwarecatalog.service.base.SCFrameworkVersionServiceBaseImpl
031     * @see com.liferay.portlet.softwarecatalog.service.impl.SCFrameworkVersionServiceImpl
032     * @generated
033     */
034    public class SCFrameworkVersionServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
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.SCFrameworkVersion addFrameworkVersion(
060                    java.lang.String name, java.lang.String url, boolean active,
061                    int priority, com.liferay.portal.service.ServiceContext serviceContext)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    return getService()
065                                       .addFrameworkVersion(name, url, active, priority,
066                            serviceContext);
067            }
068    
069            public static void deleteFrameworkVersion(long frameworkVersionId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    getService().deleteFrameworkVersion(frameworkVersionId);
073            }
074    
075            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getFrameworkVersion(
076                    long frameworkVersionId)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException {
079                    return getService().getFrameworkVersion(frameworkVersionId);
080            }
081    
082            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
083                    long groupId, boolean active)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return getService().getFrameworkVersions(groupId, active);
086            }
087    
088            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
089                    long groupId, boolean active, int start, int end)
090                    throws com.liferay.portal.kernel.exception.SystemException {
091                    return getService().getFrameworkVersions(groupId, active, start, end);
092            }
093    
094            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateFrameworkVersion(
095                    long frameworkVersionId, java.lang.String name, java.lang.String url,
096                    boolean active, int priority)
097                    throws com.liferay.portal.kernel.exception.PortalException,
098                            com.liferay.portal.kernel.exception.SystemException {
099                    return getService()
100                                       .updateFrameworkVersion(frameworkVersionId, name, url,
101                            active, priority);
102            }
103    
104            public static SCFrameworkVersionService getService() {
105                    if (_service == null) {
106                            _service = (SCFrameworkVersionService)PortalBeanLocatorUtil.locate(SCFrameworkVersionService.class.getName());
107    
108                            ReferenceRegistry.registerReference(SCFrameworkVersionServiceUtil.class,
109                                    "_service");
110                    }
111    
112                    return _service;
113            }
114    
115            /**
116             * @deprecated As of 6.2.0
117             */
118            public void setService(SCFrameworkVersionService service) {
119            }
120    
121            private static SCFrameworkVersionService _service;
122    }