Package org.structr.web.entity

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

Related Classes of org.structr.web.entity.LinkSource

Copyright © 2018 www.massapicom. 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.