Interface GadgetsService


public interface GadgetsService
  • Method Details

    • getGadgets

      GadgetsBean getGadgets()
      Gets all gadgets.
      Returns:
      the gadgets
    • getGadget

      GadgetBean getGadget(long id)
      Gets a single gadget.
      Parameters:
      id - the gadget id to query
      Returns:
      the gadget
    • setGadgets

      GadgetsBean setGadgets(@NotNull GadgetsBean gadgetsBean)
      Sets or updates the gadgets set.
      Parameters:
      gadgetsBean - the gadgets bean
      Returns:
      the updated gadgets
    • setGadget

      GadgetBean setGadget(long id, @NotNull GadgetBean gadgetBean)
      Updates a single gadgets.
      Parameters:
      id - the gadget id to update
      gadgetBean - the gadgets bean
      Returns:
      the updated gadgets
    • addGadget

      GadgetBean addGadget(@NotNull GadgetBean gadgetBean)
      Add one single gadget.
      Parameters:
      gadgetBean - the gadget bean to add
      Returns:
      the added gadget
    • deleteGadgets

      void deleteGadgets(boolean force)
      Deletes all gadgets
      Parameters:
      force - must be set to 'true' in order to delete all entries
    • deleteGadget

      void deleteGadget(long id)
      Deletes a single gadget
      Parameters:
      id - the gadget id to delete