Package org.apache.shindig.social.opensocial.jpa

Examples of org.apache.shindig.social.opensocial.jpa.PersonOrganizationDb


    person.setInterests(asList("PHP","Java"));
    person.setJobInterests("will work for beer");

    List<Organization> organizations = new ArrayList<Organization>();

    PersonOrganizationDb organization1 = new PersonOrganizationDb();
    OrganizationAddressDb orgAddress1 = new OrganizationAddressDb();
    orgAddress1.setFormatted("1 Shindig Drive");
    organization1.setAddress(orgAddress1);
    organization1.setDescription("lots of coding");
    organization1.setEndDate(buildDate("2010-10-10"));
    organization1.setField("Software Engineering");
    organization1.setName("Apache.com");
    organization1.setSalary("$1000000000");
    organization1.setStartDate(buildDate("1995-01-01"));
    organization1.setSubField("Development");
    organization1.setTitle("Grand PooBah");
    organization1.setWebpage("http://shindig.apache.org/");
    organization1.setType("job");

    PersonOrganizationDb organization2 = new PersonOrganizationDb();
    OrganizationAddressDb orgAddress2 = new OrganizationAddressDb();
    orgAddress2.setFormatted("1 Skid Row");
    organization2.setAddress(orgAddress2);
    organization2.setDescription("");
    organization2.setEndDate(buildDate("1995-01-01"));
    organization2.setField("College");
    organization2.setName("School of hard Knocks");
    organization2.setSalary("$100");
    organization2.setStartDate(buildDate("1991-01-01"));
    organization2.setSubField("Lab Tech");
    organization2.setTitle("Gopher");
    organization2.setWebpage("");
    organization2.setType("job");

    organizations.add(organization1);
    organizations.add(organization2);
    person.setOrganizations(organizations);
View Full Code Here


    person.setInterests(asList(""));
    person.setJobInterests("");

    List<Organization> organizations = new ArrayList<Organization>();

    PersonOrganizationDb organization1 = new PersonOrganizationDb();
    OrganizationAddressDb orgAddress1 = new OrganizationAddressDb();
    orgAddress1.setFormatted("");
    organization1.setAddress(orgAddress1);
    organization1.setDescription("");
    organization1.setEndDate(new Date());
    organization1.setField("");
    organization1.setName("");
    organization1.setSalary("");
    organization1.setStartDate(new Date());
    organization1.setSubField("");
    organization1.setTitle("");
    organization1.setWebpage("");
    organization1.setType("");

    organizations.add(organization1);
    person.setOrganizations(organizations);

    person.setLanguagesSpoken(asList(""));
View Full Code Here

    return organization;
  }

  private Organization getPersonOrganization(int i, String type) {
    String targetOrg = "Organization_" + (i % 10);
    PersonOrganizationDb organization = findOne(PersonOrganizationDb.PERSON_ORG_FINDBY_NAME,
        new String[] { PersonOrganizationDb.PARAM_NAME }, new Object[] { targetOrg });
    if (organization == null) {
      organization = new PersonOrganizationDb();
      organization.setDescription("Description");
      organization.setEndDate(new Date(System.currentTimeMillis()
          + (24L * 3600L * 1000L * 365L * 2L)));
      organization.setAddress(getNewOrganizationAddress(i * 3));
      organization.setName(targetOrg);
      organization.setSalary(String.valueOf(i * 1000));
      organization.setStartDate(new Date(System.currentTimeMillis()
          - (24L * 3600L * 1000L * 365L * 2L)));
      organization.setField("Field");
      organization.setSubField("SubField");
      organization.setTitle("Title");
      organization.setType(type);
      organization.setWebpage("http://sdfsd.sdfsdf.sdfsdf");
    }
    return organization;

  }
