Class PendingChange
java.lang.Object
org.apache.juneau.petstore.service.PendingChange
One staged inline edit of a pet field, waiting on the Pending changes page to be applied or discarded.
Example:
PendingChange
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetField()longgetId()longgetPetId()getState()setId(long value) setMessage(String value) setNewValue(String value) setOldValue(String value) setPetId(long value) setState(PendingChange.State value) setSummary(String value)
-
Constructor Details
-
PendingChange
public PendingChange()
-
-
Method Details
-
getId
- Returns:
- The change id, increasing in staging order.
-
setId
- Parameters:
value- The change id, increasing in staging order.- Returns:
- This object.
-
getPetId
- Returns:
- The id of the pet the change targets.
-
setPetId
- Parameters:
value- The id of the pet the change targets.- Returns:
- This object.
-
getField
- Returns:
- The staged field, one of
"name","price","species","status"or"tags".
-
setField
- Parameters:
value- The staged field, one of"name","price","species","status"or"tags".- Returns:
- This object.
-
getOldValue
- Returns:
- The field value when the change was staged.
-
setOldValue
- Parameters:
value- The field value when the change was staged.- Returns:
- This object.
-
getNewValue
- Returns:
- The staged new value.
-
setNewValue
- Parameters:
value- The staged new value.- Returns:
- This object.
-
getState
- Returns:
- The lifecycle state.
-
setState
- Parameters:
value- The lifecycle state.- Returns:
- This object.
-
getAuthor
- Returns:
- Who staged the change.
-
setAuthor
- Parameters:
value- Who staged the change.- Returns:
- This object.
-
getSummary
- Returns:
- A short human-readable summary of the change.
-
setSummary
- Parameters:
value- A short human-readable summary of the change.- Returns:
- This object.
-
getMessage
- Returns:
- The failure text when the state is
FAILED, otherwisenull .
-
setMessage
- Parameters:
value- The failure text when the state isFAILED, otherwisenull .- Returns:
- This object.
-