public AtlasRelatedObjectId(String guid, String typeName, AtlasEntity.Status entityStatus, String relationshipGuid, AtlasRelationship.Status relationshipStatus, AtlasStruct relationshipAttributes) { super(guid, typeName); setEntityStatus(entityStatus); setRelationshipGuid(relationshipGuid); setRelationshipStatus(relationshipStatus); setRelationshipAttributes(relationshipAttributes); }
public AtlasRelatedObjectId(String guid, String typeName, AtlasEntity.Status entityStatus, String relationshipGuid, AtlasRelationship.Status relationshipStatus, AtlasStruct relationshipAttributes) { super(guid, typeName); setEntityStatus(entityStatus); setRelationshipGuid(relationshipGuid); setRelationshipStatus(relationshipStatus); setRelationshipAttributes(relationshipAttributes); }
public AtlasRelatedObjectId(String guid, String typeName, AtlasEntity.Status entityStatus, Map<String, Object> uniqueAttributes, String displayText, String relationshipGuid, AtlasRelationship.Status relationshipStatus, AtlasStruct relationshipAttributes) { super(guid, typeName, uniqueAttributes); setEntityStatus(entityStatus); setRelationshipGuid(relationshipGuid); setRelationshipStatus(relationshipStatus); setDisplayText(displayText); setRelationshipAttributes(relationshipAttributes); }
protected AtlasRelatedObjectId glossaryIdToRelatedObjectId(AtlasGlossaryHeader glossaryId) { AtlasRelatedObjectId ret = new AtlasRelatedObjectId(); ret.setGuid(glossaryId.getGlossaryGuid()); ret.setRelationshipGuid(glossaryId.getRelationGuid()); return ret; }
protected AtlasRelatedObjectId glossaryIdToRelatedObjectId(AtlasGlossaryHeader glossaryId) { AtlasRelatedObjectId ret = new AtlasRelatedObjectId(); ret.setGuid(glossaryId.getGlossaryGuid()); ret.setRelationshipGuid(glossaryId.getRelationGuid()); return ret; }
public AtlasRelatedObjectId(String guid, String typeName, AtlasEntity.Status entityStatus, Map<String, Object> uniqueAttributes, String displayText, String relationshipGuid, AtlasRelationship.Status relationshipStatus, AtlasStruct relationshipAttributes) { super(guid, typeName, uniqueAttributes); setEntityStatus(entityStatus); setRelationshipGuid(relationshipGuid); setRelationshipStatus(relationshipStatus); setDisplayText(displayText); setRelationshipAttributes(relationshipAttributes); }
protected AtlasRelatedObjectId relatedCategoryIdToRelatedObjectId(AtlasRelatedCategoryHeader relatedCategoryId) { AtlasRelatedObjectId ret = new AtlasRelatedObjectId(); ret.setGuid(relatedCategoryId.getCategoryGuid()); ret.setRelationshipGuid(relatedCategoryId.getRelationGuid()); AtlasStruct relationshipAttributes = new AtlasStruct(); relationshipAttributes.setAttribute("description", relatedCategoryId.getDescription()); ret.setRelationshipAttributes(relationshipAttributes); return ret; }
protected AtlasRelatedObjectId relatedCategoryIdToRelatedObjectId(AtlasRelatedCategoryHeader relatedCategoryId) { AtlasRelatedObjectId ret = new AtlasRelatedObjectId(); ret.setGuid(relatedCategoryId.getCategoryGuid()); ret.setRelationshipGuid(relatedCategoryId.getRelationGuid()); AtlasStruct relationshipAttributes = new AtlasStruct(); relationshipAttributes.setAttribute("description", relatedCategoryId.getDescription()); ret.setRelationshipAttributes(relationshipAttributes); return ret; }
String relationshipGuid = assignedEntities.get(0).getRelationshipGuid(); assertNotNull(relationshipGuid); relatedObjectId.setRelationshipGuid(relationshipGuid); } catch (AtlasBaseException e) { fail("Term fetch should've succeeded",e);
String relationshipGuid = assignedEntities.get(0).getRelationshipGuid(); assertNotNull(relationshipGuid); relatedObjectId.setRelationshipGuid(relationshipGuid); } catch (AtlasBaseException e) { fail("Term fetch should've succeeded",e);
protected AtlasRelatedObjectId termIdToRelatedObjectId(AtlasRelatedTermHeader relatedTermId) { AtlasRelatedObjectId ret = new AtlasRelatedObjectId(); ret.setGuid(relatedTermId.getTermGuid()); ret.setRelationshipGuid(relatedTermId.getRelationGuid()); AtlasStruct relationshipAttributes = new AtlasStruct(); relationshipAttributes.setAttribute("description", relatedTermId.getDescription()); relationshipAttributes.setAttribute("expression", relatedTermId.getExpression()); relationshipAttributes.setAttribute("source", relatedTermId.getSource()); relationshipAttributes.setAttribute("steward", relatedTermId.getSteward()); relationshipAttributes.setAttribute("status", relatedTermId.getStatus().name()); ret.setRelationshipAttributes(relationshipAttributes); return ret; }
protected AtlasRelatedObjectId termIdToRelatedObjectId(AtlasRelatedTermHeader relatedTermId) { AtlasRelatedObjectId ret = new AtlasRelatedObjectId(); ret.setGuid(relatedTermId.getTermGuid()); ret.setRelationshipGuid(relatedTermId.getRelationGuid()); AtlasStruct relationshipAttributes = new AtlasStruct(); relationshipAttributes.setAttribute("description", relatedTermId.getDescription()); relationshipAttributes.setAttribute("expression", relatedTermId.getExpression()); relationshipAttributes.setAttribute("source", relatedTermId.getSource()); relationshipAttributes.setAttribute("steward", relatedTermId.getSteward()); relationshipAttributes.setAttribute("status", relatedTermId.getStatus().name()); ret.setRelationshipAttributes(relationshipAttributes); return ret; }