use of com.runwaysdk.dataaccess.metadata.MdAttributeDAO in project geoprism-registry by terraframe.
the class PatchExistsAndInvalid method enforceInvalidRequired.
private void enforceInvalidRequired() {
List<Universal> unis = PatchExistsAndInvalid.getUniversals();
for (Universal uni : unis) {
ServerGeoObjectType type = new ServerGeoObjectTypeConverter().build(uni);
MdGraphClassDAOIF mdClass = type.getMdVertex();
logger.info("Setting invalid mdAttr to required for class [" + mdClass.getKey() + "].");
MdAttributeDAO invalidMdAttr = (MdAttributeDAO) mdClass.definesAttribute(DefaultAttribute.INVALID.getName());
invalidMdAttr.setValue(MdAttributeConcreteInfo.REQUIRED, MdAttributeBooleanInfo.TRUE);
invalidMdAttr.apply();
}
}
Aggregations