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