View Javadoc
1   /*
2    * OpenFGA
3    * A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
4    *
5    * The version of the OpenAPI document: 1.x
6    * Contact: community@openfga.dev
7    *
8    * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9    * https://openapi-generator.tech
10   * Do not edit the class manually.
11   */
12  
13  package org.apache.syncope.ext.openfga.client;
14  
15  import java.time.Instant;
16  import java.time.OffsetDateTime;
17  import java.time.ZonedDateTime;
18  
19  import com.fasterxml.jackson.databind.module.SimpleModule;
20  import com.fasterxml.jackson.databind.Module.SetupContext;
21  
22  @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0")
23  public class RFC3339JavaTimeModule extends SimpleModule {
24      private static final long serialVersionUID = 1L;
25  
26      public RFC3339JavaTimeModule() {
27          super("RFC3339JavaTimeModule");
28      }
29  
30     @Override
31     public void setupModule(SetupContext context) {
32         super.setupModule(context);
33  
34         addDeserializer(Instant.class, RFC3339InstantDeserializer.INSTANT);
35         addDeserializer(OffsetDateTime.class, RFC3339InstantDeserializer.OFFSET_DATE_TIME);
36         addDeserializer(ZonedDateTime.class, RFC3339InstantDeserializer.ZONED_DATE_TIME);
37     }
38  
39  }