Enum Class ChangeState
- All Implemented Interfaces:
Serializable
,Comparable<ChangeState>
,Constable
Used to keep track of the current state of
ChangeSummaries
and
ChangeSummaryGroups
.- Author:
- Chad Harchar (charchar)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that a summary, group or deployment has been approved by a reviewer.Indicates that a summary or group has been deployed to production and is now live.Indicates that a summary or group has been promoted by the user and is ready for review by a reviewer.Indicates that a summary, group or deployment has been scheduled for deployment at a future date and time.The beginning state for aChangeSummary
. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ChangeState>
Valid states that can successfully undergo a deployment.static ChangeState
Returns the enum constant of this class with the specified name.static ChangeState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USER
The beginning state for aChangeSummary
. Indicates that the change is in the User's sandbox only and can be further promoted or reverted along with other changes. This is not applicable toChangeSummaryGroups
. -
PROMOTED
Indicates that a summary or group has been promoted by the user and is ready for review by a reviewer. The reviewer can perform the actions of approving or rejecting on these changes. -
APPROVED
Indicates that a summary, group or deployment has been approved by a reviewer. -
SCHEDULED
Indicates that a summary, group or deployment has been scheduled for deployment at a future date and time. -
DEPLOYED
Indicates that a summary or group has been deployed to production and is now live.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
validForDeployment
Valid states that can successfully undergo a deployment. By default,APPROVED
andSCHEDULED
, which means they are qualified to be apart of the deployment and go forward.- Returns:
- the valid states that can be deployed
-