public interface GadgetRegistryService
Created by The eXo Platform SAS
Jun 18, 2008
| Modifier and Type | Method and Description |
|---|---|
void |
deploy(Iterable<GadgetImporter> gadgets)
Deploy a set of gadgets.
|
List<Gadget> |
getAllGadgets()
Gets all of available gadgets from the database.
|
List<Gadget> |
getAllGadgets(Comparator<Gadget> sortComparator)
Gets all of available gadgets from the database.
The list of gadgets are sorted. |
String |
getCountry()
Return Country name, it's set in xml config of GadgetRegistryService
|
Gadget |
getGadget(String name)
Return Gadget object retrieved from database by its name.
|
String |
getGadgetURL(String gadgetName)
Get the URL of gadget from gadget definition.
|
String |
getHostName() |
String |
getLanguage() |
String |
getModuleId() |
boolean |
isGadgetDeveloper(String username)
Always return true
|
void |
removeGadget(String name)
Removes the gadget from the database.
|
void |
saveGadget(Gadget gadget)
Adds the gadget to the database.
|
void deploy(Iterable<GadgetImporter> gadgets)
gadgets - the gadgets to deployGadget getGadget(String name)
name - the name of gadgetList<Gadget> getAllGadgets() throws Exception
ExceptionList<Gadget> getAllGadgets(Comparator<Gadget> sortComparator)
sortComparator - The comparator is used to control the order of gadgetsvoid saveGadget(Gadget gadget) throws Exception
gadget - - Gadget that is saved to database, must not be nullExceptionvoid removeGadget(String name)
name - the name of gadgetboolean isGadgetDeveloper(String username)
username - String getCountry()
String getLanguage()
String getModuleId()
String getHostName()
String getGadgetURL(String gadgetName)
gadgetName - Copyright © 2018 JBoss by Red Hat. All Rights Reserved.