Class DefaultSyncedIdentity

  • All Implemented Interfaces:
    SyncedIdentity

    public class DefaultSyncedIdentity
    extends Object
    implements SyncedIdentity
    Implements a simple synced identity that maps an authorizable id to an external ref.
    • Constructor Detail

      • DefaultSyncedIdentity

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

      • getId

        @NotNull
        public @NotNull 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.