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.
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.
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 with the UUID in the group.
193            *
194            * @param uuid the UUID of journal structure
195            * @param groupId the group id of the journal structure
196            * @return the journal structure
197            * @throws PortalException if a journal structure with the UUID in the group 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.
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            * Updates the journal structure in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
252            *
253            * @param journalStructure the journal structure
254            * @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.
255            * @return the journal structure that was updated
256            * @throws SystemException if a system exception occurred
257            */
258            public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
259                    com.liferay.portlet.journal.model.JournalStructure journalStructure,
260                    boolean merge)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    return _journalStructureLocalService.updateJournalStructure(journalStructure,
263                            merge);
264            }
265    
266            /**
267            * Returns the Spring bean ID for this bean.
268            *
269            * @return the Spring bean ID for this bean
270            */
271            public java.lang.String getBeanIdentifier() {
272                    return _journalStructureLocalService.getBeanIdentifier();
273            }
274    
275            /**
276            * Sets the Spring bean ID for this bean.
277            *
278            * @param beanIdentifier the Spring bean ID for this bean
279            */
280            public void setBeanIdentifier(java.lang.String beanIdentifier) {
281                    _journalStructureLocalService.setBeanIdentifier(beanIdentifier);
282            }
283    
284            public com.liferay.portlet.journal.model.JournalStructure addStructure(
285                    long userId, long groupId, java.lang.String structureId,
286                    boolean autoStructureId, java.lang.String parentStructureId,
287                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
288                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
289                    java.lang.String xsd,
290                    com.liferay.portal.service.ServiceContext serviceContext)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException {
293                    return _journalStructureLocalService.addStructure(userId, groupId,
294                            structureId, autoStructureId, parentStructureId, nameMap,
295                            descriptionMap, xsd, serviceContext);
296            }
297    
298            public void addStructureResources(
299                    com.liferay.portlet.journal.model.JournalStructure structure,
300                    boolean addGroupPermissions, boolean addGuestPermissions)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    _journalStructureLocalService.addStructureResources(structure,
304                            addGroupPermissions, addGuestPermissions);
305            }
306    
307            public void addStructureResources(
308                    com.liferay.portlet.journal.model.JournalStructure structure,
309                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    _journalStructureLocalService.addStructureResources(structure,
313                            groupPermissions, guestPermissions);
314            }
315    
316            public void addStructureResources(long groupId,
317                    java.lang.String structureId, boolean addGroupPermissions,
318                    boolean addGuestPermissions)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    _journalStructureLocalService.addStructureResources(groupId,
322                            structureId, addGroupPermissions, addGuestPermissions);
323            }
324    
325            public void addStructureResources(long groupId,
326                    java.lang.String structureId, java.lang.String[] groupPermissions,
327                    java.lang.String[] guestPermissions)
328                    throws com.liferay.portal.kernel.exception.PortalException,
329                            com.liferay.portal.kernel.exception.SystemException {
330                    _journalStructureLocalService.addStructureResources(groupId,
331                            structureId, groupPermissions, guestPermissions);
332            }
333    
334            public void checkNewLine(long groupId, java.lang.String structureId)
335                    throws com.liferay.portal.kernel.exception.PortalException,
336                            com.liferay.portal.kernel.exception.SystemException {
337                    _journalStructureLocalService.checkNewLine(groupId, structureId);
338            }
339    
340            public com.liferay.portlet.journal.model.JournalStructure copyStructure(
341                    long userId, long groupId, java.lang.String oldStructureId,
342                    java.lang.String newStructureId, boolean autoStructureId)
343                    throws com.liferay.portal.kernel.exception.PortalException,
344                            com.liferay.portal.kernel.exception.SystemException {
345                    return _journalStructureLocalService.copyStructure(userId, groupId,
346                            oldStructureId, newStructureId, autoStructureId);
347            }
348    
349            public void deleteStructure(
350                    com.liferay.portlet.journal.model.JournalStructure structure)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    _journalStructureLocalService.deleteStructure(structure);
354            }
355    
356            public void deleteStructure(long groupId, java.lang.String structureId)
357                    throws com.liferay.portal.kernel.exception.PortalException,
358                            com.liferay.portal.kernel.exception.SystemException {
359                    _journalStructureLocalService.deleteStructure(groupId, structureId);
360            }
361    
362            public void deleteStructures(long groupId)
363                    throws com.liferay.portal.kernel.exception.PortalException,
364                            com.liferay.portal.kernel.exception.SystemException {
365                    _journalStructureLocalService.deleteStructures(groupId);
366            }
367    
368            public com.liferay.portlet.journal.model.JournalStructure getStructure(
369                    long id)
370                    throws com.liferay.portal.kernel.exception.PortalException,
371                            com.liferay.portal.kernel.exception.SystemException {
372                    return _journalStructureLocalService.getStructure(id);
373            }
374    
375            public com.liferay.portlet.journal.model.JournalStructure getStructure(
376                    long groupId, java.lang.String structureId)
377                    throws com.liferay.portal.kernel.exception.PortalException,
378                            com.liferay.portal.kernel.exception.SystemException {
379                    return _journalStructureLocalService.getStructure(groupId, structureId);
380            }
381    
382            public com.liferay.portlet.journal.model.JournalStructure getStructure(
383                    long groupId, java.lang.String structureId,
384                    boolean includeGlobalStructures)
385                    throws com.liferay.portal.kernel.exception.PortalException,
386                            com.liferay.portal.kernel.exception.SystemException {
387                    return _journalStructureLocalService.getStructure(groupId, structureId,
388                            includeGlobalStructures);
389            }
390    
391            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return _journalStructureLocalService.getStructures();
394            }
395    
396            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
397                    long groupId)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return _journalStructureLocalService.getStructures(groupId);
400            }
401    
402            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
403                    long groupId, int start, int end)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return _journalStructureLocalService.getStructures(groupId, start, end);
406            }
407    
408            public int getStructuresCount(long groupId)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return _journalStructureLocalService.getStructuresCount(groupId);
411            }
412    
413            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
414                    long companyId, long[] groupIds, java.lang.String keywords, int start,
415                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
416                    throws com.liferay.portal.kernel.exception.SystemException {
417                    return _journalStructureLocalService.search(companyId, groupIds,
418                            keywords, start, end, obc);
419            }
420    
421            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
422                    long companyId, long[] groupIds, java.lang.String structureId,
423                    java.lang.String name, java.lang.String description,
424                    boolean andOperator, int start, int end,
425                    com.liferay.portal.kernel.util.OrderByComparator obc)
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    return _journalStructureLocalService.search(companyId, groupIds,
428                            structureId, name, description, andOperator, start, end, obc);
429            }
430    
431            public int searchCount(long companyId, long[] groupIds,
432                    java.lang.String keywords)
433                    throws com.liferay.portal.kernel.exception.SystemException {
434                    return _journalStructureLocalService.searchCount(companyId, groupIds,
435                            keywords);
436            }
437    
438            public int searchCount(long companyId, long[] groupIds,
439                    java.lang.String structureId, java.lang.String name,
440                    java.lang.String description, boolean andOperator)
441                    throws com.liferay.portal.kernel.exception.SystemException {
442                    return _journalStructureLocalService.searchCount(companyId, groupIds,
443                            structureId, name, description, andOperator);
444            }
445    
446            public com.liferay.portlet.journal.model.JournalStructure updateStructure(
447                    long groupId, java.lang.String structureId,
448                    java.lang.String parentStructureId,
449                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
450                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
451                    java.lang.String xsd,
452                    com.liferay.portal.service.ServiceContext serviceContext)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException {
455                    return _journalStructureLocalService.updateStructure(groupId,
456                            structureId, parentStructureId, nameMap, descriptionMap, xsd,
457                            serviceContext);
458            }
459    
460            /**
461             * @deprecated Renamed to {@link #getWrappedService}
462             */
463            public JournalStructureLocalService getWrappedJournalStructureLocalService() {
464                    return _journalStructureLocalService;
465            }
466    
467            /**
468             * @deprecated Renamed to {@link #setWrappedService}
469             */
470            public void setWrappedJournalStructureLocalService(
471                    JournalStructureLocalService journalStructureLocalService) {
472                    _journalStructureLocalService = journalStructureLocalService;
473            }
474    
475            public JournalStructureLocalService getWrappedService() {
476                    return _journalStructureLocalService;
477            }
478    
479            public void setWrappedService(
480                    JournalStructureLocalService journalStructureLocalService) {
481                    _journalStructureLocalService = journalStructureLocalService;
482            }
483    
484            private JournalStructureLocalService _journalStructureLocalService;
485    }