Examples of UserInfo


Examples of com.socrata.model.importer.UserInfo

            "  }";

    @Test
    public void testSerialization() throws Exception
    {
        UserInfo userInfo =  mapper.readValue(JSON_TEST, UserInfo.class);
        TestCase.assertNotNull(userInfo);
        TestCase.assertEquals(userInfo.getId(), "et53-5za7");
        TestCase.assertEquals(userInfo.getDisplayName(), "Will Pugh");
        TestCase.assertEquals(userInfo.getScreenName(), "Will Pugh");

        UserInfo userInfo2 =  mapper.readValue(JSON_TEST_NO_ITEMS, UserInfo.class);
        TestCase.assertNotNull(userInfo2);
        TestCase.assertNull(userInfo2.getId());
        TestCase.assertNull(userInfo2.getDisplayName());
        TestCase.assertNull(userInfo2.getScreenName());
    }
View Full Code Here

Examples of com.sogou.qadev.service.cynthia.bean.UserInfo

        current_userNode.setTextContent( username );
        envNode.appendChild( current_userNode );
      }
     
      //   拼进当前执行人的相关人员列表
      UserInfo userInfo = das.queryUserInfoByUserName(username);
      if (userInfo != null) {
        Element userElement = document.createElement( "user_list" );
        userElement.setTextContent( userInfo.getUserName() );
        envNode.appendChild( userElement );
      }
     
      List<Node> typeNodeList = XMLUtil.getNodes( document, "/query/env/current_template_type");
      if( typeNodeList != null && !typeNodeList.isEmpty() )
View Full Code Here

Examples of com.sourcetap.sfa.util.UserInfo

      out.write("<!-- [oldFunctions.jsp] End -->\r\n\r\n");
      out.write("\r\n");
      out.write("<!-- [oldDeclarations.jsp] Start -->\r\n\r\n");
GenericValue userLogin = (GenericValue)session.getAttribute("_USER_LOGIN_");
      out.write("\r\n");
UserInfo userInfo  = (UserInfo) session.getAttribute("userInfo");
      out.write("\r\n\r\n");
  String partyId = "";
  if (userLogin != null )
       partyId = userLogin.getString("partyId");
View Full Code Here

Examples of com.sun.jna.platform.win32.Netapi32Util.UserInfo

      return;
    assertNotNull(Netapi32Util.getUserInfo(Advapi32Util.getUserName()));
  }

  public void testGetUserInfoWithDomainSpecified() {
    UserInfo userInfo = Netapi32Util.getUserInfo(Advapi32Util.getUserName(),
        System.getenv("USERDOMAIN"));
    assertNotNull(userInfo);
    assertTrue(Advapi32.INSTANCE.IsValidSid(userInfo.sid));
  }
View Full Code Here

Examples of com.sun.star.pgp.UserInfo

  }
  //______________________________________________________________________________________________
  public UserInfo[] getRecipients()
  {
    Object objs[]    = _recipientsList.getSelectedValues();
    UserInfo infos[] = new UserInfo[objs.length];
   
    for ( int nPos = 0; nPos < infos.length; ++nPos )
      infos[nPos] = (UserInfo)objs[nPos];
   
    return infos;
View Full Code Here

Examples of de.novanic.eventservice.service.registry.user.UserInfo

    }

    @Test
    public void testListen() throws Exception {
        final Domain theDomain = DomainFactory.getDomain("test_domain");
        final UserInfo theUserInfo = new UserInfo("test_user");

        ByteArrayOutputStream theByteArrayOutputStream = new ByteArrayOutputStream();

        StreamingServerConnector theStreamingServerConnector = createStreamingServerConnector(700, theByteArrayOutputStream);

        ListenRunnable theListenRunnable = new ListenRunnable(theStreamingServerConnector, theUserInfo);
        Thread theListenThread = new Thread(theListenRunnable);
        theListenThread.start();

        theUserInfo.addEvent(theDomain, new DummyEvent());

        theListenThread.join();

        ListenResult theListenResult = theListenRunnable.getListenResult();
        assertEquals(1, theListenResult.getEvents().size());
View Full Code Here

Examples of io.fathom.cloud.identity.api.os.model.v3.Token.UserInfo

        model.name = role.getName();
        return model;
    }

    private UserInfo toModel(DomainData domain, UserData user) {
        UserInfo model = new UserInfo();
        model.id = Long.toString(user.getId());
        model.name = user.getName();
        model.domain = toModel(domain);
        return model;
    }
View Full Code Here

Examples of l2p.gameserver.serverpackets.UserInfo

      L2Player player = L2ObjectsStorage.getAsPlayer(playerStoreId);
      if(player == null)
      {
        return;
      }
      player.sendPacket(new UserInfo(player), new ExBrExtraUserInfo(player));
      player._userInfoTask = null;
    }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.UserInfo

  {
    if (!isVisible() || entering || isLogoutStarted())
    {
      return;
    }
    sendPacket(new UserInfo(this), new ExBR_ExtraUserInfo(this));
    return;
  }
View Full Code Here

Examples of mindnotes.shared.services.UserInfo

  @Override
  public UserInfo getUserInfo() {
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
    UserInfo info = new UserInfo();
    if (user == null) {
      info.setLoginURL(userService.createLoginURL("/MindNotes.html"));
    } else {
      info.setLogoutURL(userService.createLogoutURL("/MindNotes.html"));

      info.setEmail(user.getEmail());
      info.setNickname(user.getNickname());
      info.setUserId(user.getUserId());

    }
    return info;
  }
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.