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            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getFrameworkVersion(
307                    long frameworkVersionId)
308                    throws com.liferay.portal.kernel.exception.PortalException {
309                    return getService().getFrameworkVersion(frameworkVersionId);
310            }
311    
312            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
313                    long groupId, boolean active) {
314                    return getService().getFrameworkVersions(groupId, active);
315            }
316    
317            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
318                    long groupId, boolean active, int start, int end) {
319                    return getService().getFrameworkVersions(groupId, active, start, end);
320            }
321    
322            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
323                    long groupId, int start, int end) {
324                    return getService().getFrameworkVersions(groupId, start, end);
325            }
326    
327            public static int getFrameworkVersionsCount(long groupId) {
328                    return getService().getFrameworkVersionsCount(groupId);
329            }
330    
331            public static int getFrameworkVersionsCount(long groupId, boolean active) {
332                    return getService().getFrameworkVersionsCount(groupId, active);
333            }
334    
335            /**
336            * Returns the OSGi service identifier.
337            *
338            * @return the OSGi service identifier
339            */
340            public static java.lang.String getOSGiServiceIdentifier() {
341                    return getService().getOSGiServiceIdentifier();
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            public static void setSCProductVersionSCFrameworkVersions(
444                    long productVersionId, long[] frameworkVersionIds) {
445                    getService()
446                            .setSCProductVersionSCFrameworkVersions(productVersionId,
447                            frameworkVersionIds);
448            }
449    
450            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateFrameworkVersion(
451                    long frameworkVersionId, java.lang.String name, java.lang.String url,
452                    boolean active, int priority)
453                    throws com.liferay.portal.kernel.exception.PortalException {
454                    return getService()
455                                       .updateFrameworkVersion(frameworkVersionId, name, url,
456                            active, priority);
457            }
458    
459            /**
460            * Updates the s c framework version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
461            *
462            * @param scFrameworkVersion the s c framework version
463            * @return the s c framework version that was updated
464            */
465            public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateSCFrameworkVersion(
466                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion) {
467                    return getService().updateSCFrameworkVersion(scFrameworkVersion);
468            }
469    
470            public static SCFrameworkVersionLocalService getService() {
471                    if (_service == null) {
472                            _service = (SCFrameworkVersionLocalService)PortalBeanLocatorUtil.locate(SCFrameworkVersionLocalService.class.getName());
473    
474                            ReferenceRegistry.registerReference(SCFrameworkVersionLocalServiceUtil.class,
475                                    "_service");
476                    }
477    
478                    return _service;
479            }
480    
481            /**
482             * @deprecated As of 6.2.0
483             */
484            @Deprecated
485            public void setService(SCFrameworkVersionLocalService service) {
486            }
487    
488            private static SCFrameworkVersionLocalService _service;
489    }