protected View resolveView() { View view = this.view; if (view == null && viewName != null) { view = getViewRepository().getView(container.getEntityMetaClass(), viewName); } if (view == null) { view = container.getView(); } return view; }
protected Collection<MetaPropertyPath> getAutowiredProperties(EntityTableItems<E> entityTableSource) { if (entityTableSource instanceof ContainerDataUnit) { CollectionContainer container = ((ContainerDataUnit) entityTableSource).getContainer(); return container.getView() != null ? // if a view is specified - use view properties metadataTools.getViewPropertyPaths(container.getView(), container.getEntityMetaClass()) : // otherwise use all properties from meta-class metadataTools.getPropertyPaths(container.getEntityMetaClass()); } if (entityTableSource instanceof DatasourceDataUnit) { CollectionDatasource datasource = ((DatasourceDataUnit) entityTableSource).getDatasource(); return datasource.getView() != null ? // if a view is specified - use view properties metadataTools.getViewPropertyPaths(datasource.getView(), datasource.getMetaClass()) : // otherwise use all properties from meta-class metadataTools.getPropertyPaths(datasource.getMetaClass()); } return Collections.emptyList(); }
protected Collection<MetaPropertyPath> getAutowiredProperties(EntityDataGridItems<E> entityTableSource) { if (entityTableSource instanceof ContainerDataUnit) { CollectionContainer container = ((ContainerDataUnit) entityTableSource).getContainer(); return container.getView() != null ? // if a view is specified - use view properties metadataTools.getViewPropertyPaths(container.getView(), container.getEntityMetaClass()) : // otherwise use all properties from meta-class metadataTools.getPropertyPaths(container.getEntityMetaClass()); } if (entityTableSource instanceof DatasourceDataUnit) { CollectionDatasource datasource = ((DatasourceDataUnit) entityTableSource).getDatasource(); return datasource.getView() != null ? // if a view is specified - use view properties metadataTools.getViewPropertyPaths(datasource.getView(), datasource.getMetaClass()) : // otherwise use all properties from meta-class metadataTools.getPropertyPaths(datasource.getMetaClass()); } return Collections.emptyList(); }