private boolean hasInverseRelation(String relationName) { String inverseField = getInverseRelationField(relationName); return inverseField != null && !inverseField.isEmpty(); }
private boolean hasInverseRelation(String relationName) { String inverseField = getInverseRelationField(relationName); return inverseField != null && !inverseField.isEmpty(); }
/** * Nulls the relationship or attribute and checks update permissions. * Invokes the set[fieldName] method on the target object OR set the field with the corresponding name. * @param fieldName the field name to set or invoke equivalent set method * @param oldValue the old value */ protected void nullValue(String fieldName, PersistentResource oldValue) { if (oldValue == null) { return; } String inverseField = getInverseRelationField(fieldName); if (!inverseField.isEmpty()) { oldValue.checkFieldAwareDeferPermissions(UpdatePermission.class, inverseField, null, getObject()); } this.setValueChecked(fieldName, null); }
/** * Nulls the relationship or attribute and checks update permissions. * Invokes the set[fieldName] method on the target object OR set the field with the corresponding name. * @param fieldName the field name to set or invoke equivalent set method * @param oldValue the old value */ protected void nullValue(String fieldName, PersistentResource oldValue) { if (oldValue == null) { return; } String inverseField = getInverseRelationField(fieldName); if (!inverseField.isEmpty()) { oldValue.checkFieldAwareDeferPermissions(UpdatePermission.class, inverseField, null, getObject()); } this.setValueChecked(fieldName, null); }
); String inverseField = getInverseRelationField(collectionName); if (!isInverseCheck && !inverseField.isEmpty()) {
); String inverseField = getInverseRelationField(collectionName); if (!isInverseCheck && !inverseField.isEmpty()) {
String inverseField = getInverseRelationField(relationName);
String inverseField = getInverseRelationField(relationName);