Boolean currentRemovePropagations = currentClassification.getRemovePropagationsOnEntityDelete(); Boolean updatedRemovePropagations = classification.getRemovePropagationsOnEntityDelete();
Boolean currentRemovePropagations = currentClassification.getRemovePropagationsOnEntityDelete(); Boolean updatedRemovePropagations = classification.getRemovePropagationsOnEntityDelete();
String classificationName = classification.getTypeName(); Boolean propagateTags = classification.isPropagate(); Boolean removePropagations = classification.getRemovePropagationsOnEntityDelete();
String classificationName = classification.getTypeName(); Boolean propagateTags = classification.isPropagate(); Boolean removePropagations = classification.getRemovePropagationsOnEntityDelete();
private AtlasEdge mapClassification(EntityOperation operation, final EntityMutationContext context, AtlasClassification classification, AtlasEntityType entityType, AtlasVertex parentInstanceVertex, AtlasVertex traitInstanceVertex) throws AtlasBaseException { if (classification.getValidityPeriods() != null) { String strValidityPeriods = AtlasJson.toJson(classification.getValidityPeriods()); AtlasGraphUtilsV2.setEncodedProperty(traitInstanceVertex, CLASSIFICATION_VALIDITY_PERIODS_KEY, strValidityPeriods); } else { // if 'null', don't update existing value in the classification } if (classification.isPropagate() != null) { AtlasGraphUtilsV2.setEncodedProperty(traitInstanceVertex, CLASSIFICATION_VERTEX_PROPAGATE_KEY, classification.isPropagate()); } if (classification.getRemovePropagationsOnEntityDelete() != null) { AtlasGraphUtilsV2.setEncodedProperty(traitInstanceVertex, CLASSIFICATION_VERTEX_REMOVE_PROPAGATIONS_KEY, classification.getRemovePropagationsOnEntityDelete()); } // map all the attributes to this newly created AtlasVertex mapAttributes(classification, traitInstanceVertex, operation, context); AtlasEdge ret = getClassificationEdge(parentInstanceVertex, traitInstanceVertex); if (ret == null) { ret = graphHelper.addClassificationEdge(parentInstanceVertex, traitInstanceVertex, false); } return ret; }
private AtlasEdge mapClassification(EntityOperation operation, final EntityMutationContext context, AtlasClassification classification, AtlasEntityType entityType, AtlasVertex parentInstanceVertex, AtlasVertex traitInstanceVertex) throws AtlasBaseException { if (classification.getValidityPeriods() != null) { String strValidityPeriods = AtlasJson.toJson(classification.getValidityPeriods()); AtlasGraphUtilsV2.setEncodedProperty(traitInstanceVertex, CLASSIFICATION_VALIDITY_PERIODS_KEY, strValidityPeriods); } else { // if 'null', don't update existing value in the classification } if (classification.isPropagate() != null) { AtlasGraphUtilsV2.setEncodedProperty(traitInstanceVertex, CLASSIFICATION_VERTEX_PROPAGATE_KEY, classification.isPropagate()); } if (classification.getRemovePropagationsOnEntityDelete() != null) { AtlasGraphUtilsV2.setEncodedProperty(traitInstanceVertex, CLASSIFICATION_VERTEX_REMOVE_PROPAGATIONS_KEY, classification.getRemovePropagationsOnEntityDelete()); } // map all the attributes to this newly created AtlasVertex mapAttributes(classification, traitInstanceVertex, operation, context); AtlasEdge ret = getClassificationEdge(parentInstanceVertex, traitInstanceVertex); if (ret == null) { ret = graphHelper.addClassificationEdge(parentInstanceVertex, traitInstanceVertex, false); } return ret; }
public AtlasClassification(AtlasClassification other) { if (other != null) { setTypeName(other.getTypeName()); setAttributes(other.getAttributes()); setEntityGuid(other.getEntityGuid()); setEntityStatus(other.getEntityStatus()); setPropagate(other.isPropagate()); setValidityPeriods(other.getValidityPeriods()); setRemovePropagationsOnEntityDelete(other.getRemovePropagationsOnEntityDelete()); } }