Examples of Relation


Examples of org.cedj.geekseek.domain.relation.model.Relation

            throw new RuntimeException(
                "Could not add relation of type " + type + " between " + source + " and " + target, e);
        } finally {
          tx.finish();
        }
        return new Relation(source.getId(), target.getId(), type);
    }
View Full Code Here

Examples of org.cedj.geekseek.domain.relation.model.Relation

        Identifiable target = targetRepo.get(targetId);
        if(source == null || target == null) {
            return Response.status(Status.NOT_FOUND).build();
        }

        Relation relation = repositry.add(source, relationship, target);
        return Response.ok(relation).build();
    }
View Full Code Here

Examples of org.cedj.geekseek.web.rest.core.ResourceMetadata.Relation

    }

    @Override
    public ResourceMetadata getResourceMetadata() {
        return new ResourceMetadata(User.class)
            .incoming(new Relation("presented_by"))
            .incoming(new Relation("tracked_by"))
            .incoming(new Relation("attended_by"))
            .outgoing(new NamedRelation("attachments", "attached_to"))
            .outgoing(new NamedRelation("sessions", "presented_by"));
    }
View Full Code Here

Examples of org.cedj.geekseek.web.rest.core.ResourceMetadata.Relation

public class TargetResource implements MetadataResource {

    @Override
    public ResourceMetadata getResourceMetadata() {
        return new ResourceMetadata(TargetObject.class)
            .incoming(new Relation("connected_to"));
    }
View Full Code Here

Examples of org.cedj.geekseek.web.rest.core.ResourceMetadata.Relation

    }

    @Override
    public ResourceMetadata getResourceMetadata() {
        return new ResourceMetadata(Attachment.class)
            .incoming(new Relation("attached_to"));
    }
View Full Code Here

Examples of org.cedj.geekseek.web.rest.core.ResourceMetadata.Relation

    }

    @Override
    public ResourceMetadata getResourceMetadata() {
        return new ResourceMetadata(Session.class)
            .incoming(new Relation("presented_by"))
            .outgoing(new NamedRelation("attachments", "attached_to"))
            .outgoing(new NamedRelation("speakers", "presented_by"))
            .outgoing(new NamedRelation("attendees", "attended_by"))
            .outgoing(new NamedRelation("locations", "located_in"));
    }
View Full Code Here

Examples of org.company.recordshop.domain.Relation

  /**
   * {@inheritDoc}
   */
  public RelationDto readRelationAsRelationDto(Long id) {
    Relation result = customerServiceModelDomainService.readRelation(id);
    return (result == null) ? null : relationDtoTranslator.toDto(result);
  }
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.GSS.Relation

    }
   
    // show all children
    for (Object connection : node.getTargetConnections()) {
      if (connection instanceof GSSRelationConnection) {
        Relation relation = ((GSSRelationConnection) connection)
            .getRelation();
        if (relation instanceof Offset) {
          continue;
        }
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.GSS.Relation

      for (Object connectionToParent : childNode.getSourceConnections()) {
        GSSElementGraphNode parent = (GSSElementGraphNode) ((GraphConnection) connectionToParent)
            .getDestination();

        if (connectionToParent instanceof GSSRelationConnection) {
          Relation relation = ((GSSRelationConnection) connectionToParent)
              .getRelation();
          if (relation instanceof Offset) {
            continue;

          } else
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.GSS.Relation

    levelCache =  new LinkedHashMap<Element, Integer>();

    for (EObject child : getAccessLayer().getDirectChildren(getGss())) {
      if (child instanceof Relation)
      {
        Relation relation = (Relation) child;
      Element target = relation.getTarget();
      Element source = relation.getSource();
      String weight = null;
      if (relation instanceof Offset) {
        weight = getAccessLayer().getAttributeValue(relation, "value");

      } else if (relation instanceof Impact) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.