public interface SourceStorage
| Modifier and Type | Method and Description |
|---|---|
Source |
getSource(Gadget gadget)
Return
Source object of gadget that name provided in gadget object param If can't find gadget with that name, return null If gadget is remote, throw Exception |
void |
removeSource(String sourcePath)
julien : this method does nothing and should be removed since now deleting a gadget in the gadget registry also deletes
the source for the local gadgets.
|
void |
saveSource(Gadget gadget,
Source source)
This method will save source to database to a specify path
|
Source getSource(Gadget gadget) throws Exception
Source object of gadget that name provided in gadget object param gadget - - Gadget object used to retrieved gadget's nameExceptionvoid saveSource(Gadget gadget, Source source) throws Exception
gadget - source - Exceptionvoid removeSource(String sourcePath)
sourcePath - the source pathCopyright © 2017 JBoss by Red Hat. All Rights Reserved.