Examples of User


Examples of com.atlassian.crowd.embedded.api.User

  @Override
  protected String doExecute() throws Exception {
    log.debug("Entering doExecute");
    String loggedUserName = getLoggedUserName();
    User admin = UserUtils.getUser("admin");
    userName = loggedUserName != null ? loggedUserName : admin.getDisplayName();
    return SUCCESS;
  }
View Full Code Here

Examples of com.atlassian.crowd.model.user.User

    public static String getCrowdUsername(HttpServletRequest request) {
        ensureAuthenticator();

        try {
            User user = authenticator.getUser(request);
            if (user != null)
                return user.getName();
        }
        catch (ApplicationPermissionException e) {
            LOG.warn("Exception during Crowd authentication attempt", e);
        }
        catch (InvalidAuthenticationException e) {
View Full Code Here

Examples of com.atlassian.fecru.user.User

    public void sendEmail(EmailOptions options) {
        String toName = options.getToName();
        String toEmail = options.getToEmail();
        if (options.getToUsername() != null)
        {
            final User user = getUser(options.getToUsername());
            if (user == null) {
                return;
            }
            if (user.getEmail() == null) {
                log.warn("No email found for username: " + options.getToUsername());
                return;
            }
            toName = user.getDisplayName();
            toEmail = user.getEmail();
        }

        try {

            final MailMessageData message = new MailMessageData();
View Full Code Here

Examples of com.atlassian.jira.rest.client.api.domain.User

    assertEquals(project.getKey(), createdIssue.getProject().getKey());
    assertEquals(issueType.getId(), createdIssue.getIssueType().getId());
    assertEquals(summary, createdIssue.getSummary());
    assertEquals(description, createdIssue.getDescription());

    final User actualAssignee = createdIssue.getAssignee();
    assertNotNull(actualAssignee);
    assertEquals(assignee.getSelf(), actualAssignee.getSelf());
    // TODO we need some users for integration tests!
    assertEquals(actualAssignee.getEmailAddress(), "wojciech.seliga@spartez.com");

    final Iterable<String> actualAffectedVersionsNames = EntityHelper.toNamesList(createdIssue.getAffectedVersions());
    assertThat(affectedVersionsNames, containsInAnyOrder(toArray(actualAffectedVersionsNames, String.class)));

    final Iterable<String> actualFixVersionsNames = EntityHelper.toNamesList(createdIssue.getFixVersions());
View Full Code Here

Examples of com.atlassian.jira.rest.client.domain.User

      @Override
      public String parse(JSONObject json) throws JSONException {
        return json.getString("name");
      }
    });
    return new User(basicUser.getSelf(), basicUser.getName(), basicUser.getDisplayName(), emailAddress, groups, avatarUris, timezone);
  }
View Full Code Here

Examples of com.atlassian.user.User

        {
            String toName = options.getToName();
            String toEmail = options.getToEmail();
            if (options.getToUsername() != null)
            {
                User to = userManager.getUser(options.getToUsername());
                if (to != null)
                {
                    toName = to.getFullName();
                    toEmail = to.getEmail();
                }
                else
                {
                    log.warn("Cannot find profile for user '" + options.getToUsername());
                    return;
View Full Code Here

Examples of com.atomrain.labs.architect.domain.User

   *   {@code UserServiceImpl.class.removeUserById()}
   */
  @Test
  public void lazyUserServices() {
    boolean pass = false;
    User user = new User(username, password, email);
    // satisfies createLazyUser
    userDao.createLazyUser(user);
    // satisfies getUserByEmail
    User lazyUser = userDao.getUserByEmail(email);
    pass = (lazyUser.getUsername().equals(username) &&
        lazyUser.getPassword().equals(password) &&
        lazyUser.getEmail().equals(email));
    id = lazyUser.getId();
    // satisfies getUserById
    User userById = userDao.getUserById(id);
    pass = (pass && user.getUsername().equals(userById.getUsername()));
    // satisfies removeUserById
    userDao.removeUserById(id);
    userById = userDao.getUserById(id);
    pass = (pass && userById == null); // expect null
    Assert.assertTrue(pass);
View Full Code Here

Examples of com.barsoft.memepost.entities.User

     @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
         request.setCharacterEncoding("UTF-8");
        HttpSession sess = request.getSession();
        User curuser = (User) sess.getAttribute("curuser");
        String curpost = (String) request.getParameter("id");
        Users users = (Users) this.getServletContext().getAttribute("users");


        for (User u : users.getUsers().keySet()) {
View Full Code Here

Examples of com.bean.User

      Session session=factory.openSession()
       
      //creating transaction object 
      Transaction t=session.beginTransaction()
           
      User e1=new User()
      e1.setUsername("TESTHIBERNATE")
      e1.setPassword("efhwjwsfef");
      e1.setEmail("mmdd@dsjdj");
       
      session.persist(e1);//persisting the object 
       
      t.commit();//transaction is committed 
      session.close()
View Full Code Here

Examples of com.benfante.jslideshare.messages.User

 
  SlideShareAPI ssapi =  SlideShareAPIFactory.getSlideShareAPI("FfZhXNRX", "TAqlQKeN"  );   // Your API key + Your shared secret
  String embedCode="";

  User user = ssapi.getSlideshowByUser("degloba"); // getSlideshow("soa-sca-esb"); //142806
  List<Slideshow> list = user.getSlideshows();
 
 
    for (Slideshow slideshow : list){
        if (slideshow.getTitle().compareTo("Soa sca esb") == 0 )
          embedCode = slideshow.getEmbedCode();
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.