| | |
| | | * A set of messages describing the changes that were made, any |
| | | * action that may be required, or any problems that were encountered. |
| | | */ |
| | | private List<LocalizableMessage> messages = new ArrayList<LocalizableMessage>(); |
| | | private final List<LocalizableMessage> messages = new ArrayList<LocalizableMessage>(); |
| | | |
| | | /** |
| | | * Indicates whether one or more of the changes requires |
| | |
| | | } |
| | | |
| | | /** |
| | | * Sets the provided result code for this config change result |
| | | * if the current result code is success. |
| | | * |
| | | * @param newResultCode |
| | | * The new result code for this config change result. |
| | | */ |
| | | public void setResultCodeIfSuccess(ResultCode newResultCode) { |
| | | if (getResultCode() == ResultCode.SUCCESS) { |
| | | setResultCode(newResultCode); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Indicates whether administrative action is required before one or more of |
| | | * the changes will take effect. |
| | | * |
| | |
| | | buffer.append(", messages={"); |
| | | |
| | | if (!messages.isEmpty()) { |
| | | Iterator<LocalizableMessage> iterator = messages.iterator(); |
| | | |
| | | LocalizableMessage firstMessage = iterator.next(); |
| | | buffer.append(firstMessage); |
| | | |
| | | final Iterator<LocalizableMessage> iterator = messages.iterator(); |
| | | buffer.append(iterator.next()); |
| | | while (iterator.hasNext()) { |
| | | buffer.append(","); |
| | | buffer.append(iterator.next()); |