public class WidgetFileBasedPersister extends JsonFileBasedPersister<Widget>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
INDEX_METADATA, modelVersion, objectMapper, uidVersion, validator| Constructor and Description |
|---|
WidgetFileBasedPersister(JacksonObjectMapper objectMapper,
BeanValidator validator) |
| Modifier and Type | Method and Description |
|---|---|
Path |
getFilePath(Path directory,
String fileName) |
void |
save(Path directory,
Widget content)
Save an identifiable object in a json file
|
delete, jsonFile, refreshIndexing, removeFromIndex, saveInIndex, updateMetadatapublic WidgetFileBasedPersister(JacksonObjectMapper objectMapper, BeanValidator validator)
public void save(Path directory, Widget content) throws IOException
save in class JsonFileBasedPersister<Widget>IOExceptionCopyright © 2021. All rights reserved.