org.silverpeas.contribution
Enum ContributionStatus
java.lang.Object
java.lang.Enum<ContributionStatus>
org.silverpeas.contribution.ContributionStatus
- All Implemented Interfaces:
- Serializable, Comparable<ContributionStatus>
public enum ContributionStatus
- extends Enum<ContributionStatus>
Defines the different possible status in which a contribution must be.
UNKNOWN
public static final ContributionStatus UNKNOWN
DRAFT
public static final ContributionStatus DRAFT
PENDING_VALIDATION
public static final ContributionStatus PENDING_VALIDATION
REFUSED
public static final ContributionStatus REFUSED
VALIDATED
public static final ContributionStatus VALIDATED
values
public static ContributionStatus[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ContributionStatus c : ContributionStatus.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ContributionStatus valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getName
public String getName()
from
public static ContributionStatus from(String name)
isInDraft
public boolean isInDraft()
isRefused
public boolean isRefused()
isPendingValidation
public boolean isPendingValidation()
isValidated
public boolean isValidated()
Copyright © 2016 Silverpeas. All Rights Reserved.