Examples of GroupId


Examples of org.apache.shindig.social.opensocial.spi.GroupId

public class GroupIdTest extends Assert {

  @Test
  public void testFromJson() throws Exception {
    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.groupId, group.getType());
    assertEquals("superbia", group.getGroupId());
  }
View Full Code Here

Examples of org.apache.shindig.social.opensocial.spi.GroupId

    options.setFilterValue("");
    options.setFirst(0);
    options.setMax(20);

    RestfulCollection<Person> responseItem = db.getPeople(
        ImmutableSet.of(CANON_USER), new GroupId(GroupId.Type.friends, null),
        options, Collections.<String>emptySet(), token).get();
    assertNotNull(responseItem);
    assertEquals(4, responseItem.getTotalResults());
    // Test a couple of users
    assertEquals("john.doe", responseItem.getEntry().get(0).getId());
View Full Code Here

Examples of org.apache.stratum.jcs.engine.control.group.GroupId

     */
    public void defineGroup( String name )
        throws CacheException
    {
        // update the attribute name set.
        GroupId groupId = new GroupId( cacheControl.getCacheName(), name );
        HashSet attrNameSet = null;
        //try {
        attrNameSet = ( HashSet ) super.get( name );
        //} catch ( ObjectNotFoundException onfe ) {
        //}
View Full Code Here

Examples of org.jboss.identity.idm.impl.api.model.GroupId

   *
   * @param groupId
   * @return
   */
  private String convertIdmGroupId2jbpmGroupId(String groupId) {
  GroupId theGroupId = new GroupId(groupId);
  if (this.DEFAUL_JBPM_GROUP_TYPE.equals(theGroupId.getType()) || theGroupId.getType() == null) {
    return theGroupId.getName();
  }
  return theGroupId.getType() + "." + theGroupId.getName();
  }
View Full Code Here

Examples of org.jitterbit.integration.client.server.user.GroupId

                            .getAllowedBits(), permissions.getDeniedBits()));
        }

        // Group permissions
        for (GroupPermission groupEntry : entries.getGroupPermissions()) {
            GroupId groupId = groupEntry.roleId;
            Permissions permissions = groupEntry.permissions;
            List<CPermission> permissionList = m_userPermissions.get(groupId);
            if (permissionList == null) {
                permissionList = Lists.newArrayList();
                m_userPermissions.put(groupId, permissionList);
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.