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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.transaction.Isolation;
022    import com.liferay.portal.kernel.transaction.Propagation;
023    import com.liferay.portal.kernel.transaction.Transactional;
024    import com.liferay.portal.service.BaseLocalService;
025    import com.liferay.portal.service.PersistedModelLocalService;
026    
027    /**
028     * Provides the local service interface for SCFrameworkVersion. Methods of this
029     * service will not have security checks based on the propagated JAAS
030     * credentials because this service can only be accessed from within the same
031     * VM.
032     *
033     * @author Brian Wing Shun Chan
034     * @see SCFrameworkVersionLocalServiceUtil
035     * @see com.liferay.portlet.softwarecatalog.service.base.SCFrameworkVersionLocalServiceBaseImpl
036     * @see com.liferay.portlet.softwarecatalog.service.impl.SCFrameworkVersionLocalServiceImpl
037     * @generated
038     */
039    @ProviderType
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface SCFrameworkVersionLocalService extends BaseLocalService,
043            PersistedModelLocalService {
044            /*
045             * NOTE FOR DEVELOPERS:
046             *
047             * Never modify or reference this interface directly. Always use {@link SCFrameworkVersionLocalServiceUtil} to access the s c framework version local service. Add custom service methods to {@link com.liferay.portlet.softwarecatalog.service.impl.SCFrameworkVersionLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
048             */
049    
050            /**
051            * Adds the s c framework version to the database. Also notifies the appropriate model listeners.
052            *
053            * @param scFrameworkVersion the s c framework version
054            * @return the s c framework version that was added
055            * @throws SystemException if a system exception occurred
056            */
057            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addSCFrameworkVersion(
058                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            /**
062            * Creates a new s c framework version with the primary key. Does not add the s c framework version to the database.
063            *
064            * @param frameworkVersionId the primary key for the new s c framework version
065            * @return the new s c framework version
066            */
067            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion createSCFrameworkVersion(
068                    long frameworkVersionId);
069    
070            /**
071            * Deletes the s c framework version with the primary key from the database. Also notifies the appropriate model listeners.
072            *
073            * @param frameworkVersionId the primary key of the s c framework version
074            * @return the s c framework version that was removed
075            * @throws PortalException if a s c framework version with the primary key could not be found
076            * @throws SystemException if a system exception occurred
077            */
078            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion deleteSCFrameworkVersion(
079                    long frameworkVersionId)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * Deletes the s c framework version from the database. Also notifies the appropriate model listeners.
085            *
086            * @param scFrameworkVersion the s c framework version
087            * @return the s c framework version that was removed
088            * @throws SystemException if a system exception occurred
089            */
090            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion deleteSCFrameworkVersion(
091                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
095    
096            /**
097            * Performs a dynamic query on the database and returns the matching rows.
098            *
099            * @param dynamicQuery the dynamic query
100            * @return the matching rows
101            * @throws SystemException if a system exception occurred
102            */
103            @SuppressWarnings("rawtypes")
104            public java.util.List dynamicQuery(
105                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            /**
109            * Performs a dynamic query on the database and returns a range of the matching rows.
110            *
111            * <p>
112            * 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.
113            * </p>
114            *
115            * @param dynamicQuery the dynamic query
116            * @param start the lower bound of the range of model instances
117            * @param end the upper bound of the range of model instances (not inclusive)
118            * @return the range of matching rows
119            * @throws SystemException if a system exception occurred
120            */
121            @SuppressWarnings("rawtypes")
122            public java.util.List dynamicQuery(
123                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
124                    int end) throws com.liferay.portal.kernel.exception.SystemException;
125    
126            /**
127            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
128            *
129            * <p>
130            * 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.
131            * </p>
132            *
133            * @param dynamicQuery the dynamic query
134            * @param start the lower bound of the range of model instances
135            * @param end the upper bound of the range of model instances (not inclusive)
136            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
137            * @return the ordered range of matching rows
138            * @throws SystemException if a system exception occurred
139            */
140            @SuppressWarnings("rawtypes")
141            public java.util.List dynamicQuery(
142                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143                    int end,
144                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145                    throws com.liferay.portal.kernel.exception.SystemException;
146    
147            /**
148            * Returns the number of rows that match the dynamic query.
149            *
150            * @param dynamicQuery the dynamic query
151            * @return the number of rows that match the dynamic query
152            * @throws SystemException if a system exception occurred
153            */
154            public long dynamicQueryCount(
155                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
156                    throws com.liferay.portal.kernel.exception.SystemException;
157    
158            /**
159            * Returns the number of rows that match the dynamic query.
160            *
161            * @param dynamicQuery the dynamic query
162            * @param projection the projection to apply to the query
163            * @return the number of rows that match the dynamic query
164            * @throws SystemException if a system exception occurred
165            */
166            public long dynamicQueryCount(
167                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
168                    com.liferay.portal.kernel.dao.orm.Projection projection)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchSCFrameworkVersion(
173                    long frameworkVersionId)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            /**
177            * Returns the s c framework version with the primary key.
178            *
179            * @param frameworkVersionId the primary key of the s c framework version
180            * @return the s c framework version
181            * @throws PortalException if a s c framework version with the primary key could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getSCFrameworkVersion(
186                    long frameworkVersionId)
187                    throws com.liferay.portal.kernel.exception.PortalException,
188                            com.liferay.portal.kernel.exception.SystemException;
189    
190            @Override
191            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192            public com.liferay.portal.model.PersistedModel getPersistedModel(
193                    java.io.Serializable primaryKeyObj)
194                    throws com.liferay.portal.kernel.exception.PortalException,
195                            com.liferay.portal.kernel.exception.SystemException;
196    
197            /**
198            * Returns a range of all the s c framework versions.
199            *
200            * <p>
201            * 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.
202            * </p>
203            *
204            * @param start the lower bound of the range of s c framework versions
205            * @param end the upper bound of the range of s c framework versions (not inclusive)
206            * @return the range of s c framework versions
207            * @throws SystemException if a system exception occurred
208            */
209            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
211                    int start, int end)
212                    throws com.liferay.portal.kernel.exception.SystemException;
213    
214            /**
215            * Returns the number of s c framework versions.
216            *
217            * @return the number of s c framework versions
218            * @throws SystemException if a system exception occurred
219            */
220            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221            public int getSCFrameworkVersionsCount()
222                    throws com.liferay.portal.kernel.exception.SystemException;
223    
224            /**
225            * Updates the s c framework version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
226            *
227            * @param scFrameworkVersion the s c framework version
228            * @return the s c framework version that was updated
229            * @throws SystemException if a system exception occurred
230            */
231            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateSCFrameworkVersion(
232                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
233                    throws com.liferay.portal.kernel.exception.SystemException;
234    
235            /**
236            * @throws SystemException if a system exception occurred
237            */
238            public void addSCProductVersionSCFrameworkVersion(long productVersionId,
239                    long frameworkVersionId)
240                    throws com.liferay.portal.kernel.exception.SystemException;
241    
242            /**
243            * @throws SystemException if a system exception occurred
244            */
245            public void addSCProductVersionSCFrameworkVersion(long productVersionId,
246                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            /**
250            * @throws SystemException if a system exception occurred
251            */
252            public void addSCProductVersionSCFrameworkVersions(long productVersionId,
253                    long[] frameworkVersionIds)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * @throws SystemException if a system exception occurred
258            */
259            public void addSCProductVersionSCFrameworkVersions(long productVersionId,
260                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> SCFrameworkVersions)
261                    throws com.liferay.portal.kernel.exception.SystemException;
262    
263            /**
264            * @throws SystemException if a system exception occurred
265            */
266            public void clearSCProductVersionSCFrameworkVersions(long productVersionId)
267                    throws com.liferay.portal.kernel.exception.SystemException;
268    
269            /**
270            * @throws SystemException if a system exception occurred
271            */
272            public void deleteSCProductVersionSCFrameworkVersion(
273                    long productVersionId, long frameworkVersionId)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            /**
277            * @throws SystemException if a system exception occurred
278            */
279            public void deleteSCProductVersionSCFrameworkVersion(
280                    long productVersionId,
281                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
282                    throws com.liferay.portal.kernel.exception.SystemException;
283    
284            /**
285            * @throws SystemException if a system exception occurred
286            */
287            public void deleteSCProductVersionSCFrameworkVersions(
288                    long productVersionId, long[] frameworkVersionIds)
289                    throws com.liferay.portal.kernel.exception.SystemException;
290    
291            /**
292            * @throws SystemException if a system exception occurred
293            */
294            public void deleteSCProductVersionSCFrameworkVersions(
295                    long productVersionId,
296                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> SCFrameworkVersions)
297                    throws com.liferay.portal.kernel.exception.SystemException;
298    
299            /**
300            * @throws SystemException if a system exception occurred
301            */
302            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCProductVersionSCFrameworkVersions(
304                    long productVersionId)
305                    throws com.liferay.portal.kernel.exception.SystemException;
306    
307            /**
308            * @throws SystemException if a system exception occurred
309            */
310            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCProductVersionSCFrameworkVersions(
312                    long productVersionId, int start, int end)
313                    throws com.liferay.portal.kernel.exception.SystemException;
314    
315            /**
316            * @throws SystemException if a system exception occurred
317            */
318            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCProductVersionSCFrameworkVersions(
320                    long productVersionId, int start, int end,
321                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * @throws SystemException if a system exception occurred
326            */
327            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328            public int getSCProductVersionSCFrameworkVersionsCount(
329                    long productVersionId)
330                    throws com.liferay.portal.kernel.exception.SystemException;
331    
332            /**
333            * @throws SystemException if a system exception occurred
334            */
335            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336            public boolean hasSCProductVersionSCFrameworkVersion(
337                    long productVersionId, long frameworkVersionId)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            /**
341            * @throws SystemException if a system exception occurred
342            */
343            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344            public boolean hasSCProductVersionSCFrameworkVersions(long productVersionId)
345                    throws com.liferay.portal.kernel.exception.SystemException;
346    
347            /**
348            * @throws SystemException if a system exception occurred
349            */
350            public void setSCProductVersionSCFrameworkVersions(long productVersionId,
351                    long[] frameworkVersionIds)
352                    throws com.liferay.portal.kernel.exception.SystemException;
353    
354            /**
355            * Returns the Spring bean ID for this bean.
356            *
357            * @return the Spring bean ID for this bean
358            */
359            public java.lang.String getBeanIdentifier();
360    
361            /**
362            * Sets the Spring bean ID for this bean.
363            *
364            * @param beanIdentifier the Spring bean ID for this bean
365            */
366            public void setBeanIdentifier(java.lang.String beanIdentifier);
367    
368            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addFrameworkVersion(
369                    long userId, java.lang.String name, java.lang.String url,
370                    boolean active, int priority,
371                    com.liferay.portal.service.ServiceContext serviceContext)
372                    throws com.liferay.portal.kernel.exception.PortalException,
373                            com.liferay.portal.kernel.exception.SystemException;
374    
375            public void addFrameworkVersionResources(long frameworkVersionId,
376                    boolean addGroupPermissions, boolean addGuestPermissions)
377                    throws com.liferay.portal.kernel.exception.PortalException,
378                            com.liferay.portal.kernel.exception.SystemException;
379    
380            public void addFrameworkVersionResources(long frameworkVersionId,
381                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
382                    throws com.liferay.portal.kernel.exception.PortalException,
383                            com.liferay.portal.kernel.exception.SystemException;
384    
385            public void addFrameworkVersionResources(
386                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
387                    boolean addGroupPermissions, boolean addGuestPermissions)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException;
390    
391            public void addFrameworkVersionResources(
392                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
393                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
394                    throws com.liferay.portal.kernel.exception.PortalException,
395                            com.liferay.portal.kernel.exception.SystemException;
396    
397            public void deleteFrameworkVersion(long frameworkVersionId)
398                    throws com.liferay.portal.kernel.exception.PortalException,
399                            com.liferay.portal.kernel.exception.SystemException;
400    
401            public void deleteFrameworkVersion(
402                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion)
403                    throws com.liferay.portal.kernel.exception.SystemException;
404    
405            public void deleteFrameworkVersions(long groupId)
406                    throws com.liferay.portal.kernel.exception.SystemException;
407    
408            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
409            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getFrameworkVersion(
410                    long frameworkVersionId)
411                    throws com.liferay.portal.kernel.exception.PortalException,
412                            com.liferay.portal.kernel.exception.SystemException;
413    
414            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
416                    long groupId, boolean active)
417                    throws com.liferay.portal.kernel.exception.SystemException;
418    
419            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
420            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
421                    long groupId, boolean active, int start, int end)
422                    throws com.liferay.portal.kernel.exception.SystemException;
423    
424            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
426                    long groupId, int start, int end)
427                    throws com.liferay.portal.kernel.exception.SystemException;
428    
429            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
430            public int getFrameworkVersionsCount(long groupId)
431                    throws com.liferay.portal.kernel.exception.SystemException;
432    
433            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
434            public int getFrameworkVersionsCount(long groupId, boolean active)
435                    throws com.liferay.portal.kernel.exception.SystemException;
436    
437            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
438            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getProductVersionFrameworkVersions(
439                    long productVersionId)
440                    throws com.liferay.portal.kernel.exception.SystemException;
441    
442            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateFrameworkVersion(
443                    long frameworkVersionId, java.lang.String name, java.lang.String url,
444                    boolean active, int priority)
445                    throws com.liferay.portal.kernel.exception.PortalException,
446                            com.liferay.portal.kernel.exception.SystemException;
447    }