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.repository.registry;
016    
017    import com.liferay.portal.kernel.repository.DocumentRepository;
018    import com.liferay.portal.security.permission.ResourceActionsUtil;
019    
020    import java.util.Locale;
021    
022    /**
023     * @author Adolfo P??rez
024     */
025    public abstract class BaseRepositoryDefiner implements RepositoryDefiner {
026    
027            @Override
028            public abstract String getClassName();
029    
030            @Override
031            public String getRepositoryTypeLabel(Locale locale) {
032                    return ResourceActionsUtil.getModelResource(locale, getClassName());
033            }
034    
035            @Override
036            public String[] getSupportedConfigurations() {
037                    return _SUPPORTED_CONFIGURATIONS;
038            }
039    
040            @Override
041            public String[][] getSupportedParameters() {
042                    return _SUPPORTED_PARAMETERS;
043            }
044    
045            @Override
046            public abstract boolean isExternalRepository();
047    
048            @Override
049            public void registerCapabilities(
050                    CapabilityRegistry<DocumentRepository> capabilityRegistry) {
051            }
052    
053            @Override
054            public void registerRepositoryEventListeners(
055                    RepositoryEventRegistry repositoryEventRegistry) {
056            }
057    
058            @Override
059            public abstract void registerRepositoryFactory(
060                    RepositoryFactoryRegistry repositoryFactoryRegistry);
061    
062            private static final String[] _SUPPORTED_CONFIGURATIONS = {};
063    
064            private static final String[][] _SUPPORTED_PARAMETERS = {};
065    
066    }