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