|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GadgetRegistryService
This service is used to register the gadget with portal. Developer uses this service to manage list of gadgets.
Created by The eXo Platform SAS
Jun 18, 2008
| Method Summary | |
|---|---|
java.util.List<Gadget> |
getAllGadgets()
Gets all of available gadgets from the database. |
java.util.List<Gadget> |
getAllGadgets(java.util.Comparator<Gadget> sortComparator)
Gets all of available gadgets from the database. The list of gadgets are sorted. |
Gadget |
getGadget(java.lang.String name)
Gets the gadget from database by name. |
boolean |
isGadgetDeveloper(java.lang.String username)
|
void |
removeGadget(java.lang.String name)
Removes the gadget from the database. |
void |
saveGadget(Gadget gadget)
Adds the gadget to the database. |
| Method Detail |
|---|
Gadget getGadget(java.lang.String name)
throws java.lang.Exception
name - the name of gadget
java.lang.Exception
java.util.List<Gadget> getAllGadgets()
throws java.lang.Exception
java.lang.Exception
java.util.List<Gadget> getAllGadgets(java.util.Comparator<Gadget> sortComparator)
throws java.lang.Exception
sortComparator - The comparator is used to control the order of gadgets
java.lang.Exception
void saveGadget(Gadget gadget)
throws java.lang.Exception
app - the gadget that is saved to database
java.lang.Exception
void removeGadget(java.lang.String name)
throws java.lang.Exception
id - the id of gadget
java.lang.Exceptionboolean isGadgetDeveloper(java.lang.String username)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||