Tabnine Logo
Organization
Code IndexAdd Tabnine to your IDE (free)

How to use
Organization
in
org.apache.shindig.social.opensocial.model

Best Java code snippets using org.apache.shindig.social.opensocial.model.Organization (Showing top 15 results out of 315)

origin: org.apache.shindig/shindig-social-api

 private void assertOrganizationField(Organization expected, JSONObject actual)
   throws JSONException {
  assertStringField(actual.getJSONObject(Organization.Field.ADDRESS.toString()),
    expected.getAddress().getFormatted(), Address.Field.FORMATTED);
  assertStringField(actual, expected.getDescription(),
    Organization.Field.DESCRIPTION);
//    assertDateField(actual, expected.getEndDate(), Organization.Field.END_DATE);
  assertStringField(actual, expected.getField(), Organization.Field.FIELD);
  assertStringField(actual, expected.getName(), Organization.Field.NAME);
  assertStringField(actual, expected.getSalary(), Organization.Field.SALARY);
//    assertDateField(actual, expected.getStartDate(), Organization.Field.START_DATE);
  assertStringField(actual, expected.getSubField(), Organization.Field.SUB_FIELD);
  assertStringField(actual, expected.getTitle(), Organization.Field.TITLE);
  assertStringField(actual, expected.getWebpage(), Organization.Field.WEBPAGE);
  assertStringField(actual, expected.getType(), Organization.Field.TYPE);
 }

origin: org.apache.shindig/shindig-samples

@SuppressWarnings("unused")
private Organization getDbOrganization(int i, String type) {
 String targetOrg = "Organization_" + (i % 10);
 Organization organization = findOne(OrganizationDb.FINDBY_NAME,
   new String[] { OrganizationDb.PARAM_NAME }, new Object[] { targetOrg });
 if (organization == null) {
  organization = new OrganizationDb();
  organization.setAddress(getNewOrganizationAddress(i * 3));
  organization.setName(targetOrg);
  organization.setSubField("SubField");
  organization.setTitle("Title");
  organization.setWebpage("http://sdfsd.sdfsdf.sdfsdf");
 }
 return organization;
}
origin: org.apache.shindig/shindig-samples

private static void assertOrganizationEquals(Organization actual, Organization expected) {
 assertAddressEquals(actual.getAddress(), expected.getAddress());
 assertEquals(actual.getDescription(), expected.getDescription());
 assertEquals(actual.getEndDate(), expected.getEndDate());
 assertEquals(actual.getField(), expected.getField());
 assertEquals(actual.getName(), expected.getName());
 assertEquals(actual.getPrimary(), expected.getPrimary());
 assertEquals(actual.getSalary(), expected.getSalary());
 assertEquals(actual.getStartDate(), expected.getStartDate());
 assertEquals(actual.getSubField(), expected.getSubField());
 assertEquals(actual.getTitle(), expected.getTitle());
 assertEquals(actual.getType(), expected.getType());
 assertEquals(actual.getWebpage(), expected.getWebpage());    
}
origin: org.wso2.org.apache.shindig/shindig-social-api

job1.setAddress(new AddressImpl("1 Shindig Drive"));
job1.setDescription("lots of coding");
job1.setEndDate(new Date());
job1.setField("Software Engineering");
job1.setName("Apache.com");
job1.setSalary("$1000000000");
job1.setStartDate(new Date());
job1.setSubField("Development");
job1.setTitle("Grand PooBah");
job1.setWebpage("http://shindig.apache.org/");
job1.setType("job");
job2.setAddress(new AddressImpl("1 Skid Row"));
job2.setDescription("");
job2.setEndDate(new Date());
job2.setField("College");
job2.setName("School of hard Knocks");
job2.setSalary("$100");
job2.setStartDate(new Date());
job2.setSubField("Lab Tech");
job2.setTitle("Gopher");
job2.setWebpage("");
job2.setType("job");
origin: com.lmco.shindig/shindig-social-api

