|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.silverpeas.contribution.model.ContributionValidation
@Embeddable public class ContributionValidation
This embeddable entity permits to get a common management of contribution validation persistence.
| Constructor Summary | |
|---|---|
ContributionValidation()
Constructs an empty contribution validation. |
|
ContributionValidation(ContributionStatus status,
UserDetail validator,
Date validationDate)
Constructs a contribution validation that was done by the specified validator at the given date. |
|
ContributionValidation(ContributionStatus status,
UserDetail validator,
Date validationDate,
String comment)
Constructs a contribution validation that was done by the specified validator at the given date and with the specified comment. |
|
| Method Summary | |
|---|---|
String |
getComment()
Gets the comment written by the validator of the contribution. |
Date |
getDate()
Gets the date of the validation of the contribution. |
ContributionStatus |
getStatus()
Gets the status of the validation of the contribution. |
UserDetail |
getValidator()
Gets the validator of the contribution. |
boolean |
isInDraft()
Is that the status of the contribution is draft? |
boolean |
isPendingValidation()
Is that the status of the contribution is pending validation? |
boolean |
isRefused()
Is that the status of the contribution is refused? |
boolean |
isValidated()
Is that the status of the contribution is validated? |
void |
setComment(String validationComment)
Sets the comment written by the validator of the contribution. |
void |
setDate(Date validationDate)
Sets the date of the effective validation of the contribution. |
void |
setStatus(ContributionStatus status)
Sets the status of the effective validation of the contribution. |
void |
setValidator(UserDetail validator)
Sets the validator of the contribution. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContributionValidation()
public ContributionValidation(ContributionStatus status,
UserDetail validator,
Date validationDate)
status - the status of the validation.validator - the validator that emitted this validation.validationDate - the date at which this validation was done.
public ContributionValidation(ContributionStatus status,
UserDetail validator,
Date validationDate,
String comment)
status - the status of the validation.validator - the validator that emitted this validation.validationDate - the date at which this validation was done.comment - the comment about validation done by the validator.| Method Detail |
|---|
public boolean isInDraft()
public boolean isRefused()
public boolean isPendingValidation()
public boolean isValidated()
public ContributionStatus getStatus()
public void setStatus(ContributionStatus status)
status - the status of the validation.public Date getDate()
public void setDate(Date validationDate)
validationDate - the date of the validation.public String getComment()
public void setComment(String validationComment)
validationComment - the comment written by the validator.public UserDetail getValidator()
public void setValidator(UserDetail validator)
validator - the validator of the contribution.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||