org.keycloak.models.map.authSession

## Class MapRootAuthenticationSessionEntity

- java.lang.Object
- - org.keycloak.models.map.authSession.MapRootAuthenticationSessionEntity

- All Implemented Interfaces:
    AbstractEntity, UpdatableEntity

      public class MapRootAuthenticationSessionEntity
      extends Object
      implements AbstractEntity, UpdatableEntity

  Author:
    Martin Kanis

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected boolean` | `updated` Flag signalizing that any of the setters has been meaningfully used.

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `MapRootAuthenticationSessionEntity()`
    `` | `MapRootAuthenticationSessionEntity(String id, String realmId)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addAuthenticationSession(String tabId, MapAuthenticationSessionEntity entity)`
    `void` | `clearAuthenticationSessions()`
    `Map<String,MapAuthenticationSessionEntity>` | `getAuthenticationSessions()`
    `String` | `getId()`
    `String` | `getRealmId()`
    `int` | `getTimestamp()`
    `boolean` | `isUpdated()` Flag signalizing that any of the setters has been meaningfully used.
    `MapAuthenticationSessionEntity` | `removeAuthenticationSession(String tabId)`
    `void` | `setAuthenticationSessions(Map<String,MapAuthenticationSessionEntity> authenticationSessions)`
    `void` | `setRealmId(String realmId)`
    `void` | `setTimestamp(int timestamp)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### updated

          protected boolean updated

      Flag signalizing that any of the setters has been meaningfully used.

  - ### Constructor Detail

    - #### MapRootAuthenticationSessionEntity

          protected MapRootAuthenticationSessionEntity()

    - #### MapRootAuthenticationSessionEntity

          public MapRootAuthenticationSessionEntity(String id,
                                                    String realmId)

  - ### Method Detail

    - #### getId

          public String getId()

      Specified by:
        `getId` in interface `AbstractEntity`

    - #### isUpdated

          public boolean isUpdated()

      Description copied from interface: `UpdatableEntity`
      Flag signalizing that any of the setters has been meaningfully used.
      Specified by:
        `isUpdated` in interface `UpdatableEntity`
      Returns:

    - #### getRealmId

          public String getRealmId()

    - #### setRealmId

          public void setRealmId(String realmId)

    - #### getTimestamp

          public int getTimestamp()

    - #### setTimestamp

          public void setTimestamp(int timestamp)

    - #### getAuthenticationSessions

          public Map<String,MapAuthenticationSessionEntity> getAuthenticationSessions()

    - #### setAuthenticationSessions

          public void setAuthenticationSessions(Map<String,MapAuthenticationSessionEntity> authenticationSessions)

    - #### removeAuthenticationSession

          public MapAuthenticationSessionEntity removeAuthenticationSession(String tabId)

    - #### addAuthenticationSession

          public void addAuthenticationSession(String tabId,
                                               MapAuthenticationSessionEntity entity)

    - #### clearAuthenticationSessions

          public void clearAuthenticationSessions()

Copyright © 2021 JBoss by Red Hat. All rights reserved.