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                    com.liferay.portal.kernel.service.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 void checkRepository(long repositoryId)
048                    throws com.liferay.portal.kernel.exception.PortalException {
049                    _repositoryService.checkRepository(repositoryId);
050            }
051    
052            @Override
053            public void deleteRepository(long repositoryId)
054                    throws com.liferay.portal.kernel.exception.PortalException {
055                    _repositoryService.deleteRepository(repositoryId);
056            }
057    
058            /**
059            * Returns the OSGi service identifier.
060            *
061            * @return the OSGi service identifier
062            */
063            @Override
064            public java.lang.String getOSGiServiceIdentifier() {
065                    return _repositoryService.getOSGiServiceIdentifier();
066            }
067    
068            @Override
069            public com.liferay.portal.kernel.model.Repository getRepository(
070                    long repositoryId)
071                    throws com.liferay.portal.kernel.exception.PortalException {
072                    return _repositoryService.getRepository(repositoryId);
073            }
074    
075            /**
076            * @deprecated As of 7.0.0, with no direct replacement
077            */
078            @Deprecated
079            @Override
080            public java.lang.String[] getSupportedConfigurations(long classNameId) {
081                    return _repositoryService.getSupportedConfigurations(classNameId);
082            }
083    
084            /**
085            * @deprecated As of 7.0.0, with no direct replacement
086            */
087            @Deprecated
088            @Override
089            public java.lang.String[] getSupportedParameters(
090                    java.lang.String className, java.lang.String configuration) {
091                    return _repositoryService.getSupportedParameters(className,
092                            configuration);
093            }
094    
095            /**
096            * @deprecated As of 7.0.0, with no direct replacement
097            */
098            @Deprecated
099            @Override
100            public java.lang.String[] getSupportedParameters(long classNameId,
101                    java.lang.String configuration) {
102                    return _repositoryService.getSupportedParameters(classNameId,
103                            configuration);
104            }
105    
106            @Override
107            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties(
108                    long repositoryId)
109                    throws com.liferay.portal.kernel.exception.PortalException {
110                    return _repositoryService.getTypeSettingsProperties(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    }