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