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 RepositoryService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see RepositoryService
024     * @generated
025     */
026    @ProviderType
027    public class RepositoryServiceWrapper implements RepositoryService,
028            ServiceWrapper<RepositoryService> {
029            public RepositoryServiceWrapper(RepositoryService repositoryService) {
030                    _repositoryService = repositoryService;
031            }
032    
033            @Override
034            public com.liferay.portal.kernel.model.Repository addRepository(
035                    long groupId, long classNameId, long parentFolderId,
036                    java.lang.String name, java.lang.String description,
037                    java.lang.String portletId,
038                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
039                    ServiceContext serviceContext)
040                    throws com.liferay.portal.kernel.exception.PortalException {
041                    return _repositoryService.addRepository(groupId, classNameId,
042                            parentFolderId, name, description, portletId,
043                            typeSettingsProperties, serviceContext);
044            }
045    
046            @Override
047            public com.liferay.portal.kernel.model.Repository getRepository(
048                    long repositoryId)
049                    throws com.liferay.portal.kernel.exception.PortalException {
050                    return _repositoryService.getRepository(repositoryId);
051            }
052    
053            @Override
054            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties(
055                    long repositoryId)
056                    throws com.liferay.portal.kernel.exception.PortalException {
057                    return _repositoryService.getTypeSettingsProperties(repositoryId);
058            }
059    
060            /**
061            * Returns the OSGi service identifier.
062            *
063            * @return the OSGi service identifier
064            */
065            @Override
066            public java.lang.String getOSGiServiceIdentifier() {
067                    return _repositoryService.getOSGiServiceIdentifier();
068            }
069    
070            /**
071            * @deprecated As of 7.0.0, with no direct replacement
072            */
073            @Deprecated
074            @Override
075            public java.lang.String[] getSupportedConfigurations(long classNameId) {
076                    return _repositoryService.getSupportedConfigurations(classNameId);
077            }
078    
079            /**
080            * @deprecated As of 7.0.0, with no direct replacement
081            */
082            @Deprecated
083            @Override
084            public java.lang.String[] getSupportedParameters(
085                    java.lang.String className, java.lang.String configuration) {
086                    return _repositoryService.getSupportedParameters(className,
087                            configuration);
088            }
089    
090            /**
091            * @deprecated As of 7.0.0, with no direct replacement
092            */
093            @Deprecated
094            @Override
095            public java.lang.String[] getSupportedParameters(long classNameId,
096                    java.lang.String configuration) {
097                    return _repositoryService.getSupportedParameters(classNameId,
098                            configuration);
099            }
100    
101            @Override
102            public void checkRepository(long repositoryId)
103                    throws com.liferay.portal.kernel.exception.PortalException {
104                    _repositoryService.checkRepository(repositoryId);
105            }
106    
107            @Override
108            public void deleteRepository(long repositoryId)
109                    throws com.liferay.portal.kernel.exception.PortalException {
110                    _repositoryService.deleteRepository(repositoryId);
111            }
112    
113            @Override
114            public void updateRepository(long repositoryId, java.lang.String name,
115                    java.lang.String description)
116                    throws com.liferay.portal.kernel.exception.PortalException {
117                    _repositoryService.updateRepository(repositoryId, name, description);
118            }
119    
120            @Override
121            public RepositoryService getWrappedService() {
122                    return _repositoryService;
123            }
124    
125            @Override
126            public void setWrappedService(RepositoryService repositoryService) {
127                    _repositoryService = repositoryService;
128            }
129    
130            private RepositoryService _repositoryService;
131    }