Esempio n. 1
0
 public void createLinks() {
   // create new link to object
   String linkType = type.getReferencedCnaLinkType();
   String referencedEntityType = type.getReferencedEntityTypeId();
   type.getReferenceResolver().createLinks(referencedEntityType, linkType, entity.getUuid());
   writeLinkedObjectsToTextField();
 }
Esempio n. 2
0
 /**
  * Get all linked objects for linktype and write their names to the text field. Uses a runtime
  * callback (reference resolver) to do this.
  */
 private void writeLinkedObjectsToTextField() {
   String referencedCnaLinkType = type.getReferencedCnaLinkType();
   String names =
       type.getReferenceResolver()
           .getTitlesOfLinkedObjects(referencedCnaLinkType, entity.getUuid());
   text.setText(names);
 }