Examples of updateConnection()


Examples of org.springframework.social.connect.ConnectionRepository.updateConnection()

  private void updateConnections(SocialAuthenticationService<?> authService, SocialAuthenticationToken token, Authentication success) {
    if (updateConnections) {
      String userId = ((SocialUserDetails)success.getPrincipal()).getUserId();
      Connection<?> connection = token.getConnection();
      ConnectionRepository repo = getUsersConnectionRepository().createConnectionRepository(userId);
      repo.updateConnection(connection);
    }
  }
 
  private void addSignInAttempt(HttpSession session, Connection<?> connection) {
    session.setAttribute(ProviderSignInAttempt.SESSION_ATTRIBUTE, new ProviderSignInAttempt(connection, authServiceLocator, usersConnectionRepository));
View Full Code Here

Examples of org.springframework.social.connect.ConnectionRepository.updateConnection()

  private void updateConnections(SocialAuthenticationService<?> authService, SocialAuthenticationToken token, Authentication success) {
    if (updateConnections) {
      String userId = ((SocialUserDetails)success.getPrincipal()).getUserId();
      Connection<?> connection = token.getConnection();
      ConnectionRepository repo = getUsersConnectionRepository().createConnectionRepository(userId);
      repo.updateConnection(connection);
    }
  }
 
  private void addSignInAttempt(HttpSession session, Connection<?> connection) {
    session.setAttribute(ProviderSignInAttempt.SESSION_ATTRIBUTE, new ProviderSignInAttempt(connection, authServiceLocator, usersConnectionRepository));
View Full Code Here

Examples of research.ConnectionFigure.updateConnection()

        } else {
          cf.connectStart(figureMap.get(newRelation.getStartFeature().getID()).getConnectors()[0]);
          cf.connectEnd(figureMap.get(newRelation.getEndFeature().getID()).getConnectors()[0]);
        }
        dvDist.add(cf);
        cf.updateConnection();
      }
    }
  }

  public static void pasteFeatureTree(Feature fSrc
View Full Code Here

Examples of research.ConnectionFigure.updateConnection()

        } else {
          cf.connectStart(figureMap.get(newRelation.getStartFeature().getID()).getConnectors()[0]);
          cf.connectEnd(figureMap.get(newRelation.getEndFeature().getID()).getConnectors()[0]);
        }
        dvDist.add(cf);
        cf.updateConnection();
      }
    }
  }

  public static void pasteFeatureTree(Feature fSrc
View Full Code Here

Examples of research.ConnectionFigure.updateConnection()

            } else {
              cf.connectStart(figureMap.get(newRelation.getStartFeature().getID()).getConnectors()[0]);
              cf.connectEnd(figureMap.get(newRelation.getEndFeature().getID()).getConnectors()[0]);
            }
            dvDist.add(cf);
            cf.updateConnection();
          }
         
          break;
        }
      }
View Full Code Here

Examples of research.ConnectionFigure.updateConnection()

                        } else {
                            cf.connectStart(figureMap.get(newRelation.getStartFeature().getID()).getConnectors()[0]);
                            cf.connectEnd(figureMap.get(newRelation.getEndFeature().getID()).getConnectors()[0]);
                        }
                        dvDist.add(cf);
                        cf.updateConnection();
                    }

                    break;
                }
            }
View Full Code Here

Examples of research.ConnectionFigure.updateConnection()

                } else {
                    cf.connectStart(figureMap.get(newRelation.getStartFeature().getID()).getConnectors()[0]);
                    cf.connectEnd(figureMap.get(newRelation.getEndFeature().getID()).getConnectors()[0]);
                }
                dvDist.add(cf);
                cf.updateConnection();
            }
        }
    }

    public static void pasteFeatureTree(Feature fSrc, FeatureModel fmSrc, ConstraintModel cmSrc, Feature fDist, FeatureModel fmDist, ConstraintModel cmDist, DrawingView dvDist, FeatureModelEditor fmEditor, FeatureEditor fEditor, Hashtable<String, String> nameMap, Hashtable<String, Figure> figureMap) {
View Full Code Here

Examples of research.ConnectionFigure.updateConnection()

                    } else {
                        cf.connectStart(figureMap.get(newRelation.getStartFeature().getID()).getConnectors()[0]);
                        cf.connectEnd(figureMap.get(newRelation.getEndFeature().getID()).getConnectors()[0]);
                    }
                    dvDist.add(cf);
                    cf.updateConnection();
                    dvDist.repairDamage();
                }
            }

    }
View Full Code Here

Examples of research.ConnectionFigure.updateConnection()

          } else {
            cf.connectStart(htFigures.get(featureRelation.getStartFeature().getID()).getConnectors()[0]);
            cf.connectEnd(htFigures.get(featureRelation.getEndFeature().getID()).getConnectors()[0]);
          }
          dv.add(cf);
          cf.updateConnection();
         
          htFigures.put(featureRelation.getID() , cf);
          super.idToFigureMap.add(featureRelation.getID() , cf);
        }
      }
View Full Code Here

Examples of research.ConnectionFigure.updateConnection()

          } else {
            cf.connectStart(htFigures.get(featureRelation.getStartFeature().getID()).getConnectors()[0]);
            cf.connectEnd(htFigures.get(featureRelation.getEndFeature().getID()).getConnectors()[0]);
          }
          dv.add(cf);
          cf.updateConnection();
         
          htFigures.put(featureRelation.getID() , cf);
          super.idToFigureMap.add(featureRelation.getID() , cf);
        }
      }
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.