public class ForeignIdServiceImpl extends java.lang.Object implements ForeignIdService
| Constructor and Description |
|---|
ForeignIdServiceImpl()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addForeignId(AccountId accId,
java.lang.String foreignId,
int sourceId)
Creates a new association between our account and another account.
|
AccountId |
getAccountIdByForeignId(java.lang.String foreignId,
int sourceId)
Returns the associated account id for this source/foreign Id combination.
|
java.util.List<ForeignId> |
getForeignIds(AccountId accId)
Returns all associations for given account id.
|
void |
removeForeignId(AccountId accId,
java.lang.String foreignId,
int sourceId)
Removes previously created association with another account.
|
public void addForeignId(AccountId accId, java.lang.String foreignId, int sourceId) throws ForeignIdServiceException
ForeignIdServiceaddForeignId in interface ForeignIdServiceaccId - account id.foreignId - foreign id.sourceId - source id.ForeignIdServiceException - if error.public void removeForeignId(AccountId accId, java.lang.String foreignId, int sourceId) throws ForeignIdServiceException
ForeignIdServiceremoveForeignId in interface ForeignIdServiceaccId - account id.foreignId - foreign id.sourceId - source id.ForeignIdServiceException - if error.public AccountId getAccountIdByForeignId(java.lang.String foreignId, int sourceId) throws ForeignIdServiceException
ForeignIdServicegetAccountIdByForeignId in interface ForeignIdServiceforeignId - foreign id.sourceId - source id.AccountIdForeignIdServiceException - if error.public java.util.List<ForeignId> getForeignIds(AccountId accId) throws ForeignIdServiceException
ForeignIdServicegetForeignIds in interface ForeignIdServiceaccId - account id.AccountIdForeignIdServiceException - if error.Copyright © 2012-2023 anotheria.net. All Rights Reserved.