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