Examples of User


Examples of BusinessObjects.User

  @Override
  public void startElement(String uri, String localName, String qName,
      Attributes attributes) throws SAXException {
    if (localName.compareTo("utilisateur") == 0) {
      currentUser = new User();
    }
    if (localName.equals("ID") && baliseMere.equals("delete")){
      this.usersToDelete.add(attributes.getValue(0));
    }
View Full Code Here

Examples of Database.Primitives.User

    }

    private void formatUser(String dataLine) {
        String[] splitData = dataLine.split("\\|");
        if (splitData != null) {
            currentUser = new User(strArrayToIntArray(splitData)[0]);
            if (splitData.length == 3) {
                currentUser.setAvgRating(Double.valueOf(splitData[2]));
            }
            users.addUser(currentUser);
View Full Code Here

Examples of HBaseIA.TwitBase.model.User

    HTablePool pool = new HTablePool();
    UsersDAO dao = new UsersDAO(pool);

    if ("get".equals(args[0])) {
      log.debug(String.format("Getting user %s", args[1]));
      User u = dao.getUser(args[1]);
      System.out.println(u);
    }

    if ("add".equals(args[0])) {
      log.debug("Adding user...");
      dao.addUser(args[1], args[2], args[3], args[4]);
      User u = dao.getUser(args[1]);
      System.out.println("Successfully added user " + u);
    }

    if ("list".equals(args[0])) {
      List<User> users = dao.getUsers();
View Full Code Here

Examples of Login.User

   
    try {
      RS=db.MySQLSelect("SELECT * from UserAccount");
     
      while(RS.next()){
        User temp = new User("", "", "");
        temp.setUserName(RS.getString("username"));
        temp.setPassword(RS.getString("password"));
        temp.setUserType(RS.getString("usertype"));
        users.add(temp);
     
        RS.close();
     
    }catch(Exception ex){
View Full Code Here

Examples of adios.model.User

   @Override
   public boolean preHandle(HttpServletRequest request,
     HttpServletResponse response, Object handler) throws Exception
   {
    String uri = request.getRequestURI();
    User userData = (User) request.getSession().getAttribute(loginUser);

    if(uri.contains("/user/welcome.html")){
      return true;
    }
    if(uri.contains("user") && userData == null)
View Full Code Here

Examples of aim.domain.security.User

        serie33.setPolicyType(policyType3);
        entityManager.persist(policyType3);


        final Account admin = new Account(new Employee(new Passport("АВ", "468454"), "Иванов", "Иван"));
        final User aimSecurityAdimn = new User("admin", "a4a88c0872bf652bb9ed803ece5fd6e82354838a9bf59ab4babb1dab322154e1");
        Set<UserRoles> userRoles = new TreeSet<UserRoles>();
        userRoles.add(UserRoles.ROLE_USER);
        userRoles.add(UserRoles.ROLE_ADMIN);
        admin.setAssociatedRoles(userRoles);
        admin.setAccount(aimSecurityAdimn);
View Full Code Here

Examples of api.User

    }
   
    @Override
    public void newUser(String username) throws IOException, UserAlreadyExistsException {
        if (!this.io.userFileExists(username)) {
            this.io.save(new User(username));
        } else {
            throw new UserAlreadyExistsException();
        }
    }
View Full Code Here

Examples of appointment.objects.User

        "IAppointmentManagement/local",
        IAppointmentManagementLocal.class);
  }

  public List<Long> getAppointments(String username) {
    User user = userManagement.getUser(username);

    return appointmentManagement.getIdList(appointmentManagement.getAppointments(user));

  }
View Full Code Here

Examples of ar.com.AmberSoft.iEvenTask.backend.entities.User

    if (entities!=null){
      Set keys = entities.keySet();
      Iterator it = keys.iterator();
      while (it.hasNext()) {
        Object key = (Object) it.next();
        User user = (User) entities.get(key);
        if ((user!=null) && (user.getLockTime()!=null)){
          Long diferencia = actual.getTime() - user.getLockTime().getTime();
          Long minutosTranscurridos = diferencia / SEG_X_MIN / MILSEG_X_SEG;
          if (minutosTranscurridos>periodicity){
            logger.debug("Desactivando bloqueos para el usuario " + user.getName() + " por inactividad.");
            EntitiesManager.getInstance().unlockAll(user);
          }
        }
      }
    }
View Full Code Here

Examples of ariba.appcore.User

    private static final Pattern _FromPattern = Pattern.compile(
            "(?m)^From: (?:\"(.+?)\")?\\s?<(.+?)>$");

    public static User findOrCreateSender (AWMimeParsedMessage parsedMessage)
    {
        User sender = null;
        if (parsedMessage.getIsPureForward()) {
            String text = parsedMessage.plainTextForPart(parsedMessage.getTopLevelParts().get(0));
            Matcher m = _FromPattern.matcher(text);
            if (m.find()) {
                sender = User.findOrCreate(m.group(2), m.group(1));
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.