Examples of UserAccount


Examples of com.savingcentschange.servicesCC.entities.UserAccount

  @Transactional(value = "transactionManagerMain", noRollbackFor = Exception.class)
  public Response<?> addCoUserAccount(Map<String, Object> input) {
    LOGGER.info("Begin addCoUserAccount...");
    Response<String> response = new Response<String>();
    UserAccount userAccount = new UserAccount();
    String passwordUserAccount = EncryptDecryptUtil.randomString(8);
    FamilyMembers member = familyDao.getFamilyMembers((Integer) input
        .get(Constants.ID_FAMILY_MEMBERS));
    userAccount.setFamilyMember(member);
    userAccount.setMailUserAccount(member.getMailFamilyMember());
    userAccount.setNameUserAccount(member.getFirstNameFamilyMember());
    userAccount
        .setSecondNameUserAccount(member.getSecondNameFamilyMember());
    userAccount.setPasswordUserAccount(passwordUserAccount);
    try {
      userAccountDao.addUserAccount(userAccount);
      response.setT(passwordUserAccount);
      response.setCodeExcute(Constants.OK);
    } catch (EncryptDecryptUtilException e) {
View Full Code Here

Examples of com.savingcentschange.servicesCC.entities.UserAccount

   private IBalanceDao balanceDao;
   @Test
  public void testBalanceOperations(){
     LOGGER.info("Begin testBalanceOperations..");
     List<Balance> listBalance = new ArrayList<Balance>();
     UserAccount userAccount = new UserAccount();
     userAccount.setIdtbCoreUserAccount(100000);
     listBalance.add(new Balance(
        1.00D,new Date(),userAccount));
     listBalance.add(new Balance(
        1.00D,new Date(),userAccount));
     balanceDao.addAll(listBalance);
View Full Code Here

Examples of com.savingcentschange.servicesCC.entities.UserAccount

   @Autowired
   private IUserAccountDao userAccountDao;
   @Test
  public void testUserAccountOperations() throws EncryptDecryptUtilException{
     LOGGER.info("Init testUserAccountOperations");
     UserAccount userAccount = new  UserAccount("Marcos","Alexis",
          "miPasswor", "chavo",
          "marcos.alexis.21@gmail.com");
     List< UserAccount> listUserAccount= new ArrayList<UserAccount>();
     listUserAccount.add(userAccount);
     userAccountDao.addAll(listUserAccount);
View Full Code Here

Examples of com.savingcentschange.servicesCC.entities.UserAccount

        .getResourceAsStream("data.properties"));
    LOGGER.info("Begin testEspensDao..");
    final String tokens[]={"type","value"};
    final String expens="expenses.";
    Date date = new Date();
    UserAccount userAccount = userAccountDao.getUserAccount(1000000);
    List<Expenses> list = new ArrayList<Expenses>();
    for(int i=1;i<18;i++){
      String propertie=expens+tokens[0]+"."+i;
      String value = properties.getProperty(propertie);
      Integer index = Integer.parseInt(value);
View Full Code Here

Examples of com.springone.myrestaurants.domain.UserAccount

        return "redirect:/useraccounts/" + userAccount.getId();
    }

  @RequestMapping(params = "form", method = RequestMethod.GET)
    public String createForm(Model model) {
        model.addAttribute("userAccount", new UserAccount());
        addDateTimeFormatPatterns(model);
        return "useraccounts/create";
    }
View Full Code Here

Examples of com.starbase.starteam.UserAccount

            // Try to obtain email to add.  This is only allowed if logged on
            // user is SERVER ADMINISTRATOR
            try {
                // check if user account exists
                UserAccount useracct =
                    user.getServer().getAdministration().findUserAccount(user.getID());
                if (useracct == null) {
                    LOG.warn("User account " + user.getID() + " not found for email address.");
                } else {
                    mod.emailAddress = useracct.getEmailAddress();
                }
            } catch (ServerException sx) {
                // Logged on user does not have permission to get user's email.
                // Return the modifying user's name instead. Then use the
                // email.properties file to map the name to an email address
View Full Code Here

Examples of com.starbase.starteam.UserAccount

            // Try to obtain email to add.  This is only allowed if logged on
            // user is SERVER ADMINISTRATOR
            try {
                // check if user account exists
                UserAccount useracct =
                    user.getServer().getAdministration().findUserAccount(user.getID());
                if (useracct == null) {
                    LOG.warn("User account " + user.getID() + " not found for email address.");
                } else {
                    mod.emailAddress = useracct.getEmailAddress();
                }
            } catch (ServerException sx) {
                // Logged on user does not have permission to get user's email.
                // Return the modifying user's name instead. Then use the
                // email.properties file to map the name to an email address
View Full Code Here

Examples of com.stoyanr.todo.model.UserAccount

public class LoginServiceImpl extends RemoteServiceServlet implements
    LoginService {

    @Override
    public UserAccount login(String requestUri) {
        UserAccount userAccount = null;
        UserService userService = UserServiceFactory.getUserService();
        assert (userService != null);
        User user = userService.getCurrentUser();
        if (user != null) {
            String logoutUrl = userService.createLogoutURL(requestUri);
            userAccount = new UserAccount(user.getUserId(), user.getNickname(),
                user.getEmail(), true, null, logoutUrl);
        } else {
            String loginUrl = userService.createLoginURL(requestUri);
            userAccount = new UserAccount(null, null, null, false, loginUrl,
                null);
        }
        return userAccount;
    }
View Full Code Here

Examples of de.spotnik.mail.core.model.UserAccount

     * read all messages from the database
     */
    private void initMessageList()
    {
        MessageController msgController = PluginContext.instance().getMessageController();
        UserAccount account = UserSession.getCurrentAccount();
        messages = new ArrayList<MessageTO>();
       
        if( account != null)
        {
            messages = msgController.findAllMessages(account.getId());
        }
        else
        {
            LOG.debug("account not available in current session");
        }
View Full Code Here

Examples of it.unipd.netmus.server.persistent.UserAccount

     */
    @Override
    public boolean deleteSong(String user, String artist, String title,
            String album) {

        UserAccount useraccount = UserAccount.load(user);
        return useraccount.getMusicLibrary().removeSong(artist, title, album);

    }
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.