job1.setAddress(new AddressImpl("1 Shindig Drive"));
job1.setDescription("lots of coding");
job1.setEndDate(new Date());
job1.setField("Software Engineering");
job1.setName("Apache.com");
job1.setSalary("$1000000000");
job1.setStartDate(new Date());
job1.setSubField("Development");
job1.setTitle("Grand PooBah");
job1.setWebpage("http://shindig.apache.org/");
job1.setType("job");
job2.setAddress(new AddressImpl("1 Skid Row"));
job2.setDescription("");
job2.setEndDate(new Date());
job2.setField("College");
job2.setName("School of hard Knocks");
job2.setSalary("$100");
job2.setStartDate(new Date());
job2.setSubField("Lab Tech");
job2.setTitle("Gopher");
job2.setWebpage("");
job2.setType("job");
origin: org.apache.shindig/shindig-social-api

job1.setAddress(new AddressImpl("1 Shindig Drive"));
job1.setDescription("lots of coding");
job1.setEndDate(new Date());
job1.setField("Software Engineering");
job1.setName("Apache.com");
job1.setSalary("$1000000000");
job1.setStartDate(new Date());
job1.setSubField("Development");
job1.setTitle("Grand PooBah");
job1.setWebpage("http://shindig.apache.org/");
job1.setType("job");
job2.setAddress(new AddressImpl("1 Skid Row"));
job2.setDescription("");
job2.setEndDate(new Date());
job2.setField("College");
job2.setName("School of hard Knocks");
job2.setSalary("$100");
job2.setStartDate(new Date());
job2.setSubField("Lab Tech");
job2.setTitle("Gopher");
job2.setWebpage("");
job2.setType("job");
origin: com.lmco.shindig/shindig-social-api

 private void assertOrganizationField(Organization expected, JSONObject actual)
   throws JSONException {
  assertStringField(actual.getJSONObject(Organization.Field.ADDRESS.toString()),
    expected.getAddress().getFormatted(), Address.Field.FORMATTED);
  assertStringField(actual, expected.getDescription(),
    Organization.Field.DESCRIPTION);
//    assertDateField(actual, expected.getEndDate(), Organization.Field.END_DATE);
  assertStringField(actual, expected.getField(), Organization.Field.FIELD);
  assertStringField(actual, expected.getName(), Organization.Field.NAME);
  assertStringField(actual, expected.getSalary(), Organization.Field.SALARY);
//    assertDateField(actual, expected.getStartDate(), Organization.Field.START_DATE);
  assertStringField(actual, expected.getSubField(), Organization.Field.SUB_FIELD);
  assertStringField(actual, expected.getTitle(), Organization.Field.TITLE);
  assertStringField(actual, expected.getWebpage(), Organization.Field.WEBPAGE);
  assertStringField(actual, expected.getType(), Organization.Field.TYPE);
 }

origin: org.wso2.org.apache.shindig/shindig-social-api

job1.setAddress(new AddressImpl("1 Shindig Drive"));
job1.setDescription("lots of coding");
job1.setEndDate(new Date());
job1.setField("Software Engineering");
job1.setName("Apache.com");
job1.setSalary("$1000000000");
job1.setStartDate(new Date());
job1.setSubField("Development");
job1.setTitle("Grand PooBah");
job1.setWebpage("http://shindig.apache.org/");
job1.setType("job");
job2.setAddress(new AddressImpl("1 Skid Row"));
job2.setDescription("");
job2.setEndDate(new Date());
job2.setField("College");
job2.setName("School of hard Knocks");
job2.setSalary("$100");
job2.setStartDate(new Date());
job2.setSubField("Lab Tech");
job2.setTitle("Gopher");
job2.setWebpage("");
job2.setType("job");
origin: org.wso2.org.apache.shindig/shindig-social-api

 private void assertOrganizationField(Organization expected, JSONObject actual)
   throws JSONException {
  assertStringField(actual.getJSONObject(Organization.Field.ADDRESS.toString()),
    expected.getAddress().getFormatted(), Address.Field.FORMATTED);
  assertStringField(actual, expected.getDescription(),
    Organization.Field.DESCRIPTION);
//    assertDateField(actual, expected.getEndDate(), Organization.Field.END_DATE);
  assertStringField(actual, expected.getField(), Organization.Field.FIELD);
  assertStringField(actual, expected.getName(), Organization.Field.NAME);
  assertStringField(actual, expected.getSalary(), Organization.Field.SALARY);
//    assertDateField(actual, expected.getStartDate(), Organization.Field.START_DATE);
  assertStringField(actual, expected.getSubField(), Organization.Field.SUB_FIELD);
  assertStringField(actual, expected.getTitle(), Organization.Field.TITLE);
  assertStringField(actual, expected.getWebpage(), Organization.Field.WEBPAGE);
  assertStringField(actual, expected.getType(), Organization.Field.TYPE);
 }

