Interface GadgetsService
public interface GadgetsService
-
Method Summary
Modifier and TypeMethodDescriptionaddGadget(GadgetBean gadgetBean) Add one single gadget.voiddeleteGadget(long id) Deletes a single gadgetvoiddeleteGadgets(boolean force) Deletes all gadgetsgetGadget(long id) Gets a single gadget.Gets all gadgets.setGadget(long id, GadgetBean gadgetBean) Updates a single gadgets.setGadgets(GadgetsBean gadgetsBean) Sets or updates the gadgets set.
-
Method Details
-
getGadgets
GadgetsBean getGadgets()Gets all gadgets.- Returns:
- the gadgets
-
getGadget
Gets a single gadget.- Parameters:
id- the gadget id to query- Returns:
- the gadget
-
setGadgets
Sets or updates the gadgets set.- Parameters:
gadgetsBean- the gadgets bean- Returns:
- the updated gadgets
-
setGadget
Updates a single gadgets.- Parameters:
id- the gadget id to updategadgetBean- the gadgets bean- Returns:
- the updated gadgets
-
addGadget
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
-