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