public class PunchOutCredentialValidateInterceptor extends java.lang.Object implements ValidateInterceptor
PunchOutCredential.| Constructor and Description |
|---|
PunchOutCredentialValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
existentCredential(PunchOutCredentialModel credential)
Check if there is already a credential for the same domain and identity in the system.
|
protected L10NService |
getL10NService() |
PunchOutCredentialService |
getPunchOutCredentialService() |
protected java.lang.String |
localizeForKey(java.lang.String key) |
void |
onValidate(java.lang.Object model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setL10NService(L10NService l10NService) |
void |
setPunchOutCredentialService(PunchOutCredentialService punchOutCredentialService) |
public PunchOutCredentialValidateInterceptor()
public void onValidate(java.lang.Object model,
InterceptorContext ctx)
throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptormodel - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.protected void existentCredential(PunchOutCredentialModel credential) throws InterceptorException
credential - The credential to be checked.InterceptorException - If there is already an existent credential for the same main values.protected java.lang.String localizeForKey(java.lang.String key)
protected L10NService getL10NService()
public void setL10NService(L10NService l10NService)
public PunchOutCredentialService getPunchOutCredentialService()
public void setPunchOutCredentialService(PunchOutCredentialService punchOutCredentialService)
Copyright © 2018 SAP SE. All Rights Reserved.