public class ValidateContactJsonAction extends WaoJsonActionSupport implements com.opensymphony.xwork2.Preparable
| Modifier and Type | Field and Description |
|---|---|
protected String |
contactId
Id of contact to treat.
|
protected String |
errorMessage
Error message if validation, or any was wrong while update.
|
protected ContactsService |
service |
protected String |
successMessage
Success message
|
protected UpdateContactCommand |
updateContactCommand |
protected Boolean |
validationState
New validation state.
|
applicationConfig, session| Constructor and Description |
|---|
ValidateContactJsonAction() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute() |
String |
getContactId() |
String |
getErrorMessage() |
String |
getSuccessMessage() |
Boolean |
getValidationCompany() |
Boolean |
getValidationProgram() |
Boolean |
getValidationState() |
boolean |
isAcceptable(Contact contact) |
boolean |
isRefusable(Contact contact) |
boolean |
isSuccessful() |
boolean |
isUnacceptable(Contact contact) |
void |
prepare() |
void |
setContactId(String contactId) |
void |
setService(ContactsService service) |
void |
setValidationState(Boolean validationState) |
getApplicationConfig, getLocale, set_, setApplicationConfig, setFragment, setSessionaddActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validateprotected String contactId
protected Boolean validationState
protected String successMessage
protected String errorMessage
protected transient ContactsService service
protected UpdateContactCommand updateContactCommand
public void setService(ContactsService service)
public void setContactId(String contactId)
public void setValidationState(Boolean validationState)
public String getContactId()
public Boolean getValidationState()
public String getSuccessMessage()
public String getErrorMessage()
public boolean isSuccessful()
public void prepare()
prepare in interface com.opensymphony.xwork2.Preparablepublic String execute()
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportpublic boolean isAcceptable(Contact contact)
public boolean isRefusable(Contact contact)
public boolean isUnacceptable(Contact contact)
public Boolean getValidationProgram()
public Boolean getValidationCompany()
Copyright © 2009–2014 Ifremer. All rights reserved.