de.captaingoldfish.scim.sdk.server.endpoints.base.UserEndpointDefinition Maven / Gradle / Ivy
package de.captaingoldfish.scim.sdk.server.endpoints.base;
import java.util.Arrays;
import de.captaingoldfish.scim.sdk.common.constants.ClassPathReferences;
import de.captaingoldfish.scim.sdk.common.resources.User;
import de.captaingoldfish.scim.sdk.common.utils.JsonHelper;
import de.captaingoldfish.scim.sdk.server.endpoints.EndpointDefinition;
import de.captaingoldfish.scim.sdk.server.endpoints.ResourceHandler;
/**
* author Pascal Knueppel
* created at: 07.10.2019 - 20:44
*
* this is the default endpoint definition for the /Users endpoint as it was defined in the RFC7643
*/
public class UserEndpointDefinition extends EndpointDefinition
{
public UserEndpointDefinition(ResourceHandler resourceHandler)
{
super(JsonHelper.loadJsonDocument(ClassPathReferences.USER_RESOURCE_TYPE_JSON),
JsonHelper.loadJsonDocument(ClassPathReferences.USER_SCHEMA_JSON),
Arrays.asList(JsonHelper.loadJsonDocument(ClassPathReferences.ENTERPRISE_USER_SCHEMA_JSON)), resourceHandler);
}
}