Class AbstractModelActionFactory

java.lang.Object
ch.tocco.nice2.netui.spi.actions.AbstractActionFactory
ch.tocco.nice2.netui.impl.actions.entityoperation.AbstractModelActionFactory
All Implemented Interfaces:
ActionFactory
Direct Known Subclasses:
ColumnModelActionFactory, FormModelActionFactory

public abstract class AbstractModelActionFactory extends AbstractActionFactory
  • Field Details

    • log

      protected final org.slf4j.Logger log
    • formModel

      protected final FormModel formModel
  • Constructor Details

    • AbstractModelActionFactory

      protected AbstractModelActionFactory(ActionsBuilder actionBuilder, org.slf4j.Logger log, FormModel formModel)
  • Method Details

    • createGroup

      @Nullable protected @Nullable ActionGroupModel createGroup(Situation situation, Action action, String formName, Integer position)
      Creates an action group from the specified component. This makes only sense, if the children list is not empty.
      Parameters:
      formName - for more descriptive exception message
    • createSingleAction

      protected ActionModel createSingleAction(Action action, Integer position)
      Creates a single action from the specified component.
    • transferProperties

      protected void transferProperties(Action action, ActionModel model)
      Copies the action properties from the component to the model.
    • createAction

      @Nullable protected @Nullable ActionModel createAction(Situation situation, Action action, String formName, Integer position)
      Creates an action model from the specified action. The corresponding model is either an action group or a single action depending on the children list of the specified action component.
      Parameters:
      formName - for more descriptive exception message
    • isInScope

      protected boolean isInScope(Situation situation, Set<String> scopes)
    • getActionName

      protected String getActionName(Action action)
    • getForm

      @Nullable protected @Nullable Form getForm(Situation situation)