Tabnine Logo
GroupId.getObjectId
Code IndexAdd Tabnine to your IDE (free)

How to use
getObjectId
method
in
org.apache.shindig.social.opensocial.spi.GroupId

Best Java code snippets using org.apache.shindig.social.opensocial.spi.GroupId.getObjectId (Showing top 4 results out of 315)

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

@Test
public void testGroupId() {
 DomainName dn1 = new DomainName("example.com");
 LocalId l1 = new LocalId("195mg90a39v");
 GlobalId gl1 = new GlobalId(dn1, l1);
 GroupId g1 = new GroupId("example.com:195mg90a39v");
 GroupId g2 = new GroupId(gl1);
 assertEquals(g1.getType(), g2.getType());
 assertEquals(g1.getObjectId().toString(), g2.getObjectId().toString());
 GroupId g3 =  new GroupId("@foo");
 assertEquals(Type.custom, g3.getType());
 assertEquals("@foo", g3.getObjectId().toString());
 GroupId g4 = new GroupId(Type.objectId, "example.com:195mg90a39v");
 assertEquals(Type.objectId, g4.getType());
 assertEquals("example.com:195mg90a39v", g4.getObjectId().toString());
 GroupId g5 = new GroupId(Type.custom, "@foo");
 assertEquals(Type.custom, g5.getType());
 assertEquals("@foo", g5.getObjectId().toString());
 GroupId g6 = new GroupId(Type.all, "something");
 assertEquals(Type.all, g6.getType());
 assertEquals("@all", g6.getObjectId().toString());
 GroupId g7 = new GroupId(Type.self, null);
 assertEquals(Type.self, g7.getType());
 assertEquals("@self", g7.getObjectId().toString());
 GroupId g8 = new GroupId(Type.friends, "bar");
 assertEquals(Type.friends, g8.getType());
 assertEquals("@friends", g8.getObjectId().toString());
}
origin: org.wso2.org.apache.shindig/shindig-social-api

@Test
public void testGroupId() {
 DomainName dn1 = new DomainName("example.com");
 LocalId l1 = new LocalId("195mg90a39v");
 GlobalId gl1 = new GlobalId(dn1, l1);
 GroupId g1 = new GroupId("example.com:195mg90a39v");
 GroupId g2 = new GroupId(gl1);
 assertEquals(g1.getType(), g2.getType());
 assertEquals(g1.getObjectId().toString(), g2.getObjectId().toString());
 GroupId g3 =  new GroupId("@foo");
 assertEquals(Type.custom, g3.getType());
 assertEquals("@foo", g3.getObjectId().toString());
 GroupId g4 = new GroupId(Type.objectId, "example.com:195mg90a39v");
 assertEquals(Type.objectId, g4.getType());
 assertEquals("example.com:195mg90a39v", g4.getObjectId().toString());
 GroupId g5 = new GroupId(Type.custom, "@foo");
 assertEquals(Type.custom, g5.getType());
 assertEquals("@foo", g5.getObjectId().toString());
 GroupId g6 = new GroupId(Type.all, "something");
 assertEquals(Type.all, g6.getType());
 assertEquals("@all", g6.getObjectId().toString());
 GroupId g7 = new GroupId(Type.self, null);
 assertEquals(Type.self, g7.getType());
 assertEquals("@self", g7.getObjectId().toString());
 GroupId g8 = new GroupId(Type.friends, "bar");
 assertEquals(Type.friends, g8.getType());
 assertEquals("@friends", g8.getObjectId().toString());
}
origin: org.wso2.org.apache.shindig/shindig-social-api

@Test
public void testFromJson() {
 GroupId all = GroupId.fromJson("@all");
 assertEquals(GroupId.Type.all, all.getType());
 GroupId friends = GroupId.fromJson("@friends");
 assertEquals(GroupId.Type.friends, friends.getType());
 GroupId self = GroupId.fromJson("@self");
 assertEquals(GroupId.Type.self, self.getType());
 GroupId group = GroupId.fromJson("superbia");
 assertEquals(GroupId.Type.objectId, group.getType());
 assertEquals("superbia", group.getObjectId().toString());
 GroupId unknown = GroupId.fromJson("@foo");
 assertEquals(Type.custom, unknown.getType());
 assertEquals("@foo", unknown.getObjectId().toString());
}
origin: org.apache.shindig/shindig-social-api

@Test
public void testFromJson() {
 GroupId all = GroupId.fromJson("@all");
 assertEquals(GroupId.Type.all, all.getType());
 GroupId friends = GroupId.fromJson("@friends");
 assertEquals(GroupId.Type.friends, friends.getType());
 GroupId self = GroupId.fromJson("@self");
 assertEquals(GroupId.Type.self, self.getType());
 GroupId group = GroupId.fromJson("superbia");
 assertEquals(GroupId.Type.objectId, group.getType());
 assertEquals("superbia", group.getObjectId().toString());
 GroupId unknown = GroupId.fromJson("@foo");
 assertEquals(Type.custom, unknown.getType());
 assertEquals("@foo", unknown.getObjectId().toString());
}
org.apache.shindig.social.opensocial.spiGroupIdgetObjectId

Javadoc

Get the objectId

Popular methods of GroupId

  • <init>
    Backwards Compatibility.
  • fromJson
    Backwards compatibility.
  • getType
    Get the type of the given objectId.
  • parseType
    Parse the type of the provided objectId.
  • toString
  • typeToString
    Convert a type to string
  • getGroupId

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top 12 Jupyter Notebook extensions
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