/*******************************************************************************
* 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.view.internal.config;
import org.eclipse.skalli.services.configuration.ConfigSection;
import org.restlet.resource.ServerResource;
public class TopLinksConfigSection implements ConfigSection<TopLinksConfig> {
private static final String STORAGE_KEY = "view.toplinks"; //$NON-NLS-1$
private static final String[] RESOURCE_PATHS = new String[] { "/view/toplinks" }; //$NON-NLS-1$
@Override
public String getStorageKey() {
return STORAGE_KEY;
}
@Override
public Class<TopLinksConfig> getConfigClass() {
return TopLinksConfig.class;
}
@Override
public String[] getResourcePaths() {
return RESOURCE_PATHS;
}
@Override
public Class<? extends ServerResource> getServerResource(String resourePath) {
return TopLinksResource.class;
}
}