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.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            * @return the journal structure that was removed
065            * @throws PortalException if a journal structure with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            public com.liferay.portlet.journal.model.JournalStructure deleteJournalStructure(
069                    long id)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _journalStructureLocalService.deleteJournalStructure(id);
073            }
074    
075            /**
076            * Deletes the journal structure from the database. Also notifies the appropriate model listeners.
077            *
078            * @param journalStructure the journal structure
079            * @return the journal structure that was removed
080            * @throws SystemException if a system exception occurred
081            */
082            public com.liferay.portlet.journal.model.JournalStructure deleteJournalStructure(
083                    com.liferay.portlet.journal.model.JournalStructure journalStructure)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _journalStructureLocalService.deleteJournalStructure(journalStructure);
086            }
087    
088            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
089                    return _journalStructureLocalService.dynamicQuery();
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns the matching rows.
094            *
095            * @param dynamicQuery the dynamic query
096            * @return the matching rows
097            * @throws SystemException if a system exception occurred
098            */
099            @SuppressWarnings("rawtypes")
100            public java.util.List dynamicQuery(
101                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return _journalStructureLocalService.dynamicQuery(dynamicQuery);
104            }
105    
106            /**
107            * Performs a dynamic query on the database and returns a range of the matching rows.
108            *
109            * <p>
110            * 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.journal.model.impl.JournalStructureModelImpl}. 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.
111            * </p>
112            *
113            * @param dynamicQuery the dynamic query
114            * @param start the lower bound of the range of model instances
115            * @param end the upper bound of the range of model instances (not inclusive)
116            * @return the range of matching rows
117            * @throws SystemException if a system exception occurred
118            */
119            @SuppressWarnings("rawtypes")
120            public java.util.List dynamicQuery(
121                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122                    int end) throws com.liferay.portal.kernel.exception.SystemException {
123                    return _journalStructureLocalService.dynamicQuery(dynamicQuery, start,
124                            end);
125            }
126    
127            /**
128            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
129            *
130            * <p>
131            * 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.journal.model.impl.JournalStructureModelImpl}. 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.
132            * </p>
133            *
134            * @param dynamicQuery the dynamic query
135            * @param start the lower bound of the range of model instances
136            * @param end the upper bound of the range of model instances (not inclusive)
137            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
138            * @return the ordered range of matching rows
139            * @throws SystemException if a system exception occurred
140            */
141            @SuppressWarnings("rawtypes")
142            public java.util.List dynamicQuery(
143                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
144                    int end,
145                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return _journalStructureLocalService.dynamicQuery(dynamicQuery, start,
148                            end, orderByComparator);
149            }
150    
151            /**
152            * Returns the number of rows that match the dynamic query.
153            *
154            * @param dynamicQuery the dynamic query
155            * @return the number of rows that match the dynamic query
156            * @throws SystemException if a system exception occurred
157            */
158            public long dynamicQueryCount(
159                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return _journalStructureLocalService.dynamicQueryCount(dynamicQuery);
162            }
163    
164            public com.liferay.portlet.journal.model.JournalStructure fetchJournalStructure(
165                    long id) throws com.liferay.portal.kernel.exception.SystemException {
166                    return _journalStructureLocalService.fetchJournalStructure(id);
167            }
168    
169            /**
170            * Returns the journal structure with the primary key.
171            *
172            * @param id the primary key of the journal structure
173            * @return the journal structure
174            * @throws PortalException if a journal structure with the primary key could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.journal.model.JournalStructure getJournalStructure(
178                    long id)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _journalStructureLocalService.getJournalStructure(id);
182            }
183    
184            public com.liferay.portal.model.PersistedModel getPersistedModel(
185                    java.io.Serializable primaryKeyObj)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return _journalStructureLocalService.getPersistedModel(primaryKeyObj);
189            }
190    
191            /**
192            * Returns the journal structure matching the UUID and group.
193            *
194            * @param uuid the journal structure's UUID
195            * @param groupId the primary key of the group
196            * @return the matching journal structure
197            * @throws PortalException if a matching journal structure could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            public com.liferay.portlet.journal.model.JournalStructure getJournalStructureByUuidAndGroupId(
201                    java.lang.String uuid, long groupId)
202                    throws com.liferay.portal.kernel.exception.PortalException,
203                            com.liferay.portal.kernel.exception.SystemException {
204                    return _journalStructureLocalService.getJournalStructureByUuidAndGroupId(uuid,
205                            groupId);
206            }
207    
208            /**
209            * Returns a range of all the journal structures.
210            *
211            * <p>
212            * 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.journal.model.impl.JournalStructureModelImpl}. 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.
213            * </p>
214            *
215            * @param start the lower bound of the range of journal structures
216            * @param end the upper bound of the range of journal structures (not inclusive)
217            * @return the range of journal structures
218            * @throws SystemException if a system exception occurred
219            */
220            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getJournalStructures(
221                    int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _journalStructureLocalService.getJournalStructures(start, end);
224            }
225    
226            /**
227            * Returns the number of journal structures.
228            *
229            * @return the number of journal structures
230            * @throws SystemException if a system exception occurred
231            */
232            public int getJournalStructuresCount()
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return _journalStructureLocalService.getJournalStructuresCount();
235            }
236    
237            /**
238            * Updates the journal structure in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
239            *
240            * @param journalStructure the journal structure
241            * @return the journal structure that was updated
242            * @throws SystemException if a system exception occurred
243            */
244            public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
245                    com.liferay.portlet.journal.model.JournalStructure journalStructure)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return _journalStructureLocalService.updateJournalStructure(journalStructure);
248            }
249    
250            /**
251            * Returns the Spring bean ID for this bean.
252            *
253            * @return the Spring bean ID for this bean
254            */
255            public java.lang.String getBeanIdentifier() {
256                    return _journalStructureLocalService.getBeanIdentifier();
257            }
258    
259            /**
260            * Sets the Spring bean ID for this bean.
261            *
262            * @param beanIdentifier the Spring bean ID for this bean
263            */
264            public void setBeanIdentifier(java.lang.String beanIdentifier) {
265                    _journalStructureLocalService.setBeanIdentifier(beanIdentifier);
266            }
267    
268            public com.liferay.portlet.journal.model.JournalStructure addStructure(
269                    long userId, long groupId, java.lang.String structureId,
270                    boolean autoStructureId, java.lang.String parentStructureId,
271                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
272                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
273                    java.lang.String xsd,
274                    com.liferay.portal.service.ServiceContext serviceContext)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    return _journalStructureLocalService.addStructure(userId, groupId,
278                            structureId, autoStructureId, parentStructureId, nameMap,
279                            descriptionMap, xsd, serviceContext);
280            }
281    
282            public void addStructureResources(
283                    com.liferay.portlet.journal.model.JournalStructure structure,
284                    boolean addGroupPermissions, boolean addGuestPermissions)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    _journalStructureLocalService.addStructureResources(structure,
288                            addGroupPermissions, addGuestPermissions);
289            }
290    
291            public void addStructureResources(
292                    com.liferay.portlet.journal.model.JournalStructure structure,
293                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    _journalStructureLocalService.addStructureResources(structure,
297                            groupPermissions, guestPermissions);
298            }
299    
300            public void addStructureResources(long groupId,
301                    java.lang.String structureId, boolean addGroupPermissions,
302                    boolean addGuestPermissions)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    _journalStructureLocalService.addStructureResources(groupId,
306                            structureId, addGroupPermissions, addGuestPermissions);
307            }
308    
309            public void addStructureResources(long groupId,
310                    java.lang.String structureId, java.lang.String[] groupPermissions,
311                    java.lang.String[] guestPermissions)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    _journalStructureLocalService.addStructureResources(groupId,
315                            structureId, groupPermissions, guestPermissions);
316            }
317    
318            public void checkNewLine(long groupId, java.lang.String structureId)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    _journalStructureLocalService.checkNewLine(groupId, structureId);
322            }
323    
324            public com.liferay.portlet.journal.model.JournalStructure copyStructure(
325                    long userId, long groupId, java.lang.String oldStructureId,
326                    java.lang.String newStructureId, boolean autoStructureId)
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    return _journalStructureLocalService.copyStructure(userId, groupId,
330                            oldStructureId, newStructureId, autoStructureId);
331            }
332    
333            public void deleteStructure(
334                    com.liferay.portlet.journal.model.JournalStructure structure)
335                    throws com.liferay.portal.kernel.exception.PortalException,
336                            com.liferay.portal.kernel.exception.SystemException {
337                    _journalStructureLocalService.deleteStructure(structure);
338            }
339    
340            public void deleteStructure(long groupId, java.lang.String structureId)
341                    throws com.liferay.portal.kernel.exception.PortalException,
342                            com.liferay.portal.kernel.exception.SystemException {
343                    _journalStructureLocalService.deleteStructure(groupId, structureId);
344            }
345    
346            public void deleteStructures(long groupId)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    _journalStructureLocalService.deleteStructures(groupId);
350            }
351    
352            public com.liferay.portlet.journal.model.JournalStructure getStructure(
353                    long id)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException {
356                    return _journalStructureLocalService.getStructure(id);
357            }
358    
359            public com.liferay.portlet.journal.model.JournalStructure getStructure(
360                    long groupId, java.lang.String structureId)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    return _journalStructureLocalService.getStructure(groupId, structureId);
364            }
365    
366            public com.liferay.portlet.journal.model.JournalStructure getStructure(
367                    long groupId, java.lang.String structureId,
368                    boolean includeGlobalStructures)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException {
371                    return _journalStructureLocalService.getStructure(groupId, structureId,
372                            includeGlobalStructures);
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 As of 6.1.0, replaced by {@link #getWrappedService}
446             */
447            public JournalStructureLocalService getWrappedJournalStructureLocalService() {
448                    return _journalStructureLocalService;
449            }
450    
451            /**
452             * @deprecated As of 6.1.0, replaced by {@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    }