origin: org.apache.shindig/shindig-social-api

job1.setAddress(new AddressImpl("1 Shindig Drive"));
job1.setDescription("lots of coding");
job1.setEndDate(new Date());
job1.setField("Software Engineering");
job1.setName("Apache.com");
job1.setSalary("$1000000000");
job1.setStartDate(new Date());
job1.setSubField("Development");
job1.setTitle("Grand PooBah");
job1.setWebpage("http://shindig.apache.org/");
job1.setType("job");
job2.setAddress(new AddressImpl("1 Skid Row"));
job2.setDescription("");
job2.setEndDate(new Date());
job2.setField("College");
job2.setName("School of hard Knocks");
job2.setSalary("$100");
job2.setStartDate(new Date());
job2.setSubField("Lab Tech");
job2.setTitle("Gopher");
job2.setWebpage("");
job2.setType("job");
origin: com.lmco.shindig/shindig-social-api

private void assertOrganizationField(Organization expected, Node orgNode) {
 Map<String, List<String>> actual = childNodesToMap(orgNode);
 Map<String, List<Node>> actualNode = childNodesToNodeMap(orgNode);
 assertStringField(childNodesToMap(actualNode.get(
   Organization.Field.ADDRESS.toString()).get(0)), expected.getAddress()
   .getFormatted(), Address.Field.FORMATTED);
 assertStringField(actual, expected.getDescription(),
   Organization.Field.DESCRIPTION);
 // assertDateField(actual, expected.getEndDate(),
 // Organization.Field.END_DATE);
 assertStringField(actual, expected.getField(), Organization.Field.FIELD);
 assertStringField(actual, expected.getName(), Organization.Field.NAME);
 assertStringField(actual, expected.getSalary(), Organization.Field.SALARY);
 // assertDateField(actual, expected.getStartDate(),
 // Organization.Field.START_DATE);
 assertStringField(actual, expected.getSubField(),
   Organization.Field.SUB_FIELD);
 assertStringField(actual, expected.getTitle(), Organization.Field.TITLE);
 assertStringField(actual, expected.getWebpage(), Organization.Field.WEBPAGE);
 assertStringField(actual, expected.getType(), Organization.Field.TYPE);
}
origin: com.lmco.shindig/shindig-social-api

job1.setAddress(new AddressImpl("1 Shindig Drive"));
job1.setDescription("lots of coding");
job1.setEndDate(new Date());
job1.setField("Software Engineering");
job1.setName("Apache.com");
job1.setSalary("$1000000000");
job1.setStartDate(new Date());
job1.setSubField("Development");
job1.setTitle("Grand PooBah");
job1.setWebpage("http://shindig.apache.org/");
job1.setType("job");
job2.setAddress(new AddressImpl("1 Skid Row"));
job2.setDescription("");
job2.setEndDate(new Date());
job2.setField("College");
job2.setName("School of hard Knocks");
job2.setSalary("$100");
job2.setStartDate(new Date());
job2.setSubField("Lab Tech");
job2.setTitle("Gopher");
job2.setWebpage("");
job2.setType("job");
origin: org.wso2.org.apache.shindig/shindig-social-api

private void assertOrganizationField(Organization expected, Node orgNode) {
 Map<String, List<String>> actual = childNodesToMap(orgNode);
 Map<String, List<Node>> actualNode = childNodesToNodeMap(orgNode);
 assertStringField(childNodesToMap(actualNode.get(
   Organization.Field.ADDRESS.toString()).get(0)), expected.getAddress()
   .getFormatted(), Address.Field.FORMATTED);
 assertStringField(actual, expected.getDescription(),
   Organization.Field.DESCRIPTION);
 // assertDateField(actual, expected.getEndDate(),
 // Organization.Field.END_DATE);
 assertStringField(actual, expected.getField(), Organization.Field.FIELD);
 assertStringField(actual, expected.getName(), Organization.Field.NAME);
 assertStringField(actual, expected.getSalary(), Organization.Field.SALARY);
 // assertDateField(actual, expected.getStartDate(),
 // Organization.Field.START_DATE);
 assertStringField(actual, expected.getSubField(),
   Organization.Field.SUB_FIELD);
 assertStringField(actual, expected.getTitle(), Organization.Field.TITLE);
 assertStringField(actual, expected.getWebpage(), Organization.Field.WEBPAGE);
 assertStringField(actual, expected.getType(), Organization.Field.TYPE);
}
origin: org.apache.shindig/shindig-samples

