Class DefaultSyncedIdentity

  • All Implemented Interfaces:
    SyncedIdentity

    public class DefaultSyncedIdentity
    extends java.lang.Object
    implements SyncedIdentity
    Implements a simple synced identity that maps an authorizable id to an external ref.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable ExternalIdentityRef getExternalIdRef()
      Returns the external reference of this identity.
      @NotNull java.lang.String getId()
      Returns the internal id or name of the corresponding authorizable.
      boolean isGroup()
      Checks if this identity represents a group.
      long lastSynced()
      Returns the time when this identity was last synced or a value less or equal to 0 if it was never synced.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DefaultSyncedIdentity

        public DefaultSyncedIdentity​(@NotNull
                                     @NotNull java.lang.String id,
                                     @Nullable
                                     @Nullable ExternalIdentityRef ref,
                                     boolean isGroup,
                                     long lastSynced)
    • Method Detail

      • getId

        @NotNull
        public @NotNull java.lang.String getId()
        Description copied from interface: SyncedIdentity
        Returns the internal id or name of the corresponding authorizable.
        Specified by:
        getId in interface SyncedIdentity
        Returns:
        the id.
      • isGroup

        public boolean isGroup()
        Description copied from interface: SyncedIdentity
        Checks if this identity represents a group.
        Specified by:
        isGroup in interface SyncedIdentity
        Returns:
        true if group.
      • lastSynced

        public long lastSynced()
        Description copied from interface: SyncedIdentity
        Returns the time when this identity was last synced or a value less or equal to 0 if it was never synced.
        Specified by:
        lastSynced in interface SyncedIdentity
        Returns:
        the time when this identity was last synced.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object