Examples of User


Examples of sample.servicelifecycle.bean.User

        return userList.isLogged(userName);
    }

    public boolean register(String userName,
                            String passWord) throws AxisFault {
        userList.addUser(new User(userName, passWord));
        return true;
    }
View Full Code Here

Examples of se.caboo.beast.model.User

    System.out.println("Application.Application: Refetching single topic w/ PK");
    Topic singleTopic = Topic.fetchRequiredTopic(editingContext, Topic.FORUM.eq(singleForum).and(ERXQ.equals("id", 633)));
    System.out.println("Application.Application:   " + singleTopic.title());
   
    System.out.println("Application.Application: Fetching topic user");
    User user = singleTopic.user();
    System.out.println("Application.Application:   " + user.displayName());

    System.out.println("Application.Application: Fetching posts for topic (composite pk, which is kind of interesting)");
    NSArray<Post> topicPosts = singleTopic.posts();
    for (Post post : topicPosts) {
      System.out.println("Application.Application:   " + post.createdAt());
    }
   
    Post randomPost = topicPosts.lastObject();
    System.out.println("Application.Application: Fetching the topic for a post (this will break if topic is not already fetched)");
    System.out.println("Application.Application:   " + randomPost.topic().title());
   
    System.out.println("Application.Application: Fetch author of post");
    User postedByUser = randomPost.user();
    System.out.println("Application.Application:   " + postedByUser.displayName());
   
    System.out.println("Application.Application: Fetching posts by author");
    NSArray<Post> userPosts = postedByUser.posts();
    for (Post post : userPosts) {
      System.out.println("Application.Application:   " + post.createdAt());
    }
   
    System.out.println("Application.Application: This doesn't start an app right now -- it just runs a bunch of example fetches.");
View Full Code Here

