Examples of UserAccount


Examples of net.carchrae.smartgwt.shared.data.UserAccount

   * @param resp
   * @return
   */
  public UserAccount getUser(HttpServletRequest req, HttpServletResponse resp) {
    HttpSession session = req.getSession(true);
    UserAccount account = (UserAccount) session.getAttribute("user");
    return account;
  }
View Full Code Here

Examples of net.fortytwo.twitlogic.persistence.beans.UserAccount

        if (null != tweet.getText()) {
            post.setContent(tweet.getText());
        }

        if (null != tweet.getUser()) {
            UserAccount userAccount = accountForUser(tweet.getUser());
            post.setHasCreator(userAccount);
        }

        if (null != tweet.getInReplyToTweet()) {
            MicroblogPost p = postForTweet(tweet.getInReplyToTweet());
View Full Code Here

Examples of oauth2.service.UserAccount

 
  @GET
  public Calendar getUserCalendar() {
      OAuthContext oauth = getOAuthContext();
      String userName = oauth.getSubject().getLogin();
      UserAccount account = accounts.getAccount(userName);
      if (account == null) {
        account = accounts.getAccountWithAlias(userName);
      }
    return account.getCalendar();
  }
View Full Code Here

Examples of org.apache.marmotta.platform.user.model.UserAccount

            return Response.ok(apj, Namespaces.MIME_TYPE_JSON).location(java.net.URI.create(user.stringValue())).build();
        }
        try {
            RepositoryConnection conn = sesameService.getConnection();
            try {
                final UserAccount a = accountService.getAccount(user);
                if (a != null) {
                    AccountPoJo apj = new AccountPoJo(a.getLogin(), a.getWebId());
                    apj.setRoles(a.getRoles());

                    for (Statement t : ResourceUtils.listOutgoing(conn,conn.getValueFactory().createURI(a.getWebId()))) {
                        String prop = t.getPredicate().stringValue();
                        if (prop.startsWith(Namespaces.NS_FOAF)) {
                            Value object = t.getObject();
                            if (object instanceof org.openrdf.model.URI) {
                                apj.setFoaf(prop, String.format("<%s>", object));
View Full Code Here

Examples of org.encuestame.persistence.domain.security.UserAccount

            final String email = this.convertSocialConnectedAccountToBean(social.getSocialUserProfile()).getEmail();
            log.info("sign in social account email -->"+email);
            String redirectPath =  "signin/provider/register";
            Assert.notNull(email);
            //user account by email
            final UserAccount accountEmail = getAccountDao().getUserByEmail(email);
            //if the user account is new, we create new account.
            if (accountEmail == null) {
                log.debug("This email ["+email+"] never has been used.");
                //create fist connection and social account.
                final SocialAccount accountConnection = this.signUpSocial(
View Full Code Here

Examples of org.mockftpserver.fake.UserAccount

    }

    void startServer() {
        fakeFtpServer = new FakeFtpServer();
        fakeFtpServer.setServerControlPort(9879);
        fakeFtpServer.addUserAccount(new UserAccount("admin", "123456", "/"));

        FileSystem fileSystem = new UnixFakeFileSystem();
        fileSystem.add(new DirectoryEntry("/data/prancingdonkey/catalog"));
        fakeFtpServer.setFileSystem(fileSystem);
        fakeFtpServer.start();
View Full Code Here

Examples of org.sonatype.nexus.rest.model.UserAccount

    resource.addRole("ui-basic");
    resource.setStatus("active");

    this.userMsgUtil.createUser(resource);

    UserAccount dto = accountMsgUtil.readAccount("nxcm897");
    Assert.assertEquals("NXCM 897", dto.getFirstName());
    Assert.assertEquals("nxcm897@changeme.com", dto.getEmail());

    dto.setEmail("nxcm897@changeme2.com");
    dto = accountMsgUtil.updateAccount(dto);
    Assert.assertEquals("nxcm897@changeme2.com", dto.getEmail());
  }
View Full Code Here

Examples of org.zkybase.model.UserAccount

 
  @RequestMapping(value = "/current", method = RequestMethod.GET)
  public String getCurrentUserDetails(Model model) {
   
    // FIXME Do lookup
    UserAccount dummy = new UserAccount();
    dummy.setId(1L);
    dummy.setUsername("willie");
    model.addAttribute(dummy);
    model.addAttribute("entity", dummy);
   
    // GitHub profile
    GitHubUserProfile gitHubUser = userAccountService.getCurrentUserProfile();
View Full Code Here

Examples of user.UserAccount

        if(FacesContext.getCurrentInstance().isValidationFailed()) {
            return null;
        } else {
           
            UserAccount userAccount = userAccountDAO.findByPasswordRecoveryString(userManager.getSessionManager()
                    .getPasswordRecoveryString());
           
            if(userAccount != null) {
                userAccount.setUserPassword(newPassword);

                userAccountDAO.update(userAccount);

                userManager.getSessionManager().setBlocked(false);
               
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.