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 PortalException;
055    
056            public void addFrameworkVersionResources(
057                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
058                    boolean addGroupPermissions, boolean addGuestPermissions)
059                    throws PortalException;
060    
061            public void addFrameworkVersionResources(
062                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
063                    com.liferay.portal.service.permission.ModelPermissions modelPermissions)
064                    throws PortalException;
065    
066            public void addFrameworkVersionResources(long frameworkVersionId,
067                    boolean addGroupPermissions, boolean addGuestPermissions)
068                    throws PortalException;
069    
070            public void addFrameworkVersionResources(long frameworkVersionId,
071                    com.liferay.portal.service.permission.ModelPermissions modelPermissions)
072                    throws 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 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 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) throws PortalException;
133    
134            /**
135            * Deletes the s c framework version from the database. Also notifies the appropriate model listeners.
136            *
137            * @param scFrameworkVersion the s c framework version
138            * @return the s c framework version that was removed
139            */
140            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
141            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion deleteSCFrameworkVersion(
142                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion);
143    
144            public void deleteSCProductVersionSCFrameworkVersion(
145                    long productVersionId, long frameworkVersionId);
146    
147            public void deleteSCProductVersionSCFrameworkVersion(
148                    long productVersionId,
149                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion);
150    
151            public void deleteSCProductVersionSCFrameworkVersions(
152                    long productVersionId,
153                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> SCFrameworkVersions);
154    
155            public void deleteSCProductVersionSCFrameworkVersions(
156                    long productVersionId, long[] frameworkVersionIds);
157    
158            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
159    
160            /**
161            * Performs a dynamic query on the database and returns the matching rows.
162            *
163            * @param dynamicQuery the dynamic query
164            * @return the matching rows
165            */
166            public <T> java.util.List<T> dynamicQuery(
167                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
168    
169            /**
170            * Performs a dynamic query on the database and returns a range of the matching rows.
171            *
172            * <p>
173            * 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.
174            * </p>
175            *
176            * @param dynamicQuery the dynamic query
177            * @param start the lower bound of the range of model instances
178            * @param end the upper bound of the range of model instances (not inclusive)
179            * @return the range of matching rows
180            */
181            public <T> java.util.List<T> dynamicQuery(
182                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
183                    int end);
184    
185            /**
186            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
187            *
188            * <p>
189            * 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.
190            * </p>
191            *
192            * @param dynamicQuery the dynamic query
193            * @param start the lower bound of the range of model instances
194            * @param end the upper bound of the range of model instances (not inclusive)
195            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
196            * @return the ordered range of matching rows
197            */
198            public <T> java.util.List<T> dynamicQuery(
199                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
200                    int end,
201                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
202    
203            /**
204            * Returns the number of rows matching the dynamic query.
205            *
206            * @param dynamicQuery the dynamic query
207            * @return the number of rows matching the dynamic query
208            */
209            public long dynamicQueryCount(
210                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
211    
212            /**
213            * Returns the number of rows matching the dynamic query.
214            *
215            * @param dynamicQuery the dynamic query
216            * @param projection the projection to apply to the query
217            * @return the number of rows matching the dynamic query
218            */
219            public long dynamicQueryCount(
220                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
221                    com.liferay.portal.kernel.dao.orm.Projection projection);
222    
223            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchSCFrameworkVersion(
225                    long frameworkVersionId);
226    
227            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
229    
230            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getFrameworkVersion(
232                    long frameworkVersionId) throws PortalException;
233    
234            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
235            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
236                    long groupId, boolean active);
237    
238            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
240                    long groupId, boolean active, int start, int end);
241    
242            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
244                    long groupId, int start, int end);
245    
246            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247            public int getFrameworkVersionsCount(long groupId);
248    
249            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250            public int getFrameworkVersionsCount(long groupId, boolean active);
251    
252            /**
253            * Returns the OSGi service identifier.
254            *
255            * @return the OSGi service identifier
256            */
257            public java.lang.String getOSGiServiceIdentifier();
258    
259            @Override
260            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261            public com.liferay.portal.model.PersistedModel getPersistedModel(
262                    java.io.Serializable primaryKeyObj) throws PortalException;
263    
264            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getProductVersionFrameworkVersions(
266                    long productVersionId);
267    
268            /**
269            * Returns the s c framework version with the primary key.
270            *
271            * @param frameworkVersionId the primary key of the s c framework version
272            * @return the s c framework version
273            * @throws PortalException if a s c framework version with the primary key could not be found
274            */
275            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getSCFrameworkVersion(
277                    long frameworkVersionId) throws PortalException;
278    
279            /**
280            * Returns a range of all the s c framework versions.
281            *
282            * <p>
283            * 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.
284            * </p>
285            *
286            * @param start the lower bound of the range of s c framework versions
287            * @param end the upper bound of the range of s c framework versions (not inclusive)
288            * @return the range of s c framework versions
289            */
290            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
291            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
292                    int start, int end);
293    
294            /**
295            * Returns the number of s c framework versions.
296            *
297            * @return the number of s c framework versions
298            */
299            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300            public int getSCFrameworkVersionsCount();
301    
302            /**
303            * Returns the productVersionIds of the s c product versions associated with the s c framework version.
304            *
305            * @param frameworkVersionId the frameworkVersionId of the s c framework version
306            * @return long[] the productVersionIds of s c product versions associated with the s c framework version
307            */
308            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309            public long[] getSCProductVersionPrimaryKeys(long frameworkVersionId);
310    
311            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCProductVersionSCFrameworkVersions(
313                    long productVersionId);
314    
315            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCProductVersionSCFrameworkVersions(
317                    long productVersionId, int start, int end);
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                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> orderByComparator);
323    
324            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325            public int getSCProductVersionSCFrameworkVersionsCount(
326                    long productVersionId);
327    
328            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329            public boolean hasSCProductVersionSCFrameworkVersion(
330                    long productVersionId, long frameworkVersionId);
331    
332            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333            public boolean hasSCProductVersionSCFrameworkVersions(long productVersionId);
334    
335            public void setSCProductVersionSCFrameworkVersions(long productVersionId,
336                    long[] frameworkVersionIds);
337    
338            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateFrameworkVersion(
339                    long frameworkVersionId, java.lang.String name, java.lang.String url,
340                    boolean active, int priority) throws PortalException;
341    
342            /**
343            * Updates the s c framework version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
344            *
345            * @param scFrameworkVersion the s c framework version
346            * @return the s c framework version that was updated
347            */
348            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
349            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateSCFrameworkVersion(
350                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion);
351    }