public class InMemoryForeignIdPersistenceServiceImpl extends java.lang.Object implements ForeignIdPersistenceService
| Constructor and Description |
|---|
InMemoryForeignIdPersistenceServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
AccountId |
getAccountIdByForeignId(int sid,
java.lang.String fid)
Returns account ID by foreign ID.
|
java.util.List<ForeignId> |
getForeignIdsByAccountId(AccountId accountId)
Returns list of foreign ids by account ID.
|
void |
link(AccountId accId,
int sid,
java.lang.String fid)
Associate foreign ID with account ID.
|
void |
unlink(AccountId accId,
int sid,
java.lang.String fid)
Dissociate foreign id for specified account.
|
void |
unlink(int sid,
java.lang.String fid)
Dissociate all foreign id.
|
public InMemoryForeignIdPersistenceServiceImpl()
public AccountId getAccountIdByForeignId(int sid, java.lang.String fid) throws ForeignIdPersistenceServiceException
ForeignIdPersistenceServicegetAccountIdByForeignId in interface ForeignIdPersistenceServicesid - source id.fid - foreign id.AccountIdForeignIdPersistenceServiceException - if error.public java.util.List<ForeignId> getForeignIdsByAccountId(AccountId accountId) throws ForeignIdPersistenceServiceException
ForeignIdPersistenceServicegetForeignIdsByAccountId in interface ForeignIdPersistenceServiceaccountId - account id.ForeignIdForeignIdPersistenceServiceException - if error.public void link(AccountId accId, int sid, java.lang.String fid) throws ForeignIdPersistenceServiceException
ForeignIdPersistenceServicelink in interface ForeignIdPersistenceServiceaccId - account id.sid - source id.fid - foreign id.ForeignIdPersistenceServiceException - if error.public void unlink(int sid,
java.lang.String fid)
throws ForeignIdPersistenceServiceException
ForeignIdPersistenceServiceunlink in interface ForeignIdPersistenceServicesid - source id.fid - foreign id.ForeignIdPersistenceServiceException - if error.public void unlink(AccountId accId, int sid, java.lang.String fid) throws ForeignIdPersistenceServiceException
ForeignIdPersistenceServiceunlink in interface ForeignIdPersistenceServiceaccId - account id.sid - source id.fid - foreign id.ForeignIdPersistenceServiceException - if error.Copyright © 2012-2023 anotheria.net. All Rights Reserved.