/*******************************************************************************
* Copyright (c) 2010-2014 SAP AG and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* SAP AG - initial API and implementation
*******************************************************************************/
package org.eclipse.skalli.ext.mapping.mail.internal;
import org.eclipse.skalli.ext.mapping.mail.MailingListMappings;
import org.eclipse.skalli.services.configuration.ConfigSection;
import org.restlet.resource.ServerResource;
public class MailingListMappingConfigSection implements ConfigSection<MailingListMappings> {
private static final String STORAGE_KEY = "info.mailingListMappings"; //$NON-NLS-1$
private static final String[] RESOURCE_PATHS = new String[] { "/info/mailingList" }; //$NON-NLS-1$
@Override
public String getStorageKey() {
return STORAGE_KEY;
}
@Override
public Class<MailingListMappings> getConfigClass() {
return MailingListMappings.class;
}
@Override
public String[] getResourcePaths() {
return RESOURCE_PATHS;
}
@Override
public Class<? extends ServerResource> getServerResource(String resourePath) {
return MailingListMappingResource.class;
}
}