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.ContributionValidation
Represents the data of a validation into context of FormsOnline component.It is extending the transversal definition
ContributionValidation
by 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.UNKNOWN
ContributionStatus.VALIDATED
ContributionStatus.REFUSED
- Author:
- silveryocha
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormInstance
getFormInstance()
Integer
getId()
FormInstanceValidationType
getValidationType()
Gets the type of the validation.boolean
isFollower()
Indicates if the registered validator is following the next validations.void
setFollower(boolean follower)
Sets the behavior of the validator according to the following of next validations.void
setValidationType(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
FormInstanceValidationType
instance.
-
setValidationType
public void setValidationType(FormInstanceValidationType validationType)
Sets the type of the validation.- Parameters:
validationType
- aFormInstanceValidationType
instance.
-
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.
-
-