Package org.apache.shindig.social.opensocial.model

Examples of org.apache.shindig.social.opensocial.model.Url


  private List<String> asList(String... items) {
    return Arrays.asList(items);
  }

  private Url buildUrl(String targetUrl, String linkTest, String type) {
    Url url = new UrlDb();
    url.setValue(targetUrl);
    url.setLinkText(linkTest);
    url.setType(type);
    return url;
  }
View Full Code Here


  private List<String> asList(String... items) {
    return Arrays.asList(items);
  }
 
  private Url buildUrl(String targetUrl, String linkTest, String type) {
    Url url = new UrlDb();
    url.setValue(targetUrl);
    url.setLinkText(linkTest);
    url.setType(type);
    return url;
  }
View Full Code Here

  }

  // Proxied fields

  public String getProfileUrl() {
    Url url = getListFieldWithType(PROFILE_URL_TYPE, getUrls());
    return url == null ? null : url.getValue();
  }
View Full Code Here

    Url url = getListFieldWithType(PROFILE_URL_TYPE, getUrls());
    return url == null ? null : url.getValue();
  }

  public void setProfileUrl(String profileUrl) {
    Url url = getListFieldWithType(PROFILE_URL_TYPE, getUrls());
    if (url != null) {
      url.setValue(profileUrl);
    } else {
      setUrls(addListField(new UrlDb(profileUrl, null, PROFILE_URL_TYPE), getUrls()));
    }
  }
View Full Code Here

  private Url getNewUrl(int i) {
    String targetUrl = "http://sdfsdfsd.sdfdsf/" + String.valueOf(i % 33);
    List<?> l = find(UrlDb.FINDBY_URL,
        new String[] { UrlDb.PARAM_URL }, new Object[] { targetUrl });
    if (l.isEmpty()) {
      Url url = new UrlDb();
      url.setValue(targetUrl);
      url.setLinkText("LinkText");
      url.setType("URL");
      return url;
    } else {
      return (Url) l.get(0);
    }
  }
View Full Code Here

  }

  // Proxied fields

  public String getProfileUrl() {
    Url url = getListFieldWithType(PROFILE_URL_TYPE, getUrls());
    return url == null ? null : url.getValue();
  }
View Full Code Here

    Url url = getListFieldWithType(PROFILE_URL_TYPE, getUrls());
    return url == null ? null : url.getValue();
  }

  public void setProfileUrl(String profileUrl) {
    Url url = getListFieldWithType(PROFILE_URL_TYPE, getUrls());
    if (url != null) {
      url.setValue(profileUrl);
    } else {
      if (profileUrl != null)
        setUrls(addListField(new UrlImpl(profileUrl, null, PROFILE_URL_TYPE), getUrls()));
    }
  }
View Full Code Here

  private Url getNewUrl(int i) {
    String targetUrl = "http://sdfsdfsd.sdfdsf/" + String.valueOf(i % 33);
    List<?> l = find(UrlDb.FINDBY_URL,
        new String[] { UrlDb.PARAM_URL }, new Object[] { targetUrl });
    if (l.isEmpty()) {
      Url url = new UrlDb();
      url.setValue(targetUrl);
      url.setLinkText("LinkText");
      url.setType("URL");
      return url;
    } else {
      return (Url) l.get(0);
    }
  }
View Full Code Here

  private List<String> asList(String... items) {
    return Arrays.asList(items);
  }

  private Url buildUrl(String targetUrl, String linkTest, String type) {
    Url url = new UrlDb();
    url.setValue(targetUrl);
    url.setLinkText(linkTest);
    url.setType(type);
    return url;
  }
View Full Code Here

  }

  // Proxied fields

  public String getProfileUrl() {
    Url url = getListFieldWithType(PROFILE_URL_TYPE, getUrls());
    return url == null ? null : url.getValue();
  }
View Full Code Here

TOP

Related Classes of org.apache.shindig.social.opensocial.model.Url

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.