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