Class DefaultSyncedIdentity
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authentication.external.basic.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.
-
-
Constructor Summary
Constructors Constructor Description DefaultSyncedIdentity(@NotNull java.lang.String id, @Nullable ExternalIdentityRef ref, boolean isGroup, long lastSynced)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable ExternalIdentityRefgetExternalIdRef()Returns the external reference of this identity.@NotNull java.lang.StringgetId()Returns the internal id or name of the corresponding authorizable.booleanisGroup()Checks if this identity represents a group.longlastSynced()Returns the time when this identity was last synced or a value less or equal to 0 if it was never synced.java.lang.StringtoString()
-
-
-
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:SyncedIdentityReturns the internal id or name of the corresponding authorizable.- Specified by:
getIdin interfaceSyncedIdentity- Returns:
- the id.
-
getExternalIdRef
@Nullable public @Nullable ExternalIdentityRef getExternalIdRef()
Description copied from interface:SyncedIdentityReturns the external reference of this identity.- Specified by:
getExternalIdRefin interfaceSyncedIdentity- Returns:
- the reference or
null
-
isGroup
public boolean isGroup()
Description copied from interface:SyncedIdentityChecks if this identity represents a group.- Specified by:
isGroupin interfaceSyncedIdentity- Returns:
trueif group.
-
lastSynced
public long lastSynced()
Description copied from interface:SyncedIdentityReturns the time when this identity was last synced or a value less or equal to 0 if it was never synced.- Specified by:
lastSyncedin interfaceSyncedIdentity- Returns:
- the time when this identity was last synced.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-