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.UNKNOWNContributionStatus.VALIDATEDContributionStatus.REFUSED
- Author:
- silveryocha
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetId()Gets the type of the validation.booleanIndicates 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.Methods inherited from class org.silverpeas.core.contribution.model.ContributionValidation
getComment, getDate, getStatus, getValidator, isInDraft, isPendingValidation, isRefused, isValidated, setComment, setDate, setStatus, setValidationBy, setValidator, toString
-
Method Details
-
getId
-
getFormInstance
-
getValidationType
Gets the type of the validation.- Returns:
- a
FormInstanceValidationTypeinstance.
-
setValidationType
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.
-