public interface ForeignIdPersistenceService
extends net.anotheria.anoprise.metafactory.Service
| 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 accountId,
int sid,
java.lang.String fid)
Associate foreign ID with account ID.
|
void |
unlink(AccountId accountId,
int sid,
java.lang.String fid)
Dissociate foreign id for specified account.
|
void |
unlink(int sid,
java.lang.String fid)
Dissociate all foreign id.
|
AccountId getAccountIdByForeignId(int sid, java.lang.String fid) throws ForeignIdPersistenceServiceException
sid - source id.fid - foreign id.AccountIdForeignIdPersistenceServiceException - if error.java.util.List<ForeignId> getForeignIdsByAccountId(AccountId accountId) throws ForeignIdPersistenceServiceException
accountId - account id.ForeignIdForeignIdPersistenceServiceException - if error.void link(AccountId accountId, int sid, java.lang.String fid) throws ForeignIdPersistenceServiceException
sid - source id.fid - foreign id.accountId - account id.ForeignIdPersistenceServiceException - if error.void unlink(int sid,
java.lang.String fid)
throws ForeignIdPersistenceServiceException
sid - source id.fid - foreign id.ForeignIdPersistenceServiceException - if error.void unlink(AccountId accountId, int sid, java.lang.String fid) throws ForeignIdPersistenceServiceException
accountId - account id.sid - source id.fid - foreign id.ForeignIdPersistenceServiceException - if error.Copyright © 2012-2023 anotheria.net. All Rights Reserved.