public class EntryCacheCommon.ConfigErrorHandler extends Object
Constructor and Description |
---|
ConfigErrorHandler(EntryCacheCommon.ConfigPhase configPhase,
List<LocalizableMessage> unacceptableReasons,
List<LocalizableMessage> errorMessages)
Create an error handler.
|
Modifier and Type | Method and Description |
---|---|
EntryCacheCommon.ConfigPhase |
getConfigPhase()
Get the current configuration phase.
|
List<LocalizableMessage> |
getErrorMessages()
Get the current error messages.
|
boolean |
getIsAcceptable()
Get the current isAcceptable flag.
|
boolean |
getIsAdminActionRequired()
Get the current isAdminActionRequired flag as determined after apply action has been taken on a given
configuration.
|
ResultCode |
getResultCode()
Get the current result code that was elaborated right after a configuration has been applied.
|
List<LocalizableMessage> |
getUnacceptableReasons()
Get the current unacceptable reasons.
|
void |
reportError(LocalizableMessage error,
boolean isAcceptable,
ResultCode resultCode)
Report an error.
|
public ConfigErrorHandler(EntryCacheCommon.ConfigPhase configPhase, List<LocalizableMessage> unacceptableReasons, List<LocalizableMessage> errorMessages)
configPhase
- the configuration phase for which the error handler is usedunacceptableReasons
- the reasons why the configuration cannot be applied (during PHASE_ACCEPTABLE phase)errorMessages
- the errors found when applying a new configuration (during PHASE_APPLY phase)public void reportError(LocalizableMessage error, boolean isAcceptable, ResultCode resultCode)
error
- the error to reportisAcceptable
- true
if the configuration is acceptableresultCode
- the change result for the current configurationpublic ResultCode getResultCode()
public boolean getIsAcceptable()
public List<LocalizableMessage> getUnacceptableReasons()
public List<LocalizableMessage> getErrorMessages()
public EntryCacheCommon.ConfigPhase getConfigPhase()
public boolean getIsAdminActionRequired()
Copyright 2010-2022 ForgeRock AS.