001    /**
002     * Copyright (c) 2000-2012 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.journal.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link JournalStructureLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       JournalStructureLocalService
026     * @generated
027     */
028    public class JournalStructureLocalServiceWrapper
029            implements JournalStructureLocalService,
030                    ServiceWrapper<JournalStructureLocalService> {
031            public JournalStructureLocalServiceWrapper(
032                    JournalStructureLocalService journalStructureLocalService) {
033                    _journalStructureLocalService = journalStructureLocalService;
034            }
035    
036            /**
037            * Adds the journal structure to the database. Also notifies the appropriate model listeners.
038            *
039            * @param journalStructure the journal structure
040            * @return the journal structure that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
044                    com.liferay.portlet.journal.model.JournalStructure journalStructure)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _journalStructureLocalService.addJournalStructure(journalStructure);
047            }
048    
049            /**
050            * Creates a new journal structure with the primary key. Does not add the journal structure to the database.
051            *
052            * @param id the primary key for the new journal structure
053            * @return the new journal structure
054            */
055            public com.liferay.portlet.journal.model.JournalStructure createJournalStructure(
056                    long id) {
057                    return _journalStructureLocalService.createJournalStructure(id);
058            }
059    
060            /**
061            * Deletes the journal structure with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param id the primary key of the journal structure
064            * @throws PortalException if a journal structure with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public void deleteJournalStructure(long id)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    _journalStructureLocalService.deleteJournalStructure(id);
071            }
072    
073            /**
074            * Deletes the journal structure from the database. Also notifies the appropriate model listeners.
075            *
076            * @param journalStructure the journal structure
077            * @throws SystemException if a system exception occurred
078            */
079            public void deleteJournalStructure(
080                    com.liferay.portlet.journal.model.JournalStructure journalStructure)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    _journalStructureLocalService.deleteJournalStructure(journalStructure);
083            }
084    
085            /**
086            * Performs a dynamic query on the database and returns the matching rows.
087            *
088            * @param dynamicQuery the dynamic query
089            * @return the matching rows
090            * @throws SystemException if a system exception occurred
091            */
092            @SuppressWarnings("rawtypes")
093            public java.util.List dynamicQuery(
094                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return _journalStructureLocalService.dynamicQuery(dynamicQuery);
097            }
098    
099            /**
100            * Performs a dynamic query on the database and returns a range of the matching rows.
101            *
102            * <p>
103            * 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.
104            * </p>
105            *
106            * @param dynamicQuery the dynamic query
107            * @param start the lower bound of the range of model instances
108            * @param end the upper bound of the range of model instances (not inclusive)
109            * @return the range of matching rows
110            * @throws SystemException if a system exception occurred
111            */
112            @SuppressWarnings("rawtypes")
113            public java.util.List dynamicQuery(
114                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115                    int end) throws com.liferay.portal.kernel.exception.SystemException {
116                    return _journalStructureLocalService.dynamicQuery(dynamicQuery, start,
117                            end);
118            }
119    
120            /**
121            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
122            *
123            * <p>
124            * 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.
125            * </p>
126            *
127            * @param dynamicQuery the dynamic query
128            * @param start the lower bound of the range of model instances
129            * @param end the upper bound of the range of model instances (not inclusive)
130            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
131            * @return the ordered range of matching rows
132            * @throws SystemException if a system exception occurred
133            */
134            @SuppressWarnings("rawtypes")
135            public java.util.List dynamicQuery(
136                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137                    int end,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException {
140                    return _journalStructureLocalService.dynamicQuery(dynamicQuery, start,
141                            end, orderByComparator);
142            }
143    
144            /**
145            * Returns the number of rows that match the dynamic query.
146            *
147            * @param dynamicQuery the dynamic query
148            * @return the number of rows that match the dynamic query
149            * @throws SystemException if a system exception occurred
150            */
151            public long dynamicQueryCount(
152                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return _journalStructureLocalService.dynamicQueryCount(dynamicQuery);
155            }
156    
157            public com.liferay.portlet.journal.model.JournalStructure fetchJournalStructure(
158                    long id) throws com.liferay.portal.kernel.exception.SystemException {
159                    return _journalStructureLocalService.fetchJournalStructure(id);
160            }
161    
162            /**
163            * Returns the journal structure with the primary key.
164            *
165            * @param id the primary key of the journal structure
166            * @return the journal structure
167            * @throws PortalException if a journal structure with the primary key could not be found
168            * @throws SystemException if a system exception occurred
169            */
170            public com.liferay.portlet.journal.model.JournalStructure getJournalStructure(
171                    long id)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return _journalStructureLocalService.getJournalStructure(id);
175            }
176    
177            public com.liferay.portal.model.PersistedModel getPersistedModel(
178                    java.io.Serializable primaryKeyObj)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _journalStructureLocalService.getPersistedModel(primaryKeyObj);
182            }
183    
184            /**
185            * Returns the journal structure with the UUID in the group.
186            *
187            * @param uuid the UUID of journal structure
188            * @param groupId the group id of the journal structure
189            * @return the journal structure
190            * @throws PortalException if a journal structure with the UUID in the group could not be found
191            * @throws SystemException if a system exception occurred
192            */
193            public com.liferay.portlet.journal.model.JournalStructure getJournalStructureByUuidAndGroupId(
194                    java.lang.String uuid, long groupId)
195                    throws com.liferay.portal.kernel.exception.PortalException,
196                            com.liferay.portal.kernel.exception.SystemException {
197                    return _journalStructureLocalService.getJournalStructureByUuidAndGroupId(uuid,
198                            groupId);
199            }
200    
201            /**
202            * Returns a range of all the journal structures.
203            *
204            * <p>
205            * 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.
206            * </p>
207            *
208            * @param start the lower bound of the range of journal structures
209            * @param end the upper bound of the range of journal structures (not inclusive)
210            * @return the range of journal structures
211            * @throws SystemException if a system exception occurred
212            */
213            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getJournalStructures(
214                    int start, int end)
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _journalStructureLocalService.getJournalStructures(start, end);
217            }
218    
219            /**
220            * Returns the number of journal structures.
221            *
222            * @return the number of journal structures
223            * @throws SystemException if a system exception occurred
224            */
225            public int getJournalStructuresCount()
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return _journalStructureLocalService.getJournalStructuresCount();
228            }
229    
230            /**
231            * Updates the journal structure in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
232            *
233            * @param journalStructure the journal structure
234            * @return the journal structure that was updated
235            * @throws SystemException if a system exception occurred
236            */
237            public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
238                    com.liferay.portlet.journal.model.JournalStructure journalStructure)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return _journalStructureLocalService.updateJournalStructure(journalStructure);
241            }
242    
243            /**
244            * Updates the journal structure in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
245            *
246            * @param journalStructure the journal structure
247            * @param merge whether to merge the journal structure with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
248            * @return the journal structure that was updated
249            * @throws SystemException if a system exception occurred
250            */
251            public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
252                    com.liferay.portlet.journal.model.JournalStructure journalStructure,
253                    boolean merge)
254                    throws com.liferay.portal.kernel.exception.SystemException {
255                    return _journalStructureLocalService.updateJournalStructure(journalStructure,
256                            merge);
257            }
258    
259            /**
260            * Returns the Spring bean ID for this bean.
261            *
262            * @return the Spring bean ID for this bean
263            */
264            public java.lang.String getBeanIdentifier() {
265                    return _journalStructureLocalService.getBeanIdentifier();
266            }
267    
268            /**
269            * Sets the Spring bean ID for this bean.
270            *
271            * @param beanIdentifier the Spring bean ID for this bean
272            */
273            public void setBeanIdentifier(java.lang.String beanIdentifier) {
274                    _journalStructureLocalService.setBeanIdentifier(beanIdentifier);
275            }
276    
277            public com.liferay.portlet.journal.model.JournalStructure addStructure(
278                    long userId, long groupId, java.lang.String structureId,
279                    boolean autoStructureId, java.lang.String parentStructureId,
280                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
281                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
282                    java.lang.String xsd,
283                    com.liferay.portal.service.ServiceContext serviceContext)
284                    throws com.liferay.portal.kernel.exception.PortalException,
285                            com.liferay.portal.kernel.exception.SystemException {
286                    return _journalStructureLocalService.addStructure(userId, groupId,
287                            structureId, autoStructureId, parentStructureId, nameMap,
288                            descriptionMap, xsd, serviceContext);
289            }
290    
291            public void addStructureResources(
292                    com.liferay.portlet.journal.model.JournalStructure structure,
293                    boolean addGroupPermissions, boolean addGuestPermissions)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    _journalStructureLocalService.addStructureResources(structure,
297                            addGroupPermissions, addGuestPermissions);
298            }
299    
300            public void addStructureResources(
301                    com.liferay.portlet.journal.model.JournalStructure structure,
302                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    _journalStructureLocalService.addStructureResources(structure,
306                            groupPermissions, guestPermissions);
307            }
308    
309            public void addStructureResources(long groupId,
310                    java.lang.String structureId, boolean addGroupPermissions,
311                    boolean addGuestPermissions)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    _journalStructureLocalService.addStructureResources(groupId,
315                            structureId, addGroupPermissions, addGuestPermissions);
316            }
317    
318            public void addStructureResources(long groupId,
319                    java.lang.String structureId, java.lang.String[] groupPermissions,
320                    java.lang.String[] guestPermissions)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException {
323                    _journalStructureLocalService.addStructureResources(groupId,
324                            structureId, groupPermissions, guestPermissions);
325            }
326    
327            public void checkNewLine(long groupId, java.lang.String structureId)
328                    throws com.liferay.portal.kernel.exception.PortalException,
329                            com.liferay.portal.kernel.exception.SystemException {
330                    _journalStructureLocalService.checkNewLine(groupId, structureId);
331            }
332    
333            public com.liferay.portlet.journal.model.JournalStructure copyStructure(
334                    long userId, long groupId, java.lang.String oldStructureId,
335                    java.lang.String newStructureId, boolean autoStructureId)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    return _journalStructureLocalService.copyStructure(userId, groupId,
339                            oldStructureId, newStructureId, autoStructureId);
340            }
341    
342            public void deleteStructure(
343                    com.liferay.portlet.journal.model.JournalStructure structure)
344                    throws com.liferay.portal.kernel.exception.PortalException,
345                            com.liferay.portal.kernel.exception.SystemException {
346                    _journalStructureLocalService.deleteStructure(structure);
347            }
348    
349            public void deleteStructure(long groupId, java.lang.String structureId)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException {
352                    _journalStructureLocalService.deleteStructure(groupId, structureId);
353            }
354    
355            public void deleteStructures(long groupId)
356                    throws com.liferay.portal.kernel.exception.PortalException,
357                            com.liferay.portal.kernel.exception.SystemException {
358                    _journalStructureLocalService.deleteStructures(groupId);
359            }
360    
361            public com.liferay.portlet.journal.model.JournalStructure getStructure(
362                    long id)
363                    throws com.liferay.portal.kernel.exception.PortalException,
364                            com.liferay.portal.kernel.exception.SystemException {
365                    return _journalStructureLocalService.getStructure(id);
366            }
367    
368            public com.liferay.portlet.journal.model.JournalStructure getStructure(
369                    long groupId, java.lang.String structureId)
370                    throws com.liferay.portal.kernel.exception.PortalException,
371                            com.liferay.portal.kernel.exception.SystemException {
372                    return _journalStructureLocalService.getStructure(groupId, structureId);
373            }
374    
375            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
376                    throws com.liferay.portal.kernel.exception.SystemException {
377                    return _journalStructureLocalService.getStructures();
378            }
379    
380            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
381                    long groupId)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    return _journalStructureLocalService.getStructures(groupId);
384            }
385    
386            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
387                    long groupId, int start, int end)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _journalStructureLocalService.getStructures(groupId, start, end);
390            }
391    
392            public int getStructuresCount(long groupId)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    return _journalStructureLocalService.getStructuresCount(groupId);
395            }
396    
397            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
398                    long companyId, long[] groupIds, java.lang.String keywords, int start,
399                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return _journalStructureLocalService.search(companyId, groupIds,
402                            keywords, start, end, obc);
403            }
404    
405            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
406                    long companyId, long[] groupIds, java.lang.String structureId,
407                    java.lang.String name, java.lang.String description,
408                    boolean andOperator, int start, int end,
409                    com.liferay.portal.kernel.util.OrderByComparator obc)
410                    throws com.liferay.portal.kernel.exception.SystemException {
411                    return _journalStructureLocalService.search(companyId, groupIds,
412                            structureId, name, description, andOperator, start, end, obc);
413            }
414    
415            public int searchCount(long companyId, long[] groupIds,
416                    java.lang.String keywords)
417                    throws com.liferay.portal.kernel.exception.SystemException {
418                    return _journalStructureLocalService.searchCount(companyId, groupIds,
419                            keywords);
420            }
421    
422            public int searchCount(long companyId, long[] groupIds,
423                    java.lang.String structureId, java.lang.String name,
424                    java.lang.String description, boolean andOperator)
425                    throws com.liferay.portal.kernel.exception.SystemException {
426                    return _journalStructureLocalService.searchCount(companyId, groupIds,
427                            structureId, name, description, andOperator);
428            }
429    
430            public com.liferay.portlet.journal.model.JournalStructure updateStructure(
431                    long groupId, java.lang.String structureId,
432                    java.lang.String parentStructureId,
433                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
434                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
435                    java.lang.String xsd,
436                    com.liferay.portal.service.ServiceContext serviceContext)
437                    throws com.liferay.portal.kernel.exception.PortalException,
438                            com.liferay.portal.kernel.exception.SystemException {
439                    return _journalStructureLocalService.updateStructure(groupId,
440                            structureId, parentStructureId, nameMap, descriptionMap, xsd,
441                            serviceContext);
442            }
443    
444            /**
445             * @deprecated Renamed to {@link #getWrappedService}
446             */
447            public JournalStructureLocalService getWrappedJournalStructureLocalService() {
448                    return _journalStructureLocalService;
449            }
450    
451            /**
452             * @deprecated Renamed to {@link #setWrappedService}
453             */
454            public void setWrappedJournalStructureLocalService(
455                    JournalStructureLocalService journalStructureLocalService) {
456                    _journalStructureLocalService = journalStructureLocalService;
457            }
458    
459            public JournalStructureLocalService getWrappedService() {
460                    return _journalStructureLocalService;
461            }
462    
463            public void setWrappedService(
464                    JournalStructureLocalService journalStructureLocalService) {
465                    _journalStructureLocalService = journalStructureLocalService;
466            }
467    
468            private JournalStructureLocalService _journalStructureLocalService;
469    }