Examples of LinkSource


Examples of org.structr.web.entity.LinkSource

    final SecurityContext securityContext = getWebSocket().getSecurityContext();
    String sourceId                       = webSocketData.getId();
    Map<String, Object> properties        = webSocketData.getNodeData();
    String targetId                       = (String) properties.get("targetId");
    final LinkSource sourceNode           = (LinkSource) getNode(sourceId);
    final Linkable targetNode             = (Linkable) getNode(targetId);

    if ((sourceNode != null) && (targetNode != null)) {

      try {
        sourceNode.setProperty(LinkSource.linkable, targetNode);

      } catch (FrameworkException t) {

        getWebSocket().send(MessageBuilder.status().code(400).message(t.getMessage()).build(), true);
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.