public interface PersistentIdStore
| Modifier and Type | Method and Description |
|---|---|
void |
deactivate(String persistentId,
DateTime deactivation)
Deactivate a persistent ID.
|
PersistentIdEntry |
getActiveEntry(String persistentId)
Get the active persistent ID entry for a given ID.
|
PersistentIdEntry |
getActiveEntry(String issuer,
String recipient,
String sourceId)
Get the active persistent ID entry for an (issuer, recipient, source ID) tuple.
|
int |
getCount(String issuer,
String recipient,
String sourceId)
Get the count of persistent ID entries for a (principal, issuer, source ID) tuple.
|
boolean |
isAvailable(String persistentId)
Get whether a persistent ID is not in use, active or otherwise.
|
void |
store(PersistentIdEntry entry)
Store a persistent ID.
|
boolean isAvailable(@Nonnull@NotEmpty String persistentId) throws IOException
persistentId - the ID to checkIOException - if an error occurs accessing the storevoid store(@Nonnull PersistentIdEntry entry) throws IOException
entry - entry to storeIOException - if there is an error updating the storeint getCount(@Nonnull@NotEmpty String issuer, @Nonnull@NotEmpty String recipient, @Nonnull@NotEmpty String sourceId) throws IOException
issuer - entityID of the ID issuerrecipient - entityID of the recipient the ID is forsourceId - source ID underlying the persistent IDIOException - if an error occurs accessing the store@Nullable PersistentIdEntry getActiveEntry(@Nonnull@NotEmpty String persistentId) throws IOException
persistentId - the persistent ID to lookupIOException - if an error occurs accessing the store@Nullable PersistentIdEntry getActiveEntry(@Nonnull@NotEmpty String issuer, @Nonnull@NotEmpty String recipient, @Nonnull@NotEmpty String sourceId) throws IOException
issuer - entityID of the ID issuerrecipient - entityID of the recipient the ID is forsourceId - source ID underlying the persistent IDIOException - if an error occurs accessing the storevoid deactivate(@NotEmpty
String persistentId,
@Nullable
DateTime deactivation)
throws IOException
persistentId - ID to deactivatedeactivation - deactivation time, if null the current time is usedIOException - if there is an error updating the storeCopyright © 1999–2015. All rights reserved.