Examples of User


Examples of de.flexguse.demo.model.User

  @Rollback(true)
  @Transactional
  @Test
  public void testSaveUser() {

    User auditor = new User();
    auditor.setFirstName("The");
    auditor.setLastName("Auditor");
    auditor.setUserNumber("007");
    userRepository.save(auditor);
    demoAuditorAware.setCurrentAuditor(auditor);

    User user = new User();
    user.setFirstName("Test");
    user.setLastName("User");
    user.setUserNumber("123456");
    userRepository.save(user);

    List<User> allUsers = userRepository.findAll();
    assertEquals(2, allUsers.size());
    assertTrue(allUsers.contains(auditor));
View Full Code Here

Examples of de.fu_berlin.inf.dpp.User

            // By now we should have returned or have a RQ-JID
            assert presenceJID.isResourceQualifiedJID();

            // Get the user (if any)
            User user = sarosSession.getUser(presenceJID);
            if (user == null)
                return; // PresenceJID does not identify a user in the project

            assert user.getJID().strictlyEquals(presenceJID);

            if (presence.isAvailable()) {
                if (user.getConnectionState() != UserConnectionState.ONLINE) {
                    user.setConnectionState(User.UserConnectionState.ONLINE);
                }
                user.setAway(presence.isAway());
            }

            if (!presence.isAvailable()
                && user.getConnectionState() != UserConnectionState.OFFLINE)
                user.setConnectionState(User.UserConnectionState.OFFLINE);
        }
View Full Code Here

Examples of de.iritgo.aktario.framework.user.User

    {
    }

    if ((event != null) && (event.isLoggedOut()))
    {
      User user = event.getUser();

      // Remove unused journal entry caches
      LinkedList<DynDataObject> removeList = new LinkedList<DynDataObject>();
      for (Iterator i = Engine.instance().getBaseRegistry().iterator("aktera.journal.list.notvisible"); i
              .hasNext();)
      {
        DynDataObject akteraQuery = (DynDataObject) i.next();
        if (Long.valueOf(akteraQuery.getStringAttribute("userUniqueId")) == user.getUniqueId())
        {
          removeList.add(akteraQuery);
        }
      }
      for (DynDataObject akteraQuery : removeList)
View Full Code Here

Examples of de.iritgo.aktera.usergroupmgr.User

    try
    {
      um = (UserManager) getService(UserManager.ROLE, svcConfig.getHint(UserManager.ROLE));
      gm = (GroupManager) getService(GroupManager.ROLE, svcConfig.getHint(GroupManager.ROLE));

      User u = um.find(User.Property.NAME, loginName);
      Configuration[] domains = configuration.getChildren("domain");

      for (int i = 0; i < domains.length; i++)
      {
        Configuration oneDomain = domains[i];
View Full Code Here

Examples of de.iritgo.nexim.user.User

    de.iritgo.aktera.authentication.defaultauth.entity.AkteraUser akteraUser = akteraUserDao
            .findUserByName(username);

    if (akteraUser != null)
    {
      User user = new User();

      user.setName(akteraUser.getName());
      user.setPassword(akteraUser.getPassword());

      return user;
    }

    return null;
View Full Code Here

Examples of de.mcripper.chatlib.User

    return this.userManager.getUsers(this.chat.getParticipant());
  }

  protected void notifyMessageHandler(
      final org.jivesoftware.smack.packet.Message message) {
    final User sender = this.userManager
        .getUser(this.chat.getParticipant());

    final Message newMessage = new Message(message.getBody(), this, sender);

    for (final MessageHandler handler : this.messageHandlers) {
View Full Code Here

Examples of de.metalcon.socialgraph.User

    // create new status update node
    final Node crrUpdate = NeoUtils.createStatusUpdateNode(content.getId());

    // prepare status update for JSON parsing
    content.setTimestamp(timestamp);
    content.setCreator(new User(user));

    // fill status update node
    crrUpdate.setProperty(Properties.StatusUpdate.TIMESTAMP, timestamp);
    crrUpdate.setProperty(Properties.StatusUpdate.CONTENT_TYPE,
        content.getType());
View Full Code Here

Examples of de.peacei.gae.foodsupplier.data.User

  }
 
  private JSONObject commentToJSON(Comment comment) throws JSONException{
    final JSONObject result = new JSONObject();
   
    User user = comment.getUser();
    result.put(COMMENT_NAME, user.getName());
    String mailAddy = user.getEmail();
    try {
      mailAddy = mailAddy.substring(0, 3) + "..." + mailAddy.substring(mailAddy.indexOf('@'));
    } catch (Exception ex) {
      mailAddy = "---";
    }
View Full Code Here

Examples of de.xanders.data.system.dao.User

    /**
     * @see UserService#getUserById(java.lang.Long)
     */
    protected de.xanders.data.system.vo.UserVO handleGetUserById(java.lang.Long userId)
        throws java.lang.Exception {
      User user = this.getUserDao().load(userId);
      return this.getUserDao().toUserVO(user);
    }
View Full Code Here

Examples of demo.hw.server.User

        service.addPort(PORT_NAME, SOAPBinding.SOAP11HTTP_BINDING, endpointAddress);
       
        HelloWorld hw = service.getPort(HelloWorld.class);
        System.out.println(hw.sayHi("World"));

        User user = new UserImpl("World");
        System.out.println(hw.sayHiToUser(user));

        //say hi to some more users to fill up the map a bit
        user = new UserImpl("Galaxy");
        System.out.println(hw.sayHiToUser(user));
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.