Class DefaultSyncedIdentity
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authentication.external.basic.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 Summary
Constructors Constructor Description DefaultSyncedIdentity(@NotNull String id, @Nullable ExternalIdentityRef ref, boolean isGroup, long lastSynced)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable ExternalIdentityRef
getExternalIdRef()
Returns the external reference of this identity.@NotNull 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.String
toString()
-
-
-
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 interfaceSyncedIdentity
- Returns:
- the id.
-
getExternalIdRef
@Nullable public @Nullable ExternalIdentityRef getExternalIdRef()
Description copied from interface:SyncedIdentity
Returns the external reference of this identity.- Specified by:
getExternalIdRef
in interfaceSyncedIdentity
- Returns:
- the reference or
null
-
isGroup
public boolean isGroup()
Description copied from interface:SyncedIdentity
Checks if this identity represents a group.- Specified by:
isGroup
in interfaceSyncedIdentity
- 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 interfaceSyncedIdentity
- Returns:
- the time when this identity was last synced.
-
-