Class FormInstanceValidation
- java.lang.Object
-
- org.silverpeas.core.contribution.model.ContributionValidation
-
- org.silverpeas.components.formsonline.model.FormInstanceValidation
-
- All Implemented Interfaces:
Serializable
public class FormInstanceValidation extends org.silverpeas.core.contribution.model.ContributionValidationRepresents the data of a validation into context of FormsOnline component.It is extending the transversal definition
ContributionValidationby adding the management of:- a unique identifier
- the identifier of the linked
FormInstance - the type of the validation, cf.
FormInstanceValidationType - the following of the next validations by the specified validator
Into the context of FormsOnline component, there is only 3 possible statuses:
ContributionStatus.UNKNOWNContributionStatus.VALIDATEDContributionStatus.REFUSED
- Author:
- silveryocha
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormInstancegetFormInstance()IntegergetId()FormInstanceValidationTypegetValidationType()Gets the type of the validation.booleanisFollower()Indicates if the registered validator is following the next validations.voidsetFollower(boolean follower)Sets the behavior of the validator according to the following of next validations.voidsetValidationType(FormInstanceValidationType validationType)Sets the type of the validation.
-
-
-
Method Detail
-
getId
public Integer getId()
-
getFormInstance
public FormInstance getFormInstance()
-
getValidationType
public FormInstanceValidationType getValidationType()
Gets the type of the validation.- Returns:
- a
FormInstanceValidationTypeinstance.
-
setValidationType
public void setValidationType(FormInstanceValidationType validationType)
Sets the type of the validation.- Parameters:
validationType- aFormInstanceValidationTypeinstance.
-
isFollower
public boolean isFollower()
Indicates if the registered validator is following the next validations.- Returns:
- true if the validator is following, false otherwise.
-
setFollower
public void setFollower(boolean follower)
Sets the behavior of the validator according to the following of next validations.- Parameters:
follower- true to follow, false otherwise.
-
-