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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link JournalStructureLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see JournalStructureLocalService
026     * @deprecated As of 6.2.0, since Web Content Administration now uses the
027    Dynamic Data Mapping framework to handle structures
028     * @generated
029     */
030    @ProviderType
031    public class JournalStructureLocalServiceWrapper
032            implements JournalStructureLocalService,
033                    ServiceWrapper<JournalStructureLocalService> {
034            public JournalStructureLocalServiceWrapper(
035                    JournalStructureLocalService journalStructureLocalService) {
036                    _journalStructureLocalService = journalStructureLocalService;
037            }
038    
039            /**
040            * Returns the Spring bean ID for this bean.
041            *
042            * @return the Spring bean ID for this bean
043            */
044            @Override
045            public java.lang.String getBeanIdentifier() {
046                    return _journalStructureLocalService.getBeanIdentifier();
047            }
048    
049            /**
050            * Sets the Spring bean ID for this bean.
051            *
052            * @param beanIdentifier the Spring bean ID for this bean
053            */
054            @Override
055            public void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    _journalStructureLocalService.setBeanIdentifier(beanIdentifier);
057            }
058    
059            @Override
060            public com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
061                    com.liferay.portlet.journal.model.JournalStructure structure)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    return _journalStructureLocalService.addJournalStructure(structure);
065            }
066    
067            @Override
068            public com.liferay.portlet.journal.model.JournalStructure addStructure(
069                    long userId, long groupId, java.lang.String structureId,
070                    boolean autoStructureId, java.lang.String parentStructureId,
071                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
072                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
073                    java.lang.String xsd,
074                    com.liferay.portal.service.ServiceContext serviceContext)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    return _journalStructureLocalService.addStructure(userId, groupId,
078                            structureId, autoStructureId, parentStructureId, nameMap,
079                            descriptionMap, xsd, serviceContext);
080            }
081    
082            @Override
083            public void addStructureResources(
084                    com.liferay.portlet.journal.model.JournalStructure structure,
085                    boolean addGroupPermissions, boolean addGuestPermissions)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException {
088                    _journalStructureLocalService.addStructureResources(structure,
089                            addGroupPermissions, addGuestPermissions);
090            }
091    
092            @Override
093            public void addStructureResources(
094                    com.liferay.portlet.journal.model.JournalStructure structure,
095                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException {
098                    _journalStructureLocalService.addStructureResources(structure,
099                            groupPermissions, guestPermissions);
100            }
101    
102            @Override
103            public void addStructureResources(long groupId,
104                    java.lang.String structureId, boolean addGroupPermissions,
105                    boolean addGuestPermissions)
106                    throws com.liferay.portal.kernel.exception.PortalException,
107                            com.liferay.portal.kernel.exception.SystemException {
108                    _journalStructureLocalService.addStructureResources(groupId,
109                            structureId, addGroupPermissions, addGuestPermissions);
110            }
111    
112            @Override
113            public void addStructureResources(long groupId,
114                    java.lang.String structureId, java.lang.String[] groupPermissions,
115                    java.lang.String[] guestPermissions)
116                    throws com.liferay.portal.kernel.exception.PortalException,
117                            com.liferay.portal.kernel.exception.SystemException {
118                    _journalStructureLocalService.addStructureResources(groupId,
119                            structureId, groupPermissions, guestPermissions);
120            }
121    
122            @Override
123            public void checkNewLine(long groupId, java.lang.String structureId)
124                    throws com.liferay.portal.kernel.exception.PortalException,
125                            com.liferay.portal.kernel.exception.SystemException {
126                    _journalStructureLocalService.checkNewLine(groupId, structureId);
127            }
128    
129            @Override
130            public com.liferay.portlet.journal.model.JournalStructure copyStructure(
131                    long userId, long groupId, java.lang.String oldStructureId,
132                    java.lang.String newStructureId, boolean autoStructureId)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException {
135                    return _journalStructureLocalService.copyStructure(userId, groupId,
136                            oldStructureId, newStructureId, autoStructureId);
137            }
138    
139            @Override
140            public com.liferay.portlet.journal.model.JournalStructure createJournalStructure(
141                    long id) throws com.liferay.portal.kernel.exception.SystemException {
142                    return _journalStructureLocalService.createJournalStructure(id);
143            }
144    
145            @Override
146            public void deleteStructure(
147                    com.liferay.portlet.journal.model.JournalStructure structure)
148                    throws com.liferay.portal.kernel.exception.PortalException,
149                            com.liferay.portal.kernel.exception.SystemException {
150                    _journalStructureLocalService.deleteStructure(structure);
151            }
152    
153            @Override
154            public void deleteStructure(long groupId, java.lang.String structureId)
155                    throws com.liferay.portal.kernel.exception.PortalException,
156                            com.liferay.portal.kernel.exception.SystemException {
157                    _journalStructureLocalService.deleteStructure(groupId, structureId);
158            }
159    
160            @Override
161            public void deleteStructures(long groupId)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    _journalStructureLocalService.deleteStructures(groupId);
165            }
166    
167            @Override
168            public com.liferay.portlet.journal.model.JournalStructure fetchStructure(
169                    long groupId, java.lang.String structureId)
170                    throws com.liferay.portal.kernel.exception.SystemException {
171                    return _journalStructureLocalService.fetchStructure(groupId, structureId);
172            }
173    
174            @Override
175            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
176                    throws com.liferay.portal.kernel.exception.SystemException {
177                    return _journalStructureLocalService.findAll();
178            }
179    
180            @Override
181            public com.liferay.portlet.journal.model.JournalStructure getStructure(
182                    long groupId, java.lang.String structureId)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException {
185                    return _journalStructureLocalService.getStructure(groupId, structureId);
186            }
187    
188            @Override
189            public com.liferay.portlet.journal.model.JournalStructure getStructure(
190                    long groupId, java.lang.String structureId,
191                    boolean includeGlobalStructures)
192                    throws com.liferay.portal.kernel.exception.PortalException,
193                            com.liferay.portal.kernel.exception.SystemException {
194                    return _journalStructureLocalService.getStructure(groupId, structureId,
195                            includeGlobalStructures);
196            }
197    
198            @Override
199            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return _journalStructureLocalService.getStructures();
202            }
203    
204            @Override
205            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
206                    long groupId)
207                    throws com.liferay.portal.kernel.exception.SystemException {
208                    return _journalStructureLocalService.getStructures(groupId);
209            }
210    
211            @Override
212            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
213                    long groupId, int start, int end)
214                    throws com.liferay.portal.kernel.exception.SystemException {
215                    return _journalStructureLocalService.getStructures(groupId, start, end);
216            }
217    
218            @Override
219            public int getStructuresCount(long groupId)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _journalStructureLocalService.getStructuresCount(groupId);
222            }
223    
224            @Override
225            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
226                    long companyId, long[] groupIds, java.lang.String keywords, int start,
227                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _journalStructureLocalService.search(companyId, groupIds,
230                            keywords, start, end, obc);
231            }
232    
233            @Override
234            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
235                    long companyId, long[] groupIds, java.lang.String structureId,
236                    java.lang.String name, java.lang.String description,
237                    boolean andOperator, int start, int end,
238                    com.liferay.portal.kernel.util.OrderByComparator obc)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return _journalStructureLocalService.search(companyId, groupIds,
241                            structureId, name, description, andOperator, start, end, obc);
242            }
243    
244            @Override
245            public int searchCount(long companyId, long[] groupIds,
246                    java.lang.String keywords)
247                    throws com.liferay.portal.kernel.exception.SystemException {
248                    return _journalStructureLocalService.searchCount(companyId, groupIds,
249                            keywords);
250            }
251    
252            @Override
253            public int searchCount(long companyId, long[] groupIds,
254                    java.lang.String structureId, java.lang.String name,
255                    java.lang.String description, boolean andOperator)
256                    throws com.liferay.portal.kernel.exception.SystemException {
257                    return _journalStructureLocalService.searchCount(companyId, groupIds,
258                            structureId, name, description, andOperator);
259            }
260    
261            @Override
262            public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
263                    com.liferay.portlet.journal.model.JournalStructure structure)
264                    throws com.liferay.portal.kernel.exception.PortalException,
265                            com.liferay.portal.kernel.exception.SystemException {
266                    return _journalStructureLocalService.updateJournalStructure(structure);
267            }
268    
269            @Override
270            public com.liferay.portlet.journal.model.JournalStructure updateStructure(
271                    long groupId, java.lang.String structureId,
272                    java.lang.String parentStructureId,
273                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
274                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
275                    java.lang.String xsd,
276                    com.liferay.portal.service.ServiceContext serviceContext)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException {
279                    return _journalStructureLocalService.updateStructure(groupId,
280                            structureId, parentStructureId, nameMap, descriptionMap, xsd,
281                            serviceContext);
282            }
283    
284            /**
285             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
286             */
287            public JournalStructureLocalService getWrappedJournalStructureLocalService() {
288                    return _journalStructureLocalService;
289            }
290    
291            /**
292             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
293             */
294            public void setWrappedJournalStructureLocalService(
295                    JournalStructureLocalService journalStructureLocalService) {
296                    _journalStructureLocalService = journalStructureLocalService;
297            }
298    
299            @Override
300            public JournalStructureLocalService getWrappedService() {
301                    return _journalStructureLocalService;
302            }
303    
304            @Override
305            public void setWrappedService(
306                    JournalStructureLocalService journalStructureLocalService) {
307                    _journalStructureLocalService = journalStructureLocalService;
308            }
309    
310            private JournalStructureLocalService _journalStructureLocalService;
311    }