use of org.apereo.cas.cosmosdb.CosmosDbDocument in project cas by apereo.
the class CosmosDbServiceRegistry method createCosmosDbDocument.
private CosmosDbDocument createCosmosDbDocument(final RegisteredService registeredService) {
val body = serializer.toString(registeredService);
val document = new CosmosDbDocument();
document.setBody(body);
document.setId(String.valueOf(registeredService.getId()));
document.setServiceId(registeredService.getServiceId());
return document;
}
Aggregations