use of org.jowidgets.workbench.toolkit.api.IComponentNodeModel in project jo-client-platform by jo-source.
the class EntityComponentNodesFactoryImpl method createNodes.
@Override
public List<IComponentNodeModel> createNodes(final IEntityApplicationService entityApplicationService) {
Assert.paramNotNull(entityApplicationService, "entityApplicationService");
final List<IComponentNodeModel> result = new LinkedList<IComponentNodeModel>();
Collection<IEntityApplicationNode> entities = entityApplicationService.getApplicationNodes();
for (final IEntityComponentNodesFactoryPlugin plugin : PluginProvider.getPlugins(IEntityComponentNodesFactoryPlugin.ID)) {
entities = plugin.modify(entities);
}
for (final IEntityApplicationNode entityNode : entities) {
result.add(createNodeFromEntity(entityNode));
}
return result;
}
Aggregations