@Named public class WidgetRepository extends AbstractRepository<Widget>
loader, path, persister, validator| Constructor and Description |
|---|
WidgetRepository(Path path,
JsonFileBasedPersister<Widget> fileBasedRepository,
JsonFileBasedLoader<Widget> widgetLoader,
BeanValidator validator,
Watcher watcher) |
| Modifier and Type | Method and Description |
|---|---|
List<Property> |
addProperty(String widgetId,
Property property) |
Widget |
create(Widget widget)
Create a new widget, computing id with widget name
|
void |
delete(String widgetId)
Deletes component by its id
|
List<Property> |
deleteProperty(String widgetId,
String propertyName) |
List<Widget> |
getByIds(Set<String> widgetIds) |
String |
getComponentName()
Return the component name
|
List<Property> |
updateProperty(String widgetId,
String propertyName,
Property property) |
containsObject, createComponentDirectory, exists, findByObjectId, findByObjectIds, get, getAll, getByUUID, getNextAvailableId, getPersister, markAsFavorite, resolvePath, resolvePathFolder, save, saveAll, unmarkAsFavorite, updateLastUpdateAndSave, walk, watch@Inject
public WidgetRepository(@Named(value="widgetPath")
Path path,
@Named(value="widgetFileBasedPersister")
JsonFileBasedPersister<Widget> fileBasedRepository,
@Named(value="widgetFileBasedLoader")
JsonFileBasedLoader<Widget> widgetLoader,
BeanValidator validator,
Watcher watcher)
public String getComponentName()
RepositorygetComponentName in interface Repository<Widget>getComponentName in class AbstractRepository<Widget>public void delete(String widgetId) throws RepositoryException, NotAllowedException, InUseException
Repositorydelete in interface Repository<Widget>delete in class AbstractRepository<Widget>RepositoryExceptionNotAllowedExceptionInUseExceptionpublic Widget create(Widget widget) throws IllegalArgumentException
IllegalArgumentExceptionpublic List<Property> updateProperty(String widgetId, String propertyName, Property property)
Copyright © 2020. All rights reserved.