Class PunchOutCredentialValidateInterceptor
java.lang.Object
de.hybris.platform.b2b.punchout.interceptor.PunchOutCredentialValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
Validator for entity
PunchOutCredential.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexistentCredential(PunchOutCredentialModel credential) Check if there is already a credential for the same domain and identity in the system.protected L10NServiceprotected PunchOutCredentialServiceprotected StringlocalizeForKey(String key) voidonValidate(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetL10NService(L10NService l10NService) voidsetPunchOutCredentialService(PunchOutCredentialService punchOutCredentialService)
-
Constructor Details
-
PunchOutCredentialValidateInterceptor
public PunchOutCredentialValidateInterceptor()
-
-
Method Details
-
onValidate
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor- Parameters:
model- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
existentCredential
Check if there is already a credential for the same domain and identity in the system.- Parameters:
credential- The credential to be checked.- Throws:
InterceptorException- If there is already an existent credential for the same main values.
-
localizeForKey
-
getL10NService
-
setL10NService
-
getPunchOutCredentialService
-
setPunchOutCredentialService
-