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