job1.setAddress(new AddressImpl("1 Shindig Drive"));
job1.setDescription("lots of coding");
job1.setEndDate(buildDate("2010-10-10"));
job1.setField("Software Engineering");
job1.setName("Apache.com");
job1.setSalary("$1000000000");
job1.setStartDate(buildDate("1995-01-01"));
job1.setSubField("Development");
job1.setTitle("Grand PooBah");
job1.setWebpage("http://shindig.apache.org/");
job1.setType("job");
job2.setAddress(new AddressImpl("1 Skid Row"));
job2.setDescription("");
job2.setEndDate(buildDate("1995-01-01"));
job2.setField("College");
job2.setName("School of hard Knocks");
job2.setSalary("$100");
job2.setStartDate(buildDate("1991-01-01"));
job2.setSubField("Lab Tech");
job2.setTitle("Gopher");
job2.setWebpage("");
job2.setType("job");
origin: org.apache.shindig/shindig-social-api

private void assertOrganizationField(Organization expected, Node orgNode) {
 Map<String, List<String>> actual = childNodesToMap(orgNode);
 Map<String, List<Node>> actualNode = childNodesToNodeMap(orgNode);
 assertStringField(childNodesToMap(actualNode.get(
   Organization.Field.ADDRESS.toString()).get(0)), expected.getAddress()
   .getFormatted(), Address.Field.FORMATTED);
 assertStringField(actual, expected.getDescription(),
   Organization.Field.DESCRIPTION);
 // assertDateField(actual, expected.getEndDate(),
 // Organization.Field.END_DATE);
 assertStringField(actual, expected.getField(), Organization.Field.FIELD);
 assertStringField(actual, expected.getName(), Organization.Field.NAME);
 assertStringField(actual, expected.getSalary(), Organization.Field.SALARY);
 // assertDateField(actual, expected.getStartDate(),
 // Organization.Field.START_DATE);
 assertStringField(actual, expected.getSubField(),
   Organization.Field.SUB_FIELD);
 assertStringField(actual, expected.getTitle(), Organization.Field.TITLE);
 assertStringField(actual, expected.getWebpage(), Organization.Field.WEBPAGE);
 assertStringField(actual, expected.getType(), Organization.Field.TYPE);
}
org.apache.shindig.social.opensocial.modelOrganization

Javadoc

Describes a current or past organizational affiliation of this contact. Service Providers that support only a single Company Name and Job Title field should represent them with a single organization element with name and title properties, respectively. see http://www.opensocial.org/Technical-Resources/opensocial-spec-v081/opensocial-reference#opensocial.Organization

Most used methods

  • getAddress
    Get the address of the organization, specified as an Address. Container support for this field is OP
  • getDescription
    Get a description or notes about the person's work in the organization, specified as a string. This
  • getField
    Get the field the organization is in, specified as a string. This could be the degree pursued if the
  • getName
    Get the name of the organization, specified as a string. For example, could be a school name or a jo
  • getSalary
    Get the salary the person receives from the organization, specified as a string. Container support f
  • getSubField
    Get the subfield the Organization is in, specified as a string. Container support for this field is
  • getTitle
    Get the title or role the person has in the organization, specified as a string. This could be gradu
  • getType
    Get the type of field for this instance, usually used to label the preferred function of the given c
  • getWebpage
    Get a webpage related to the organization, specified as a string. Container support for this field i
  • setAddress
    Set the address of the organization, specified as an Address. Container support for this field is OP
  • setDescription
    Set a description or notes about the person's work in the organization, specified as a string. This
  • setEndDate
    Set the date the person stopped at the organization, specified as a Date. A null date indicates that
  • setDescription,
  • setEndDate,
  • setField,
  • setName,
  • setSalary,
  • setStartDate,
  • setSubField,
  • setTitle,
  • setType,
  • setWebpage

Popular in Java

  • Reading from database using SQL prepared statement
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now