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 local service utility for SCFrameworkVersion. This utility wraps
024     * {@link com.liferay.portlet.softwarecatalog.service.impl.SCFrameworkVersionLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see SCFrameworkVersionLocalService
032     * @see com.liferay.portlet.softwarecatalog.service.base.SCFrameworkVersionLocalServiceBaseImpl
033     * @see com.liferay.portlet.softwarecatalog.service.impl.SCFrameworkVersionLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class SCFrameworkVersionLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.softwarecatalog.service.impl.SCFrameworkVersionLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addFrameworkVersion(
044                    long userId, java.lang.String name, java.lang.String url,
045                    boolean active, int priority,
046                    com.liferay.portal.service.ServiceContext serviceContext)
047                    throws com.liferay.portal.kernel.exception.PortalException {
048                    return getService()
049                                       .addFrameworkVersion(userId, name, url, active, priority,
050                            serviceContext);
051            }
052    
053            public static void addFrameworkVersionResources(
054                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
055                    boolean addGroupPermissions, boolean addGuestPermissions)
056                    throws com.liferay.portal.kernel.exception.PortalException {
057                    getService()
058                            .addFrameworkVersionResources(frameworkVersion,
059                            addGroupPermissions, addGuestPermissions);
060            }
061    
062            public static void addFrameworkVersionResources(
063                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
064                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
065                    throws com.liferay.portal.kernel.exception.PortalException {
066                    getService()
067                            .addFrameworkVersionResources(frameworkVersion, groupPermissions,
068                            guestPermissions);
069            }
070    
071            public static void addFrameworkVersionResources(long frameworkVersionId,
072                    boolean addGroupPermissions, boolean addGuestPermissions)
073                    throws com.liferay.portal.kernel.exception.PortalException {
074                    getService()
075                            .addFrameworkVersionResources(frameworkVersionId,
076                            addGroupPermissions, addGuestPermissions);
077            }
078    
079            public static void addFrameworkVersionResources(long frameworkVersionId,
080                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
081                    throws com.liferay.portal.kernel.exception.PortalException {
082                    getService()
083                            .addFrameworkVersionResources(frameworkVersionId, groupPermissions,
084                            guestPermissions);
085            }
086    
087            /**
088            * Adds the s c framework version to the database. Also notifies the appropriate model listeners.
089            *
090            * @param scFrameworkVersion the s c framework version
091            * @return the s c framework version that was added
092            */
093            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addSCFrameworkVersion(
094                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion) {
095                    return getService().addSCFrameworkVersion(scFrameworkVersion);
096            }
097    
098            public static void addSCProductVersionSCFrameworkVersion(
099                    long productVersionId, long frameworkVersionId) {
100                    getService()
101                            .addSCProductVersionSCFrameworkVersion(productVersionId,
102                            frameworkVersionId);
103            }
104    
105            public static void addSCProductVersionSCFrameworkVersion(
106                    long productVersionId,
107                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion) {
108                    getService()
109                            .addSCProductVersionSCFrameworkVersion(productVersionId,
110                            scFrameworkVersion);
111            }
112    
113            public static void addSCProductVersionSCFrameworkVersions(
114                    long productVersionId,
115                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> SCFrameworkVersions) {
116                    getService()
117                            .addSCProductVersionSCFrameworkVersions(productVersionId,
118                            SCFrameworkVersions);
119            }
120    
121            public static void addSCProductVersionSCFrameworkVersions(
122                    long productVersionId, long[] frameworkVersionIds) {
123                    getService()
124                            .addSCProductVersionSCFrameworkVersions(productVersionId,
125                            frameworkVersionIds);
126            }
127    
128            public static void clearSCProductVersionSCFrameworkVersions(
129                    long productVersionId) {
130                    getService().clearSCProductVersionSCFrameworkVersions(productVersionId);
131            }
132    
133            /**
134            * Creates a new s c framework version with the primary key. Does not add the s c framework version to the database.
135            *
136            * @param frameworkVersionId the primary key for the new s c framework version
137            * @return the new s c framework version
138            */
139            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion createSCFrameworkVersion(
140                    long frameworkVersionId) {
141                    return getService().createSCFrameworkVersion(frameworkVersionId);
142            }
143    
144            public static void deleteFrameworkVersion(
145                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion) {
146                    getService().deleteFrameworkVersion(frameworkVersion);
147            }
148    
149            public static void deleteFrameworkVersion(long frameworkVersionId)
150                    throws com.liferay.portal.kernel.exception.PortalException {
151                    getService().deleteFrameworkVersion(frameworkVersionId);
152            }
153    
154            public static void deleteFrameworkVersions(long groupId) {
155                    getService().deleteFrameworkVersions(groupId);
156            }
157    
158            /**
159            * @throws PortalException
160            */
161            public static com.liferay.portal.model.PersistedModel deletePersistedModel(
162                    com.liferay.portal.model.PersistedModel persistedModel)
163                    throws com.liferay.portal.kernel.exception.PortalException {
164                    return getService().deletePersistedModel(persistedModel);
165            }
166    
167            /**
168            * Deletes the s c framework version with the primary key from the database. Also notifies the appropriate model listeners.
169            *
170            * @param frameworkVersionId the primary key of the s c framework version
171            * @return the s c framework version that was removed
172            * @throws PortalException if a s c framework version with the primary key could not be found
173            */
174            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion deleteSCFrameworkVersion(
175                    long frameworkVersionId)
176                    throws com.liferay.portal.kernel.exception.PortalException {
177                    return getService().deleteSCFrameworkVersion(frameworkVersionId);
178            }
179    
180            /**
181            * Deletes the s c framework version from the database. Also notifies the appropriate model listeners.
182            *
183            * @param scFrameworkVersion the s c framework version
184            * @return the s c framework version that was removed
185            */
186            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion deleteSCFrameworkVersion(
187                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion) {
188                    return getService().deleteSCFrameworkVersion(scFrameworkVersion);
189            }
190    
191            public static void deleteSCProductVersionSCFrameworkVersion(
192                    long productVersionId, long frameworkVersionId) {
193                    getService()
194                            .deleteSCProductVersionSCFrameworkVersion(productVersionId,
195                            frameworkVersionId);
196            }
197    
198            public static void deleteSCProductVersionSCFrameworkVersion(
199                    long productVersionId,
200                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion) {
201                    getService()
202                            .deleteSCProductVersionSCFrameworkVersion(productVersionId,
203                            scFrameworkVersion);
204            }
205    
206            public static void deleteSCProductVersionSCFrameworkVersions(
207                    long productVersionId,
208                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> SCFrameworkVersions) {
209                    getService()
210                            .deleteSCProductVersionSCFrameworkVersions(productVersionId,
211                            SCFrameworkVersions);
212            }
213    
214            public static void deleteSCProductVersionSCFrameworkVersions(
215                    long productVersionId, long[] frameworkVersionIds) {
216                    getService()
217                            .deleteSCProductVersionSCFrameworkVersions(productVersionId,
218                            frameworkVersionIds);
219            }
220    
221            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
222                    return getService().dynamicQuery();
223            }
224    
225            /**
226            * Performs a dynamic query on the database and returns the matching rows.
227            *
228            * @param dynamicQuery the dynamic query
229            * @return the matching rows
230            */
231            public static <T> java.util.List<T> dynamicQuery(
232                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
233                    return getService().dynamicQuery(dynamicQuery);
234            }
235    
236            /**
237            * Performs a dynamic query on the database and returns a range of the matching rows.
238            *
239            * <p>
240            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCFrameworkVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
241            * </p>
242            *
243            * @param dynamicQuery the dynamic query
244            * @param start the lower bound of the range of model instances
245            * @param end the upper bound of the range of model instances (not inclusive)
246            * @return the range of matching rows
247            */
248            public static <T> java.util.List<T> dynamicQuery(
249                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
250                    int end) {
251                    return getService().dynamicQuery(dynamicQuery, start, end);
252            }
253    
254            /**
255            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
256            *
257            * <p>
258            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCFrameworkVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
259            * </p>
260            *
261            * @param dynamicQuery the dynamic query
262            * @param start the lower bound of the range of model instances
263            * @param end the upper bound of the range of model instances (not inclusive)
264            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
265            * @return the ordered range of matching rows
266            */
267            public static <T> java.util.List<T> dynamicQuery(
268                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
269                    int end,
270                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
271                    return getService()
272                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
273            }
274    
275            /**
276            * Returns the number of rows matching the dynamic query.
277            *
278            * @param dynamicQuery the dynamic query
279            * @return the number of rows matching the dynamic query
280            */
281            public static long dynamicQueryCount(
282                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
283                    return getService().dynamicQueryCount(dynamicQuery);
284            }
285    
286            /**
287            * Returns the number of rows matching the dynamic query.
288            *
289            * @param dynamicQuery the dynamic query
290            * @param projection the projection to apply to the query
291            * @return the number of rows matching the dynamic query
292            */
293            public static long dynamicQueryCount(
294                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
295                    com.liferay.portal.kernel.dao.orm.Projection projection) {
296                    return getService().dynamicQueryCount(dynamicQuery, projection);
297            }
298    
299            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchSCFrameworkVersion(
300                    long frameworkVersionId) {
301                    return getService().fetchSCFrameworkVersion(frameworkVersionId);
302            }
303    
304            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
305                    return getService().getActionableDynamicQuery();
306            }
307    
308            /**
309            * Returns the Spring bean ID for this bean.
310            *
311            * @return the Spring bean ID for this bean
312            */
313            public static java.lang.String getBeanIdentifier() {
314                    return getService().getBeanIdentifier();
315            }
316    
317            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getFrameworkVersion(
318                    long frameworkVersionId)
319                    throws com.liferay.portal.kernel.exception.PortalException {
320                    return getService().getFrameworkVersion(frameworkVersionId);
321            }
322    
323            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
324                    long groupId, boolean active) {
325                    return getService().getFrameworkVersions(groupId, active);
326            }
327    
328            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
329                    long groupId, boolean active, int start, int end) {
330                    return getService().getFrameworkVersions(groupId, active, start, end);
331            }
332    
333            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
334                    long groupId, int start, int end) {
335                    return getService().getFrameworkVersions(groupId, start, end);
336            }
337    
338            public static int getFrameworkVersionsCount(long groupId) {
339                    return getService().getFrameworkVersionsCount(groupId);
340            }
341    
342            public static int getFrameworkVersionsCount(long groupId, boolean active) {
343                    return getService().getFrameworkVersionsCount(groupId, active);
344            }
345    
346            public static com.liferay.portal.model.PersistedModel getPersistedModel(
347                    java.io.Serializable primaryKeyObj)
348                    throws com.liferay.portal.kernel.exception.PortalException {
349                    return getService().getPersistedModel(primaryKeyObj);
350            }
351    
352            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getProductVersionFrameworkVersions(
353                    long productVersionId) {
354                    return getService().getProductVersionFrameworkVersions(productVersionId);
355            }
356    
357            /**
358            * Returns the s c framework version with the primary key.
359            *
360            * @param frameworkVersionId the primary key of the s c framework version
361            * @return the s c framework version
362            * @throws PortalException if a s c framework version with the primary key could not be found
363            */
364            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getSCFrameworkVersion(
365                    long frameworkVersionId)
366                    throws com.liferay.portal.kernel.exception.PortalException {
367                    return getService().getSCFrameworkVersion(frameworkVersionId);
368            }
369    
370            /**
371            * Returns a range of all the s c framework versions.
372            *
373            * <p>
374            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCFrameworkVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
375            * </p>
376            *
377            * @param start the lower bound of the range of s c framework versions
378            * @param end the upper bound of the range of s c framework versions (not inclusive)
379            * @return the range of s c framework versions
380            */
381            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
382                    int start, int end) {
383                    return getService().getSCFrameworkVersions(start, end);
384            }
385    
386            /**
387            * Returns the number of s c framework versions.
388            *
389            * @return the number of s c framework versions
390            */
391            public static int getSCFrameworkVersionsCount() {
392                    return getService().getSCFrameworkVersionsCount();
393            }
394    
395            /**
396            * Returns the productVersionIds of the s c product versions associated with the s c framework version.
397            *
398            * @param frameworkVersionId the frameworkVersionId of the s c framework version
399            * @return long[] the productVersionIds of s c product versions associated with the s c framework version
400            */
401            public static long[] getSCProductVersionPrimaryKeys(long frameworkVersionId) {
402                    return getService().getSCProductVersionPrimaryKeys(frameworkVersionId);
403            }
404    
405            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCProductVersionSCFrameworkVersions(
406                    long productVersionId) {
407                    return getService()
408                                       .getSCProductVersionSCFrameworkVersions(productVersionId);
409            }
410    
411            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCProductVersionSCFrameworkVersions(
412                    long productVersionId, int start, int end) {
413                    return getService()
414                                       .getSCProductVersionSCFrameworkVersions(productVersionId,
415                            start, end);
416            }
417    
418            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCProductVersionSCFrameworkVersions(
419                    long productVersionId, int start, int end,
420                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> orderByComparator) {
421                    return getService()
422                                       .getSCProductVersionSCFrameworkVersions(productVersionId,
423                            start, end, orderByComparator);
424            }
425    
426            public static int getSCProductVersionSCFrameworkVersionsCount(
427                    long productVersionId) {
428                    return getService()
429                                       .getSCProductVersionSCFrameworkVersionsCount(productVersionId);
430            }
431    
432            public static boolean hasSCProductVersionSCFrameworkVersion(
433                    long productVersionId, long frameworkVersionId) {
434                    return getService()
435                                       .hasSCProductVersionSCFrameworkVersion(productVersionId,
436                            frameworkVersionId);
437            }
438    
439            public static boolean hasSCProductVersionSCFrameworkVersions(
440                    long productVersionId) {
441                    return getService()
442                                       .hasSCProductVersionSCFrameworkVersions(productVersionId);
443            }
444    
445            /**
446            * Sets the Spring bean ID for this bean.
447            *
448            * @param beanIdentifier the Spring bean ID for this bean
449            */
450            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
451                    getService().setBeanIdentifier(beanIdentifier);
452            }
453    
454            public static void setSCProductVersionSCFrameworkVersions(
455                    long productVersionId, long[] frameworkVersionIds) {
456                    getService()
457                            .setSCProductVersionSCFrameworkVersions(productVersionId,
458                            frameworkVersionIds);
459            }
460    
461            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateFrameworkVersion(
462                    long frameworkVersionId, java.lang.String name, java.lang.String url,
463                    boolean active, int priority)
464                    throws com.liferay.portal.kernel.exception.PortalException {
465                    return getService()
466                                       .updateFrameworkVersion(frameworkVersionId, name, url,
467                            active, priority);
468            }
469    
470            /**
471            * Updates the s c framework version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
472            *
473            * @param scFrameworkVersion the s c framework version
474            * @return the s c framework version that was updated
475            */
476            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateSCFrameworkVersion(
477                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion) {
478                    return getService().updateSCFrameworkVersion(scFrameworkVersion);
479            }
480    
481            public static SCFrameworkVersionLocalService getService() {
482                    if (_service == null) {
483                            _service = (SCFrameworkVersionLocalService)PortalBeanLocatorUtil.locate(SCFrameworkVersionLocalService.class.getName());
484    
485                            ReferenceRegistry.registerReference(SCFrameworkVersionLocalServiceUtil.class,
486                                    "_service");
487                    }
488    
489                    return _service;
490            }
491    
492            /**
493             * @deprecated As of 6.2.0
494             */
495            @Deprecated
496            public void setService(SCFrameworkVersionLocalService service) {
497            }
498    
499            private static SCFrameworkVersionLocalService _service;
500    }