001    /**
002     * Copyright (c) 2000-present 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.portal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link LayoutBranchService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see LayoutBranchService
024     * @generated
025     */
026    @ProviderType
027    public class LayoutBranchServiceWrapper implements LayoutBranchService,
028            ServiceWrapper<LayoutBranchService> {
029            public LayoutBranchServiceWrapper(LayoutBranchService layoutBranchService) {
030                    _layoutBranchService = layoutBranchService;
031            }
032    
033            @Override
034            public com.liferay.portal.model.LayoutBranch addLayoutBranch(
035                    long layoutRevisionId, java.lang.String name,
036                    java.lang.String description, boolean master,
037                    com.liferay.portal.service.ServiceContext serviceContext)
038                    throws com.liferay.portal.kernel.exception.PortalException {
039                    return _layoutBranchService.addLayoutBranch(layoutRevisionId, name,
040                            description, master, serviceContext);
041            }
042    
043            @Override
044            public void deleteLayoutBranch(long layoutBranchId)
045                    throws com.liferay.portal.kernel.exception.PortalException {
046                    _layoutBranchService.deleteLayoutBranch(layoutBranchId);
047            }
048    
049            /**
050            * Returns the OSGi service identifier.
051            *
052            * @return the OSGi service identifier
053            */
054            @Override
055            public java.lang.String getOSGiServiceIdentifier() {
056                    return _layoutBranchService.getOSGiServiceIdentifier();
057            }
058    
059            @Override
060            public com.liferay.portal.model.LayoutBranch updateLayoutBranch(
061                    long layoutBranchId, java.lang.String name,
062                    java.lang.String description,
063                    com.liferay.portal.service.ServiceContext serviceContext)
064                    throws com.liferay.portal.kernel.exception.PortalException {
065                    return _layoutBranchService.updateLayoutBranch(layoutBranchId, name,
066                            description, serviceContext);
067            }
068    
069            /**
070             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
071             */
072            @Deprecated
073            public LayoutBranchService getWrappedLayoutBranchService() {
074                    return _layoutBranchService;
075            }
076    
077            /**
078             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
079             */
080            @Deprecated
081            public void setWrappedLayoutBranchService(
082                    LayoutBranchService layoutBranchService) {
083                    _layoutBranchService = layoutBranchService;
084            }
085    
086            @Override
087            public LayoutBranchService getWrappedService() {
088                    return _layoutBranchService;
089            }
090    
091            @Override
092            public void setWrappedService(LayoutBranchService layoutBranchService) {
093                    _layoutBranchService = layoutBranchService;
094            }
095    
096            private LayoutBranchService _layoutBranchService;
097    }