public class SourceStorageImpl extends Object implements SourceStorage
| Constructor and Description |
|---|
SourceStorageImpl(GadgetRegistryService gadgetRegistryService) |
| 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 |
String |
getSourceURI(String sourcePath) |
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
|
public SourceStorageImpl(GadgetRegistryService gadgetRegistryService)
public Source getSource(Gadget gadget) throws Exception
SourceStorageSource object of gadget that name provided in gadget object param getSource in interface SourceStoragegadget - - Gadget object used to retrieved gadget's nameExceptionpublic void saveSource(Gadget gadget, Source source) throws Exception
SourceStoragesaveSource in interface SourceStorageExceptionpublic void removeSource(String sourcePath)
SourceStorageremoveSource in interface SourceStoragesourcePath - the source pathCopyright © 2016 JBoss by Red Hat. All Rights Reserved.