Package org.bgerp.action.base

# Class Actions

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

public class Actions extends Object
Action's registry

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static class`
  `Actions.Action`
  Action, a class with methods, called by HTTP

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Actions()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Collection<Actions.Action>`
  `actions()`
  All the actions
  `static Actions.Action`
  `getByClass(Class<? extends BaseAction> clazz)`
  Gets an action by its class
  `static Actions.Action`
  `getById(String id)`
  Gets an action by its ID
  `static void`
  `init(Iterable<Plugin> plugins)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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