Package com.im.df.api
Interface DFSchemaProvider.State
-
- Enclosing interface:
- DFSchemaProvider
public static interface DFSchemaProvider.StateThe schema init step interface. All schema init steps implement this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.StringgetName()Gets the name of this step.java.lang.StringgetNextPhaseCommand()Gets the command text for the next step.java.lang.StringgetNextPhaseProgressName()Gets the progress bar text for the next step.java.lang.ObjectgetOptions()Gets the options bean for this step.DFSchemaProvider.StepInfogetResult()Gets the result of this step.DFSchemagetSchema()Gets the IJC schema, if available.booleanisInitial()Determines whether this step is the initial step.default booleanisMandatory()Tells if this step is mandatory.default booleanrequiresConfirmation()Tells if this step requires user confirmation.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Gets the name of this step. For example "disconnected", "logged in" etc.- Returns:
- The name of this schema init step.
-
getNextPhaseCommand
java.lang.String getNextPhaseCommand()
Gets the command text for the next step. This text is usually used as a button text, for example "Login", "Connect", etc.- Returns:
- The next step command name.
-
getNextPhaseProgressName
java.lang.String getNextPhaseProgressName()
Gets the progress bar text for the next step. For example "Logging", "Connecting", etc.- Returns:
- The next step progress bar text.
-
getOptions
java.lang.Object getOptions()
Gets the options bean for this step. The object returned from this method is treated as a javabean and should have a bean info and a customizer available.- Returns:
- The options javabean or
null.
-
getSchema
DFSchema getSchema()
Gets the IJC schema, if available. The final step in the schema init process should return theDFSchemathat was created during the process. All other steps should returnnull. If the schema instance can't be created for any reason even the final schema init step can returnnull.- Returns:
- The active IJC schema instance.
-
getResult
DFSchemaProvider.StepInfo getResult()
Gets the result of this step.- Returns:
- The result.
-
isInitial
boolean isInitial()
Determines whether this step is the initial step. The initial step is the first step in the schema init process.- Returns:
trueif this step is the initial schema init step,falseotherwise
-
isMandatory
default boolean isMandatory()
Tells if this step is mandatory. If the step is mandatory and not performed, next schema step cannot be done.- Returns:
trueif this step is mandatory,falseotherwise- Since:
- 21.15.0
-
requiresConfirmation
default boolean requiresConfirmation()
Tells if this step requires user confirmation. This is useful for steps that are not reversible.- Returns:
trueif this step needs to be confirmed by a user (admin),falseotherwise- Since:
- 21.15.0
-
-