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.kernel.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.kernel.model.LayoutBranch addLayoutBranch(
035                    long layoutRevisionId, java.lang.String name,
036                    java.lang.String description, boolean master,
037                    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 com.liferay.portal.kernel.model.LayoutBranch updateLayoutBranch(
045                    long layoutBranchId, java.lang.String name,
046                    java.lang.String description, ServiceContext serviceContext)
047                    throws com.liferay.portal.kernel.exception.PortalException {
048                    return _layoutBranchService.updateLayoutBranch(layoutBranchId, name,
049                            description, serviceContext);
050            }
051    
052            /**
053            * Returns the OSGi service identifier.
054            *
055            * @return the OSGi service identifier
056            */
057            @Override
058            public java.lang.String getOSGiServiceIdentifier() {
059                    return _layoutBranchService.getOSGiServiceIdentifier();
060            }
061    
062            @Override
063            public void deleteLayoutBranch(long layoutBranchId)
064                    throws com.liferay.portal.kernel.exception.PortalException {
065                    _layoutBranchService.deleteLayoutBranch(layoutBranchId);
066            }
067    
068            @Override
069            public LayoutBranchService getWrappedService() {
070                    return _layoutBranchService;
071            }
072    
073            @Override
074            public void setWrappedService(LayoutBranchService layoutBranchService) {
075                    _layoutBranchService = layoutBranchService;
076            }
077    
078            private LayoutBranchService _layoutBranchService;
079    }