@DistributeMe
@FailBy(strategyClass=org.distributeme.core.failing.RetryCallOnce.class)
public interface ForeignIdService
extends net.anotheria.anoprise.metafactory.Service
| 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 accountId)
Returns all associations for given account id.
|
void |
removeForeignId(AccountId accId,
java.lang.String foreignId,
int sourceId)
Removes previously created association with another account.
|
void addForeignId(AccountId accId, java.lang.String foreignId, int sourceId) throws ForeignIdServiceException
accId - account id.foreignId - foreign id.sourceId - source id.ForeignIdServiceException - if error.void removeForeignId(AccountId accId, java.lang.String foreignId, int sourceId) throws ForeignIdServiceException
accId - account id.foreignId - foreign id.sourceId - source id.ForeignIdServiceException - if error.AccountId getAccountIdByForeignId(java.lang.String foreignId, int sourceId) throws ForeignIdServiceException
foreignId - foreign id.sourceId - source id.AccountIdForeignIdServiceException - if error.java.util.List<ForeignId> getForeignIds(AccountId accountId) throws ForeignIdServiceException
accountId - account id.AccountIdForeignIdServiceException - if error.Copyright © 2012-2023 anotheria.net. All Rights Reserved.