@Override protected void removeFromRelationships(IdentityContext context, IdentityType identityType) { // First we build a list of all the relationships that the specified identity // is participating in List<?> relationshipsToRemove = findIdentityTypeRelationships(context, Relationship.class, identityType); // Now that we have the list, we can iterate through and remove the records for (Object relationship : relationshipsToRemove) { remove(context, convertToRelationshipType(context, relationship)); } }
@Override protected void removeFromRelationships(IdentityContext context, IdentityType identityType) { // First we build a list of all the relationships that the specified identity // is participating in List<?> relationshipsToRemove = findIdentityTypeRelationships(context, Relationship.class, identityType); // Now that we have the list, we can iterate through and remove the records for (Object relationship : relationshipsToRemove) { remove(context, convertToRelationshipType(context, relationship)); } }
for (Object parameterValue : identityParameterValues) { if (IdentityType.class.isInstance(parameterValue)) { entities = findIdentityTypeRelationships(context, query.getRelationshipClass(), (IdentityType) parameterValue); } else { throw MESSAGES.queryUnsupportedParameterValue("Relationship.IDENTITY", parameterValue);
for (Object parameterValue : identityParameterValues) { if (IdentityType.class.isInstance(parameterValue)) { entities = findIdentityTypeRelationships(context, query.getRelationshipClass(), (IdentityType) parameterValue); } else { throw MESSAGES.queryUnsupportedParameterValue("Relationship.IDENTITY", parameterValue);