Class Actions

java.lang.Object
org.bgerp.action.base.Actions

public class Actions extends Object
Action's registry
  • Constructor Details

    • Actions

      public Actions()
  • Method Details

    • init

      public static void init(Iterable<Plugin> plugins)
    • getById

      public static Actions.Action getById(String id)
      Gets an action by its ID
      Parameters:
      id - the ID
      Returns:
      the action or null
    • getByClass

      public static Actions.Action getByClass(Class<? extends BaseAction> clazz)
      Gets an action by its class
      Parameters:
      clazz - the class
      Returns:
      the action or null
    • actions

      public static Collection<Actions.Action> actions()
      All the actions
      Returns:
      collection with all registered actions