/** * {@inheritDoc} */ public List<ISubViewDescriptor> getColumnViewDescriptors() { if (columnViewDescriptors == null) { ICollectionDescriptorProvider<?> modelDescriptor = ((ICollectionDescriptorProvider<?>) getModelDescriptor()); IComponentDescriptor<?> rowModelDescriptor = modelDescriptor .getCollectionDescriptor().getElementDescriptor(); List<String> modelRenderedProperties = rowModelDescriptor .getRenderedProperties(); if (modelDescriptor instanceof ICollectionPropertyDescriptor && ((ICollectionPropertyDescriptor<?>) modelDescriptor) .getReverseRelationEnd() != null) { modelRenderedProperties .remove(((ICollectionPropertyDescriptor<?>) modelDescriptor) .getReverseRelationEnd().getName()); } List<ISubViewDescriptor> defaultColumnViewDescriptors = new ArrayList<ISubViewDescriptor>(); for (String renderedProperty : modelRenderedProperties) { BasicSubviewDescriptor columnDescriptor = new BasicSubviewDescriptor(); columnDescriptor.setName(renderedProperty); columnDescriptor.setGrantedRoles(rowModelDescriptor .getPropertyDescriptor(renderedProperty).getGrantedRoles()); defaultColumnViewDescriptors.add(columnDescriptor); } return defaultColumnViewDescriptors; } return columnViewDescriptors; }
ICollectionPropertyDescriptor<?> collectionDescriptor = collectionEntry.getValue(); Class<?> masterContract = null; if (collectionDescriptor.getReverseRelationEnd() instanceof IReferencePropertyDescriptor<?>) { masterContract = ((IReferencePropertyDescriptor<?>) collectionDescriptor.getReverseRelationEnd()) .getReferencedDescriptor().getComponentContract(); } else if (collectionDescriptor.getReverseRelationEnd() instanceof ICollectionPropertyDescriptor<?>) { masterContract = ((ICollectionPropertyDescriptor<?>) collectionDescriptor.getReverseRelationEnd()) .getReferencedDescriptor().getElementDescriptor().getComponentContract();
propertyDescriptor.preprocessAdder(proxy, collectionProperty, value); IRelationshipEndPropertyDescriptor reversePropertyDescriptor = propertyDescriptor.getReverseRelationEnd(); if (reversePropertyDescriptor != null) { if (reversePropertyDescriptor instanceof IReferencePropertyDescriptor<?>) {
} else if (modelDescriptor instanceof ICollectionPropertyDescriptor) { IRelationshipEndPropertyDescriptor reverseDescriptor = ((ICollectionPropertyDescriptor<?>) modelDescriptor) .getReverseRelationEnd(); if (reverseDescriptor instanceof IComponentDescriptorProvider) { ((IModelGate) clonedGate)
} else if (modelDescriptor instanceof ICollectionPropertyDescriptor) { IRelationshipEndPropertyDescriptor reverseDescriptor = ((ICollectionPropertyDescriptor<?>) modelDescriptor) .getReverseRelationEnd(); if (reverseDescriptor instanceof IComponentDescriptorProvider) { ((IModelGate) clonedGate)
} else if (modelDescriptor instanceof ICollectionPropertyDescriptor) { IRelationshipEndPropertyDescriptor reverseDescriptor = ((ICollectionPropertyDescriptor<?>) modelDescriptor) .getReverseRelationEnd(); if (reverseDescriptor instanceof IComponentDescriptorProvider) { ((IModelGate) clonedGate)
if (((ICollectionPropertyDescriptor<?>) propertyDescriptor).getReverseRelationEnd() != null) { IPropertyDescriptor reversePropertyDescriptor = ((ICollectionPropertyDescriptor<?>) propertyDescriptor) .getReverseRelationEnd(); for (Object collectionElement : new ArrayList<>((Collection<?>) propertyValue)) { if (collectionElement instanceof IComponent && !clearedEntities.contains(collectionElement)) {
IRelationshipEndPropertyDescriptor reversePropertyDescriptor = propertyDescriptor.getReverseRelationEnd(); if (reversePropertyDescriptor != null) { if (reversePropertyDescriptor instanceof IReferencePropertyDescriptor<?>) {