View Full Code Here

    person.setInterests(asList("PHP","Java"));   
    person.setJobInterests("will work for beer");
   
    List<Organization> organizations = new ArrayList<Organization>();
   
    PersonOrganizationDb organization1 = new PersonOrganizationDb();
    OrganizationAddressDb orgAddress1 = new OrganizationAddressDb();
    orgAddress1.setFormatted("1 Shindig Drive");
    organization1.setAddress(orgAddress1);
    organization1.setDescription("lots of coding");
    organization1.setEndDate(buildDate("2010-10-10"));
    organization1.setField("Software Engineering");
    organization1.setName("Apache.com");
    organization1.setSalary("$1000000000");
    organization1.setStartDate(buildDate("1995-01-01"));
    organization1.setSubField("Development");
    organization1.setTitle("Grand PooBah");
    organization1.setWebpage("http://incubator.apache.org/projects/shindig.html");
    organization1.setType("job");
   
    PersonOrganizationDb organization2 = new PersonOrganizationDb();
    OrganizationAddressDb orgAddress2 = new OrganizationAddressDb();
    orgAddress2.setFormatted("1 Skid Row");
    organization2.setAddress(orgAddress2);
    organization2.setDescription("");
    organization2.setEndDate(buildDate("1995-01-01"));
    organization2.setField("College");
    organization2.setName("School of hard Knocks");
    organization2.setSalary("$100");
    organization2.setStartDate(buildDate("1991-01-01"));
    organization2.setSubField("Lab Tech");
    organization2.setTitle("Gopher");
    organization2.setWebpage("");
    organization2.setType("job");
   
    organizations.add(organization1);
    organizations.add(organization2);
    person.setOrganizations(organizations);
   
View Full Code Here

    person.setInterests(asList(""));   
    person.setJobInterests("");
   
    List<Organization> organizations = new ArrayList<Organization>();
   
    PersonOrganizationDb organization1 = new PersonOrganizationDb();
    OrganizationAddressDb orgAddress1 = new OrganizationAddressDb();
    orgAddress1.setFormatted("");
    organization1.setAddress(orgAddress1);
    organization1.setDescription("");
    organization1.setEndDate(new Date());
    organization1.setField("");
    organization1.setName("");
    organization1.setSalary("");
    organization1.setStartDate(new Date());
    organization1.setSubField("");
    organization1.setTitle("");
    organization1.setWebpage("");
    organization1.setType("");   
   
    organizations.add(organization1);
    person.setOrganizations(organizations);
   
    person.setLanguagesSpoken(asList(""));
View Full Code Here

    return organization;
  }

  private Organization getPersonOrganization(int i, String type) {
    String targetOrg = "Organization_" + (i % 10);
    PersonOrganizationDb organization = findOne(PersonOrganizationDb.PERSON_ORG_FINDBY_NAME,
        new String[] { PersonOrganizationDb.PARAM_NAME }, new Object[] { targetOrg });
    if (organization == null) {
      organization = new PersonOrganizationDb();
      organization.setDescription("Description");
      organization.setEndDate(new Date(System.currentTimeMillis()
          + (24L * 3600L * 1000L * 365L * 2L)));
      organization.setAddress(getNewOrganizationAddress(i * 3));
      organization.setName(targetOrg);
      organization.setSalary(String.valueOf(i * 1000));
      organization.setStartDate(new Date(System.currentTimeMillis()
          - (24L * 3600L * 1000L * 365L * 2L)));
      organization.setField("Field");
      organization.setSubField("SubField");
      organization.setTitle("Title");
      organization.setType(type);
      organization.setWebpage("http://sdfsd.sdfsdf.sdfsdf");
    }
    return organization;

  }
View Full Code Here

    person.setInterests(asList(""));
    person.setJobInterests("");

    List<Organization> organizations = new ArrayList<Organization>();

    PersonOrganizationDb organization1 = new PersonOrganizationDb();
    OrganizationAddressDb orgAddress1 = new OrganizationAddressDb();
    orgAddress1.setFormatted("");
    organization1.setAddress(orgAddress1);
    organization1.setDescription("");
    organization1.setEndDate(new Date());
    organization1.setField("");
    organization1.setName("");
    organization1.setSalary("");
    organization1.setStartDate(new Date());
    organization1.setSubField("");
    organization1.setTitle("");
    organization1.setWebpage("");
    organization1.setType("");

    organizations.add(organization1);
    person.setOrganizations(organizations);

    person.setLanguagesSpoken(asList(""));
