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 JournalStructureService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see JournalStructureService
024     * @deprecated As of 6.2.0, since Web Content Administration now uses the
025    Dynamic Data Mapping framework to handle templates
026     * @generated
027     */
028    public class JournalStructureServiceWrapper implements JournalStructureService,
029            ServiceWrapper<JournalStructureService> {
030            public JournalStructureServiceWrapper(
031                    JournalStructureService journalStructureService) {
032                    _journalStructureService = journalStructureService;
033            }
034    
035            /**
036            * Returns the Spring bean ID for this bean.
037            *
038            * @return the Spring bean ID for this bean
039            */
040            @Override
041            public java.lang.String getBeanIdentifier() {
042                    return _journalStructureService.getBeanIdentifier();
043            }
044    
045            /**
046            * Sets the Spring bean ID for this bean.
047            *
048            * @param beanIdentifier the Spring bean ID for this bean
049            */
050            @Override
051            public void setBeanIdentifier(java.lang.String beanIdentifier) {
052                    _journalStructureService.setBeanIdentifier(beanIdentifier);
053            }
054    
055            @Override
056            public com.liferay.portlet.journal.model.JournalStructure addStructure(
057                    long groupId, java.lang.String structureId, boolean autoStructureId,
058                    java.lang.String parentStructureId,
059                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
060                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
061                    java.lang.String xsd,
062                    com.liferay.portal.service.ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    return _journalStructureService.addStructure(groupId, structureId,
066                            autoStructureId, parentStructureId, nameMap, descriptionMap, xsd,
067                            serviceContext);
068            }
069    
070            @Override
071            public com.liferay.portlet.journal.model.JournalStructure copyStructure(
072                    long groupId, java.lang.String oldStructureId,
073                    java.lang.String newStructureId, boolean autoStructureId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return _journalStructureService.copyStructure(groupId, oldStructureId,
077                            newStructureId, autoStructureId);
078            }
079    
080            @Override
081            public void deleteStructure(long groupId, java.lang.String structureId)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    _journalStructureService.deleteStructure(groupId, structureId);
085            }
086    
087            @Override
088            public com.liferay.portlet.journal.model.JournalStructure getStructure(
089                    long groupId, java.lang.String structureId)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException {
092                    return _journalStructureService.getStructure(groupId, structureId);
093            }
094    
095            @Override
096            public com.liferay.portlet.journal.model.JournalStructure getStructure(
097                    long groupId, java.lang.String structureId,
098                    boolean includeGlobalStructures)
099                    throws com.liferay.portal.kernel.exception.PortalException,
100                            com.liferay.portal.kernel.exception.SystemException {
101                    return _journalStructureService.getStructure(groupId, structureId,
102                            includeGlobalStructures);
103            }
104    
105            @Override
106            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
107                    long groupId)
108                    throws com.liferay.portal.kernel.exception.SystemException {
109                    return _journalStructureService.getStructures(groupId);
110            }
111    
112            @Override
113            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
114                    long[] groupIds)
115                    throws com.liferay.portal.kernel.exception.SystemException {
116                    return _journalStructureService.getStructures(groupIds);
117            }
118    
119            @Override
120            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
121                    long companyId, long[] groupIds, java.lang.String keywords, int start,
122                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
123                    throws com.liferay.portal.kernel.exception.SystemException {
124                    return _journalStructureService.search(companyId, groupIds, keywords,
125                            start, end, obc);
126            }
127    
128            @Override
129            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
130                    long companyId, long[] groupIds, java.lang.String structureId,
131                    java.lang.String name, java.lang.String description,
132                    boolean andOperator, int start, int end,
133                    com.liferay.portal.kernel.util.OrderByComparator obc)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _journalStructureService.search(companyId, groupIds,
136                            structureId, name, description, andOperator, start, end, obc);
137            }
138    
139            @Override
140            public int searchCount(long companyId, long[] groupIds,
141                    java.lang.String keywords)
142                    throws com.liferay.portal.kernel.exception.SystemException {
143                    return _journalStructureService.searchCount(companyId, groupIds,
144                            keywords);
145            }
146    
147            @Override
148            public int searchCount(long companyId, long[] groupIds,
149                    java.lang.String structureId, java.lang.String name,
150                    java.lang.String description, boolean andOperator)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _journalStructureService.searchCount(companyId, groupIds,
153                            structureId, name, description, andOperator);
154            }
155    
156            @Override
157            public com.liferay.portlet.journal.model.JournalStructure updateStructure(
158                    long groupId, java.lang.String structureId,
159                    java.lang.String parentStructureId,
160                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
161                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
162                    java.lang.String xsd,
163                    com.liferay.portal.service.ServiceContext serviceContext)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException {
166                    return _journalStructureService.updateStructure(groupId, structureId,
167                            parentStructureId, nameMap, descriptionMap, xsd, serviceContext);
168            }
169    
170            /**
171             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
172             */
173            public JournalStructureService getWrappedJournalStructureService() {
174                    return _journalStructureService;
175            }
176    
177            /**
178             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
179             */
180            public void setWrappedJournalStructureService(
181                    JournalStructureService journalStructureService) {
182                    _journalStructureService = journalStructureService;
183            }
184    
185            @Override
186            public JournalStructureService getWrappedService() {
187                    return _journalStructureService;
188            }
189    
190            @Override
191            public void setWrappedService(
192                    JournalStructureService journalStructureService) {
193                    _journalStructureService = journalStructureService;
194            }
195    
196            private JournalStructureService _journalStructureService;
197    }