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            @Override
070            public LayoutBranchService getWrappedService() {
071                    return _layoutBranchService;
072            }
073    
074            @Override
075            public void setWrappedService(LayoutBranchService layoutBranchService) {
076                    _layoutBranchService = layoutBranchService;
077            }
078    
079            private LayoutBranchService _layoutBranchService;
080    }