Examples of se.despotify.domain.User


  @Test
  public void testAddPlaylistsToUser() {

    User user = new User();
    user.setPlaylists(new PlaylistContainer());

    assertEquals(1, user.getPlaylists().calculateChecksum());

    /*
    3600cd0000566796 2d4c1764d12cd68b 86a4394916020000 000000000000ffff [6????Vg?-L?d?,????9I????????????]
    ffff01033c69642d 69732d756e697175 652f3e3c6368616e 67653e3c6f70733e [????<id-is-unique/><change><ops>]
    3c6372656174652f 3e3c6e616d653e6a 6f74696679313c2f 6e616d653e3c2f6f [<create/><name>jotify1</name></o]
    70733e3c74696d65 3e31323430353335 3031373c2f74696d 653e3c757365723e [ps><time>1240535017</time><user>]
    6b656e742e66696e 656c6c3c2f757365 723e3c2f6368616e 67653e3c76657273 [kent.finell</user></change><vers]
    696f6e3e30303030 3030303030312c30 3030303030303030 302c303030303030 [ion>0000000001,0000000000,000000]
    303030312c303c2f 76657273696f6e3e                                   [0001,0</version>]

    3600e50000000000 0000000000000000 0000000000000000 0005000000000000 [6???????????????????????????????]
    000100033c636861 6e67653e3c6f7073 3e3c6164643e3c69 3e303c2f693e3c69 [????<change><ops><add><i>0</i><i]
    74656d733e353636 3739363264346331 3736346431326364 3638623836613433 [tems>5667962d4c1764d12cd68b86a43]
    393439313630323c 2f6974656d733e3c 2f6164643e3c2f6f 70733e3c74696d65 [9491602</items></add></ops><time]
    3e31323430353335 3031373c2f74696d 653e3c757365723e 6b656e742e66696e [>1240535017</time><user>kent.fin]
    656c6c3c2f757365 723e3c2f6368616e 67653e3c76657273 696f6e3e30303030 [ell</user></change><version>0000]
    3030303030362c30 3030303030303030 312c313032363232 393836362c303c2f [000006,0000000001,1026229866,0</]
    76657273696f6e3e                                                    [version>]
     */
    user.getPlaylists().getItems().add(new Playlist(Hex.toBytes("5667962d4c1764d12cd68b86a4394916"), "jotify1", "kent.finell", false));
    assertEquals(1026229866l, user.getPlaylists().calculateChecksum());

    /*
    3600cd0000fd5119 3b39429813002885 0a1a72bb7f020000 000000000000ffff [6?????Q?;9B???(???r?????????????]
    ffff01033c69642d 69732d756e697175 652f3e3c6368616e 67653e3c6f70733e [????<id-is-unique/><change><ops>]
    3c6372656174652f 3e3c6e616d653e6a 6f74696679323c2f 6e616d653e3c2f6f [<create/><name>jotify2</name></o]
    70733e3c74696d65 3e31323430353335 3130353c2f74696d 653e3c757365723e [ps><time>1240535105</time><user>]
    6b656e742e66696e 656c6c3c2f757365 723e3c2f6368616e 67653e3c76657273 [kent.finell</user></change><vers]
    696f6e3e30303030 3030303030312c30 3030303030303030 302c303030303030 [ion>0000000001,0000000000,000000]
    303030312c303c2f 76657273696f6e3e                                   [0001,0</version>]

    3600e50000000000 0000000000000000 0000000000000000 0006000000013d2b [6?????????????????????????????=+]
    066a00033c636861 6e67653e3c6f7073 3e3c6164643e3c69 3e313c2f693e3c69 [?j??<change><ops><add><i>1</i><i]
    74656d733e666435 3131393362333934 3239383133303032 3838353061316137 [tems>fd51193b394298130028850a1a7]
    326262376630323c 2f6974656d733e3c 2f6164643e3c2f6f 70733e3c74696d65 [2bb7f02</items></add></ops><time]
    3e31323430353335 3130353c2f74696d 653e3c757365723e 6b656e742e66696e [>1240535105</time><user>kent.fin]
    656c6c3c2f757365 723e3c2f6368616e 67653e3c76657273 696f6e3e30303030 [ell</user></change><version>0000]
    3030303030372c30 3030303030303030 322c333730313437 363237332c303c2f [000007,0000000002,3701476273,0</]
    76657273696f6e3e                                                    [version>]
     */
    user.getPlaylists().getItems().add(new Playlist(Hex.toBytes("fd51193b394298130028850a1a72bb7f"), "jotify2", "kent.finell", false));
    assertEquals(3701476273l, user.getPlaylists().calculateChecksum());


    /*
    3600cd00005710e6 6cde8a35bfa824d5 6f85fdab31020000 000000000000ffff [6????W??l??5??$?o???1???????????]
    ffff01033c69642d 69732d756e697175 652f3e3c6368616e 67653e3c6f70733e [????<id-is-unique/><change><ops>]
    3c6372656174652f 3e3c6e616d653e6a 6f74696679333c2f 6e616d653e3c2f6f [<create/><name>jotify3</name></o]
    70733e3c74696d65 3e31323430353335 3134383c2f74696d 653e3c757365723e [ps><time>1240535148</time><user>]
    6b656e742e66696e 656c6c3c2f757365 723e3c2f6368616e 67653e3c76657273 [kent.finell</user></change><vers]
    696f6e3e30303030 3030303030312c30 3030303030303030 302c303030303030 [ion>0000000001,0000000000,000000]
    303030312c303c2f 76657273696f6e3e                                   [0001,0</version>]

    3600e50000000000 0000000000000000 0000000000000000 000700000002dca0 [6???????????????????????????????]
    0bb100033c636861 6e67653e3c6f7073 3e3c6164643e3c69 3e323c2f693e3c69 [????<change><ops><add><i>2</i><i]
    74656d733e353731 3065363663646538 6133356266613832 3464353666383566 [tems>5710e66cde8a35bfa824d56f85f]
    646162333130323c 2f6974656d733e3c 2f6164643e3c2f6f 70733e3c74696d65 [dab3102</items></add></ops><time]
    3e31323430353335 3134383c2f74696d 653e3c757365723e 6b656e742e66696e [>1240535148</time><user>kent.fin]
    656c6c3c2f757365 723e3c2f6368616e 67653e3c76657273 696f6e3e30303030 [ell</user></change><version>0000]
    3030303030382c30 3030303030303030 332c343035313337 353135382c303c2f [000008,0000000003,4051375158,0</]
    76657273696f6e3e                                                    [version>]
     */
    user.getPlaylists().getItems().add(new Playlist(Hex.toBytes("5710e66cde8a35bfa824d56f85fdab31"), "jotify3", "kent.finell", false));
    assertEquals(4051375158l, user.getPlaylists().calculateChecksum());


  }
