@Override public void updateAttributedType(IdentityContext context, final AttributedType attributedType) { AttributedType updatedAttributedType = cloneAttributedType(context, (attributedType)); if (IdentityType.class.isInstance(attributedType)) { storeIdentityType(context, (IdentityType) updatedAttributedType); } else if (Relationship.class.isInstance(attributedType)) { storeRelationshipType((Relationship) updatedAttributedType); } }
@Override public void updateAttributedType(IdentityContext context, final AttributedType attributedType) { AttributedType updatedAttributedType = cloneAttributedType(context, (attributedType)); if (IdentityType.class.isInstance(attributedType)) { storeIdentityType(context, (IdentityType) updatedAttributedType); } else if (Relationship.class.isInstance(attributedType)) { storeRelationshipType((Relationship) updatedAttributedType); } }
@Override public void addAttributedType(IdentityContext context, final AttributedType attributedType) { AttributedType clonedAttributedType = cloneAttributedType(context, attributedType); if (IdentityType.class.isInstance(clonedAttributedType)) { storeIdentityType(context, (IdentityType) clonedAttributedType); } else if (Relationship.class.isInstance(clonedAttributedType)) { storeRelationshipType((Relationship) clonedAttributedType); } else { this.fileDataSource.getAttributedTypes().put(attributedType.getId(), new FileAttributedType(attributedType)); } }
@Override public void addAttributedType(IdentityContext context, final AttributedType attributedType) { AttributedType clonedAttributedType = cloneAttributedType(context, attributedType); if (IdentityType.class.isInstance(clonedAttributedType)) { storeIdentityType(context, (IdentityType) clonedAttributedType); } else if (Relationship.class.isInstance(clonedAttributedType)) { storeRelationshipType((Relationship) clonedAttributedType); } else { this.fileDataSource.getAttributedTypes().put(attributedType.getId(), new FileAttributedType(attributedType)); } }