Class ContributionValidationEntity
- java.lang.Object
-
- org.silverpeas.core.webapi.validation.ContributionValidationEntity
-
public class ContributionValidationEntity extends Object
It represents the state of a contribution validation as transmitted within the body of an HTTP response or an HTTP request.- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ContributionValidationEntity()
protected
ContributionValidationEntity(ContributionValidation validation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContributionValidationEntity
fromValidableContribution(ValidableContribution validableContribution)
String
getComment()
Date
getDate()
ContributionStatus
getStatus()
String
getValidatorId()
String
getValidatorName()
boolean
isInDraft()
boolean
isPendingValidation()
boolean
isRefused()
boolean
isValidated()
protected void
setComment(String validationComment)
protected void
setDate(Date validationDate)
protected void
setStatus(ContributionStatus status)
protected void
setValidatorId(String validatorId)
protected void
setValidatorName(String validatorName)
ContributionValidation
toContributionValidation()
String
toString()
-
-
-
Constructor Detail
-
ContributionValidationEntity
protected ContributionValidationEntity()
-
ContributionValidationEntity
protected ContributionValidationEntity(ContributionValidation validation)
-
-
Method Detail
-
fromValidableContribution
public static ContributionValidationEntity fromValidableContribution(ValidableContribution validableContribution)
-
getStatus
public ContributionStatus getStatus()
-
setStatus
protected void setStatus(ContributionStatus status)
-
isInDraft
public boolean isInDraft()
-
isRefused
public boolean isRefused()
-
isPendingValidation
public boolean isPendingValidation()
-
isValidated
public boolean isValidated()
-
getDate
public Date getDate()
-
setDate
protected void setDate(Date validationDate)
-
getComment
public String getComment()
-
setComment
protected void setComment(String validationComment)
-
getValidatorName
public String getValidatorName()
-
setValidatorName
protected void setValidatorName(String validatorName)
-
getValidatorId
public String getValidatorId()
-
setValidatorId
protected void setValidatorId(String validatorId)
-
toContributionValidation
public ContributionValidation toContributionValidation()
-
-