001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.lang.String name, java.lang.String description,
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, name, description,
279                            xsd, serviceContext);
280            }
281    
282            public void addStructureResources(
283                    com.liferay.portlet.journal.model.JournalStructure structure,
284                    boolean addCommunityPermissions, boolean addGuestPermissions)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    _journalStructureLocalService.addStructureResources(structure,
288                            addCommunityPermissions, addGuestPermissions);
289            }
290    
291            public void addStructureResources(
292                    com.liferay.portlet.journal.model.JournalStructure structure,
293                    java.lang.String[] communityPermissions,
294                    java.lang.String[] guestPermissions)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    _journalStructureLocalService.addStructureResources(structure,
298                            communityPermissions, guestPermissions);
299            }
300    
301            public void addStructureResources(long groupId,
302                    java.lang.String structureId, boolean addCommunityPermissions,
303                    boolean addGuestPermissions)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    _journalStructureLocalService.addStructureResources(groupId,
307                            structureId, addCommunityPermissions, addGuestPermissions);
308            }
309    
310            public void addStructureResources(long groupId,
311                    java.lang.String structureId, java.lang.String[] communityPermissions,
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, communityPermissions, 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            /**
390            * @deprecated {@link #search(long, long[], String, int, int,
391            OrderByComparator)}
392            */
393            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
394                    long companyId, long groupId, java.lang.String keywords, int start,
395                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
396                    throws com.liferay.portal.kernel.exception.SystemException {
397                    return _journalStructureLocalService.search(companyId, groupId,
398                            keywords, start, end, obc);
399            }
400    
401            /**
402            * @deprecated {@link #search(long, long[], String, String, String, boolean,
403            int, int, OrderByComparator)}
404            */
405            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
406                    long companyId, long groupId, 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, groupId,
412                            structureId, name, description, andOperator, start, end, obc);
413            }
414    
415            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
416                    long companyId, long[] groupIds, java.lang.String keywords, int start,
417                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    return _journalStructureLocalService.search(companyId, groupIds,
420                            keywords, start, end, obc);
421            }
422    
423            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
424                    long companyId, long[] groupIds, java.lang.String structureId,
425                    java.lang.String name, java.lang.String description,
426                    boolean andOperator, int start, int end,
427                    com.liferay.portal.kernel.util.OrderByComparator obc)
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    return _journalStructureLocalService.search(companyId, groupIds,
430                            structureId, name, description, andOperator, start, end, obc);
431            }
432    
433            /**
434            * @deprecated {@link #searchCount(long, long[], String)}
435            */
436            public int searchCount(long companyId, long groupId,
437                    java.lang.String keywords)
438                    throws com.liferay.portal.kernel.exception.SystemException {
439                    return _journalStructureLocalService.searchCount(companyId, groupId,
440                            keywords);
441            }
442    
443            /**
444            * @deprecated {@link #searchCount(long, long[], String, String, String,
445            boolean)}
446            */
447            public int searchCount(long companyId, long groupId,
448                    java.lang.String structureId, java.lang.String name,
449                    java.lang.String description, boolean andOperator)
450                    throws com.liferay.portal.kernel.exception.SystemException {
451                    return _journalStructureLocalService.searchCount(companyId, groupId,
452                            structureId, name, description, andOperator);
453            }
454    
455            public int searchCount(long companyId, long[] groupIds,
456                    java.lang.String keywords)
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    return _journalStructureLocalService.searchCount(companyId, groupIds,
459                            keywords);
460            }
461    
462            public int searchCount(long companyId, long[] groupIds,
463                    java.lang.String structureId, java.lang.String name,
464                    java.lang.String description, boolean andOperator)
465                    throws com.liferay.portal.kernel.exception.SystemException {
466                    return _journalStructureLocalService.searchCount(companyId, groupIds,
467                            structureId, name, description, andOperator);
468            }
469    
470            public com.liferay.portlet.journal.model.JournalStructure updateStructure(
471                    long groupId, java.lang.String structureId,
472                    java.lang.String parentStructureId, java.lang.String name,
473                    java.lang.String description, java.lang.String xsd,
474                    com.liferay.portal.service.ServiceContext serviceContext)
475                    throws com.liferay.portal.kernel.exception.PortalException,
476                            com.liferay.portal.kernel.exception.SystemException {
477                    return _journalStructureLocalService.updateStructure(groupId,
478                            structureId, parentStructureId, name, description, xsd,
479                            serviceContext);
480            }
481    
482            public JournalStructureLocalService getWrappedJournalStructureLocalService() {
483                    return _journalStructureLocalService;
484            }
485    
486            public void setWrappedJournalStructureLocalService(
487                    JournalStructureLocalService journalStructureLocalService) {
488                    _journalStructureLocalService = journalStructureLocalService;
489            }
490    
491            private JournalStructureLocalService _journalStructureLocalService;
492    }