Interface PunchOutCredentialDao
- All Known Implementing Classes:
DefaultPunchOutCredentialDao
public interface PunchOutCredentialDao
DAO for entity
PunchOutCredential.-
Method Summary
Modifier and TypeMethodDescriptiongetExpiredPunchOutCredentials(int expiredDays) Get the expired credentials that shared secret has not changed for given days.getPunchOutCredential(String domain, String identity) Get aPunchOutCredentialModelfor a given domain-identity pair.
-
Method Details
-
getPunchOutCredential
PunchOutCredentialModel getPunchOutCredential(String domain, String identity) throws AmbiguousIdentifierException Get aPunchOutCredentialModelfor a given domain-identity pair.- Parameters:
domain- The PunchOut domain used for the identity (e.g.: DUNS)identity- The identity value.- Returns:
- The
PunchOutCredentialModel, or null, if there is no matching pair. - Throws:
AmbiguousIdentifierException- If there is more the onePunchOutCredentialModelfor the given pair.
-
getExpiredPunchOutCredentials
Get the expired credentials that shared secret has not changed for given days.- Parameters:
expiredDays- The given days that shared secret has not been changed.- Returns:
- A bundle of
PunchOutCredentialModelor empty list, if there is not any expired credentials.
-