public class DefaultSyncedIdentity extends Object implements SyncedIdentity
| Constructor and Description |
|---|
DefaultSyncedIdentity(String id,
ExternalIdentityRef ref,
boolean isGroup,
long lastSynced) |
| Modifier and Type | Method and Description |
|---|---|
ExternalIdentityRef |
getExternalIdRef()
Returns the external reference of this identity.
|
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() |
public DefaultSyncedIdentity(@Nonnull String id, @Nullable ExternalIdentityRef ref, boolean isGroup, long lastSynced)
@Nonnull public String getId()
SyncedIdentitygetId in interface SyncedIdentity@CheckForNull public ExternalIdentityRef getExternalIdRef()
SyncedIdentitygetExternalIdRef in interface SyncedIdentitynullpublic boolean isGroup()
SyncedIdentityisGroup in interface SyncedIdentitytrue if group.public long lastSynced()
SyncedIdentitylastSynced in interface SyncedIdentityCopyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.