Search in sources :

Example 1 with CosmosDbDocument

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;
}
Also used : lombok.val(lombok.val) CosmosDbDocument(org.apereo.cas.cosmosdb.CosmosDbDocument)

Aggregations

lombok.val (lombok.val)1 CosmosDbDocument (org.apereo.cas.cosmosdb.CosmosDbDocument)1