Examples of UserId


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

        service = new DefaultPersonService(repository);
    }

    @Test
    public void getPerson_allFields() throws ExecutionException, InterruptedException {
        UserId id = new UserId(UserId.Type.userId, ID_1);
        Set<String> fields = new HashSet<String>();

        org.apache.rave.opensocial.model.Person dbPerson = getDbPerson();
        expect(repository.findByUsername(ID_1)).andReturn(dbPerson);
        replay(repository);
View Full Code Here

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

        assertThat(person.getDisplayName(), is(equalTo(DISPLAY_NAME)));
    }

    @Test
    public void getPerson_restrictedFields() throws ExecutionException, InterruptedException {
        UserId id = new UserId(UserId.Type.userId, ID_1);
        Set<String> fields = new HashSet<String>();
        fields.add(Person.Field.DISPLAY_NAME.toString());
        fields.add(Person.Field.ID.toString());

        org.apache.rave.opensocial.model.Person dbPerson = getDbPerson();
View Full Code Here

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

        assertThat(person.getDisplayName(), is(equalTo(DISPLAY_NAME)));
    }

    @Test
    public void getPerson_nullFields() throws ExecutionException, InterruptedException {
        UserId id = new UserId(UserId.Type.userId, ID_1);

        org.apache.rave.opensocial.model.Person dbPerson = getDbPerson();
        expect(repository.findByUsername(ID_1)).andReturn(dbPerson);
        replay(repository);
View Full Code Here

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

        assertThat(person.getDisplayName(), is(equalTo(DISPLAY_NAME)));
    }

    @Test
    public void getPerson_viewer() throws ExecutionException, InterruptedException {
        UserId id = new UserId(UserId.Type.viewer, ID_2);

        expect(token.getViewerId()).andReturn(ID_1);
        replay(token);

        org.apache.rave.opensocial.model.Person dbPerson = getDbPerson();
View Full Code Here

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

        assertThat(person.getDisplayName(), is(equalTo(DISPLAY_NAME)));
    }

    @Test(expected = ProtocolException.class)
    public void getPerson_nullValue() throws ExecutionException, InterruptedException {
        UserId id = new UserId(UserId.Type.userId, ID_2);

        expect(repository.findByUsername(ID_1)).andReturn(null);
        replay(repository);

        service.getPerson(id, null, token);
View Full Code Here

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

        return Lists.asList(getDbPerson(), new org.apache.rave.opensocial.model.Person[]{});
    }

    private Set<UserId> getUserIdSet() {
        Set<UserId> ids = new HashSet<UserId>();
        ids.add(new UserId(UserId.Type.userId, ID_2));
        ids.add(new UserId(UserId.Type.userId, ID_3));
        return ids;
    }
View Full Code Here

Examples of org.apache.uima.ducc.ws.types.UserId

  }
 
  public List<NodePidList> getUserProcesses(List<String> nodeList, String user) {
    List<NodePidList> nodePidListList = new ArrayList<NodePidList>();
    for(String node : nodeList) {
      List<String> pids = getPids(new NodeId(node), new UserId(user));
      NodePidList nodePidList = new NodePidList(node, pids);
      nodePidListList.add(nodePidList);
    }
    return nodePidListList;
  }
View Full Code Here

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

        ItemPermissions entries = m_permissionsManager.getItemPermissions(entity);

        // User permissions
        for (UserPermission userEntry : entries.getUserPermissions()) {
            UserId userId = userEntry.roleId;
            Permissions permissions = userEntry.permissions;
            List<CPermission> permissionList = m_userPermissions.get(userId);
            if (permissionList == null) {
                permissionList = Lists.newArrayList();
                m_userPermissions.put(userId, permissionList);
View Full Code Here

Examples of org.jivesoftware.smackx.workgroup.packet.UserID

            buf.append("<join-queue xmlns=\"http://jabber.org/protocol/workgroup\">");
            buf.append("<queue-notifications/>");
            // Add the user unique identification if the session is anonymous
            if (connection.isAnonymous()) {
                buf.append(new UserID(userID).toXML());
            }

            // Append data form text
            buf.append(form.toXML());
View Full Code Here

Examples of org.nightlabs.jfire.security.id.UserID

      recurringOffer.getRecurringOfferConfiguration().getCreatorTask().setEnabled(false);
      return null;
    }
    Authority organisationAuthority = Authority.getOrganisationAuthority(getPersistenceManager());
    // userID references the principal, i.e. the currently logged-in user.
    UserID userID = SecurityReflector.getUserDescriptor().getUserObjectID();

    // TODO set problem key instead of assert (which throws an exception and thus rolls the whole transaction back).
    organisationAuthority.assertContainsRoleRef(userID, org.nightlabs.jfire.trade.RoleConstants.editOrder);
    organisationAuthority.assertContainsRoleRef(userID, org.nightlabs.jfire.trade.RoleConstants.editOffer);
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.