Package org.structr.core.entity

Examples of org.structr.core.entity.AbstractRelationship


  @Override
  public Object revert(Object source) {

    if (currentObject instanceof AbstractRelationship) {

      AbstractRelationship rel = (AbstractRelationship) currentObject;

      if (rel != null) {

        return rel.getSourceNode();
      }

    }

    return null;
View Full Code Here


      }

    } else {

      NodeService nodeService  = Services.getInstance().getService(NodeService.class);
      AbstractRelationship rel = (AbstractRelationship)entity;
      Relationship dbRel       = rel.getRelationship();

      for (RelationshipIndex indexName : relationshipIndices()) {

        Index<Relationship> index = nodeService.getRelationshipIndex(indexName);
        if (index != null) {
View Full Code Here

  @Override
  public PropertyMap getGroupedProperties(SecurityContext securityContext, GraphObject source) {

    if(source instanceof AbstractRelationship) {

      AbstractRelationship rel = (AbstractRelationship)source;
      PropertyMap properties   = new PropertyMap();

      for (PropertyKey key : propertyKeys.values()) {

        Reference reference = (Reference)key;
View Full Code Here

  @Override
  public void setGroupedProperties(SecurityContext securityContext, PropertyMap source, GraphObject destination) throws FrameworkException {

    if(destination instanceof AbstractRelationship) {

      AbstractRelationship rel = (AbstractRelationship)destination;

      for (PropertyKey key : propertyKeys.values()) {

        Reference reference = (Reference)key;
       
View Full Code Here

TOP

Related Classes of org.structr.core.entity.AbstractRelationship

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.