View Full Code Here

    person.setInterests(asList("PHP","Java"));
    person.setJobInterests("will work for beer");

    List<Organization> organizations = new ArrayList<Organization>();

    PersonOrganizationDb organization1 = new PersonOrganizationDb();
    OrganizationAddressDb orgAddress1 = new OrganizationAddressDb();
    orgAddress1.setFormatted("1 Shindig Drive");
    organization1.setAddress(orgAddress1);
    organization1.setDescription("lots of coding");
    organization1.setEndDate(buildDate("2010-10-10"));
    organization1.setField("Software Engineering");
    organization1.setName("Apache.com");
    organization1.setSalary("$1000000000");
    organization1.setStartDate(buildDate("1995-01-01"));
    organization1.setSubField("Development");
    organization1.setTitle("Grand PooBah");
    organization1.setWebpage("http://shindig.apache.org/");
    organization1.setType("job");

    PersonOrganizationDb organization2 = new PersonOrganizationDb();
    OrganizationAddressDb orgAddress2 = new OrganizationAddressDb();
    orgAddress2.setFormatted("1 Skid Row");
    organization2.setAddress(orgAddress2);
    organization2.setDescription("");
    organization2.setEndDate(buildDate("1995-01-01"));
    organization2.setField("College");
    organization2.setName("School of hard Knocks");
    organization2.setSalary("$100");
    organization2.setStartDate(buildDate("1991-01-01"));
    organization2.setSubField("Lab Tech");
    organization2.setTitle("Gopher");
    organization2.setWebpage("");
    organization2.setType("job");

    organizations.add(organization1);
    organizations.add(organization2);
    person.setOrganizations(organizations);
View Full Code Here

    return organization;
  }

  private Organization getPersonOrganization(int i, String type) {
    String targetOrg = "Organization_" + (i % 10);
    PersonOrganizationDb organization = findOne(PersonOrganizationDb.PERSON_ORG_FINDBY_NAME,
        new String[] { PersonOrganizationDb.PARAM_NAME }, new Object[] { targetOrg });
    if (organization == null) {
      organization = new PersonOrganizationDb();
      organization.setDescription("Description");
      organization.setEndDate(new Date(System.currentTimeMillis()
          + (24L * 3600L * 1000L * 365L * 2L)));
      organization.setAddress(getNewOrganizationAddress(i * 3));
      organization.setName(targetOrg);
      organization.setSalary(String.valueOf(i * 1000));
      organization.setStartDate(new Date(System.currentTimeMillis()
          - (24L * 3600L * 1000L * 365L * 2L)));
      organization.setField("Field");
      organization.setSubField("SubField");
      organization.setTitle("Title");
      organization.setType(type);
      organization.setWebpage("http://sdfsd.sdfsdf.sdfsdf");
    }
    return organization;

  }
View Full Code Here

    person.setInterests(asList("PHP","Java"));
    person.setJobInterests("will work for beer");

    List<Organization> organizations = new ArrayList<Organization>();

    PersonOrganizationDb organization1 = new PersonOrganizationDb();
    OrganizationAddressDb orgAddress1 = new OrganizationAddressDb();
    orgAddress1.setFormatted("1 Shindig Drive");
    organization1.setAddress(orgAddress1);
    organization1.setDescription("lots of coding");
    organization1.setEndDate(buildDate("2010-10-10"));
    organization1.setField("Software Engineering");
    organization1.setName("Apache.com");
    organization1.setSalary("$1000000000");
    organization1.setStartDate(buildDate("1995-01-01"));
    organization1.setSubField("Development");
    organization1.setTitle("Grand PooBah");
    organization1.setWebpage("http://shindig.apache.org/");
    organization1.setType("job");

    PersonOrganizationDb organization2 = new PersonOrganizationDb();
    OrganizationAddressDb orgAddress2 = new OrganizationAddressDb();
    orgAddress2.setFormatted("1 Skid Row");
    organization2.setAddress(orgAddress2);
    organization2.setDescription("");
    organization2.setEndDate(buildDate("1995-01-01"));
    organization2.setField("College");
    organization2.setName("School of hard Knocks");
    organization2.setSalary("$100");
    organization2.setStartDate(buildDate("1991-01-01"));
    organization2.setSubField("Lab Tech");
    organization2.setTitle("Gopher");
    organization2.setWebpage("");
    organization2.setType("job");

    organizations.add(organization1);
    organizations.add(organization2);
    person.setOrganizations(organizations);
View Full Code Here

TOP

Related Classes of org.apache.shindig.social.opensocial.jpa.PersonOrganizationDb

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.