View Full Code Here

Examples of se.inera.ifv.casebox.core.entity.User

    @PersistenceContext
    EntityManager entityManager;

    @Test
    public void createUser() throws Exception {
        User user = userService.createUser("test", "test1", "Kalle", "Anka");

        Assert.assertNotNull(user);
        Assert.assertEquals(user.getFirstname(), "Kalle");

        try {
            user = userService.createUser("test", "test1", "Kalle", "Anka");
            Assert.fail("Should not be able to create user with same name");
        } catch (CaseboxException e) {
            Assert.assertEquals("error.user.alreadyexist", e.getMessageCode());
        }

        user = userService.createUser("test1", "test1", "Kalle", "Anka");

        Assert.assertNotNull(user);
        Assert.assertEquals(user.getUsername(), "test1");
        ITable result = getConnection().createQueryTable("AUTHORITIES", "SELECT * FROM AUTHORITIES WHERE USERNAME = 'test1'");
        Assert.assertEquals("ROLE_USER", result.getValue(0, "AUTHORITY"));
    }
View Full Code Here

Examples of se.rupy.sprout.User

    public String path() { return "/label"; }
    public void filter(Event event) throws Event, Exception {
      Object key = event.session().get("key");
     
      if(key != null) {
        User user = User.get(key);
       
        if(user != null && user.permit("ADMIN")) {
          return;
        }
      }
     
      event.output().println("<pre>unauthorized</pre>");
View Full Code Here

Examples of server.hibernate.User

        int size = resultList.size();
        Object[][] array = new Object[size][numberOfItems];
       
        int i = 0;
        for(Object o: resultList){
            User user = (User)o;
            array[i][0] = user.getUserId();
            array[i][1] = user.getFirstName();
            array[i][2] = user.getLastName();
            ++i;
        }
        return array;
    }
View Full Code Here

Examples of silvertrout.User

        if(ticks % voiceInterval == 0) {
            // Only voice if we are in the channel and are an operator
            if(getNetwork().isInChannel(channelName)) {

                Channel channel  = getNetwork().getChannel(channelName);
                User    myUser   = getNetwork().getMyUser();
                boolean operator = channel.getUsers().get(myUser).haveMode('o');

                if(operator) {

                    LinkedList<String> voice   = new LinkedList<String>();
View Full Code Here

Examples of simon.entities.User

                    address_line2_encrypted = rs.getString("address_line2");
                    city_encrypted = rs.getString("city");
                    postcode_encrypted = rs.getString("postcode");
       
        //return the User object
                    return new User(username,
                            firstName_plain,
                            secondName_plain,
                            address_line1_plain,
                            address_line2_plain,
                            city_plain,
View Full Code Here

Examples of simplewebapp.model.User

   }


   private void initData() {
      users = new ArrayList<User>();
      users.add(new User("user1", "user1@domain.com"));
      users.add(new User("user2", "user2@domain.com"));
      users.add(new User("user3", "user3@domain.com"));
      users.add(new User("user4", "user4@domain.com"));
      users.add(new User("user5", "user5@domain.com"));
      users.add(new User("user6", "user6@domain.com"));
   }
View Full Code Here

Examples of sivalabs.dashboard.entities.User

  }
 
  @RequestMapping(value="/", method=RequestMethod.POST)
  public ResponseEntity<Map<String, Object>> createUser(@RequestBody User user) {
    try {
      User savedUser = userService.createUser(user);
      Map<String, Object> map = new HashMap<>();
      map.put("user", savedUser);
      return new ResponseEntity<>(map, HttpStatus.CREATED);
    } catch (Exception e) {
      e.printStackTrace();
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.