Class DefaultPunchOutCredentialDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<PunchOutCredentialModel>
de.hybris.platform.b2b.punchout.daos.impl.DefaultPunchOutCredentialDao
- All Implemented Interfaces:
PunchOutCredentialDao,GenericDao<PunchOutCredentialModel>
public class DefaultPunchOutCredentialDao
extends DefaultGenericDao<PunchOutCredentialModel>
implements PunchOutCredentialDao
Default implementation for
PunchOutCredentialDao.-
Constructor Summary
Constructors -
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.voidsetCaseInsensitiveDomains(List<String> caseInsensitiveDomains) Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Constructor Details
-
DefaultPunchOutCredentialDao
public DefaultPunchOutCredentialDao()
-
-
Method Details
-
getPunchOutCredential
public PunchOutCredentialModel getPunchOutCredential(String domain, String identity) throws AmbiguousIdentifierException Description copied from interface:PunchOutCredentialDaoGet aPunchOutCredentialModelfor a given domain-identity pair.- Specified by:
getPunchOutCredentialin interfacePunchOutCredentialDao- 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
Description copied from interface:PunchOutCredentialDaoGet the expired credentials that shared secret has not changed for given days.- Specified by:
getExpiredPunchOutCredentialsin interfacePunchOutCredentialDao- 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.
-
getCaseInsensitiveDomains
-
setCaseInsensitiveDomains
-