public class WidgetFileBasedLoader extends JsonFileBasedLoader<Widget>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
objectMapper, type| Constructor and Description |
|---|
WidgetFileBasedLoader(JacksonObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Path directory,
String widgetId)
Find if an object is used in another objects.
|
List<Widget> |
findByObjectId(Path directory,
String objectId)
Find all the objects which contain an object id.
|
Widget |
get(Path path) |
Widget |
getByUUID(Path directory,
String uuid) |
Widget |
load(Path path)
Use to load the component in the path directory
|
List<Widget> |
loadAllCustom(Path widgetsFolder) |
findByObjectIds, indexOfgetAll, getAll, getNextAvailableObjectId, loadAll, loadAll, loadAll, resolve@Inject public WidgetFileBasedLoader(JacksonObjectMapper objectMapper)
public List<Widget> findByObjectId(Path directory, String objectId) throws IOException
LoaderfindByObjectId in interface Loader<Widget>findByObjectId in class JsonFileBasedLoader<Widget>IOExceptionpublic boolean contains(Path directory, String widgetId) throws IOException
Loadercontains in interface Loader<Widget>contains in class JsonFileBasedLoader<Widget>IOExceptionpublic List<Widget> loadAllCustom(Path widgetsFolder) throws IOException
IOExceptionpublic Widget getByUUID(Path directory, String uuid) throws IOException
getByUUID in interface Loader<Widget>getByUUID in class JsonFileBasedLoader<Widget>IOExceptionCopyright © 2021. All rights reserved.