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