Class ActionModelImpl

java.lang.Object
ch.tocco.nice2.model.base.api.actions.ActionModelImpl
All Implemented Interfaces:
ActionModel

public class ActionModelImpl extends Object implements ActionModel
I need the class in the API because the FormFacade must be able to create one.
  • Field Details

    • name

      public final String name
    • action

      public final String action
    • pattern

      @Nullable public final @Nullable Pattern pattern
    • scopes

      @Nullable public final @Nullable Set<String> scopes
    • component

      @Nullable public final @Nullable String component
    • group

      @Nullable public final @Nullable String group
    • order

      @Nullable public final @Nullable Integer order
    • label

      public final String label
  • Constructor Details

  • Method Details

    • matchesPattern

      public boolean matchesPattern(String formName)
      Description copied from interface: ActionModel
      Tells if the given formName matches the required pattern. If there is no pattern in use then everything matches.
      Specified by:
      matchesPattern in interface ActionModel
    • matchesScope

      public boolean matchesScope(String scope)
      Description copied from interface: ActionModel
      Tells if the given scope matches the scopes for which this action is. If no scopes were configured then all match.
      Specified by:
      matchesScope in interface ActionModel
    • matchesComponent

      public boolean matchesComponent(String componentType)
      Tells if the model matches the expected component Type.
      Specified by:
      matchesComponent in interface ActionModel
      Parameters:
      componentType - For example "form" or "template".
    • getName

      public String getName()
      Specified by:
      getName in interface ActionModel
    • getAction

      public String getAction()
      Specified by:
      getAction in interface ActionModel
    • getPattern

      @Nullable public @Nullable Pattern getPattern()
      Specified by:
      getPattern in interface ActionModel
    • getScopes

      @Nullable public @Nullable Set<String> getScopes()
      Specified by:
      getScopes in interface ActionModel
    • getGroup

      @Nullable public @Nullable String getGroup()
      Specified by:
      getGroup in interface ActionModel
    • getOrder

      @Nullable public @Nullable Integer getOrder()
      Specified by:
      getOrder in interface ActionModel
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface ActionModel