Examples of User


Examples of com.dthielke.starburst.User

    @Override
    public String[] getPlayerGroups(String world, String player) {
        OfflinePlayer op = Bukkit.getOfflinePlayer(player);
        GroupSet set = perms.getGroupManager().getWorldSet(Bukkit.getWorld(world));
        User user = set.getUser(op);

        Set<Group> children = user.getChildren(true);
        List<String> groups = new ArrayList<String>();
        for (Group child : children) {
            groups.add(child.getName());
        }
        return groups.toArray(new String[groups.size()]);
View Full Code Here

Examples of com.dyuproject.demos.deprecated.todolist.model.User

        {
            response.sendError(404);
            return;
        }
        CookieSession session = getWebContext().getSession(request);
        User user = _userDao.get((Long)session.getAttribute(Constants.ID));
        request.setAttribute(Constants.USER, user);
        response.setContentType(Constants.TEXT_HTML);
        getWebContext().getJSPDispatcher().dispatch("overview/index.jsp", request,
                response);
    }
View Full Code Here

Examples of com.dyuproject.demos.todolist.model.User

       
        Credential cred = new Credential();
        cred.setUsername(username);
        cred.setPassword(password);
        cred.setRole(Integer.valueOf(0));
        User user = null;
        try
        {
            user = (User)rc.getConsumer().consume(rc);
        }
        catch(ValidationException ve)
View Full Code Here

Examples of com.eaglegenomics.simlims.core.User

  }

  public JSONObject getSampleQCUsers(HttpSession session, JSONObject json) {
    try {
      Collection<String> users = new HashSet<String>();
      User user = securityManager.getUserByLoginName(SecurityContextHolder.getContext().getAuthentication().getName());
      users.add(user.getFullName());

      if (json.has("sampleId") && !json.get("sampleId").equals("")) {
        Long sampleId = Long.parseLong(json.getString("sampleId"));
        Sample sample = requestManager.getSampleById(sampleId);
View Full Code Here

Examples of com.earth2me.essentials.User

                // Essentials tests
                boolean UsingESS = plugin.isEssentials();
               
                if (UsingESS && !isTownyAdmin) {
                        try {
                            User user = plugin.getEssentials().getUser(player);
                           
                            if (!user.isJailed()) {
                             
                                Teleport teleport = user.getTeleport();
                                if (!chunk.isLoaded()) chunk.load();
                                // Cause an essentials exception if in cooldown.
                                teleport.cooldown(true);
                                teleport.teleport(town.getSpawn(),null);
                            }
View Full Code Here

Examples of com.eastidea.qaforum.model.User

   *
   */
  private static final long serialVersionUID = -7774827458593812097L;

  public User getUser(Long userid) {
    User user = entityManager.find(User.class, Long.valueOf(userid));
    return user;
  }
View Full Code Here

Examples of com.eatle.persistent.pojo.system.useradmin.User

  public String login()
  {
    String verifycode_s = (String) session.get("verifyCode_s");
    if(verifycode_c.equals(verifycode_s))
    {
      User user = userService.find(this.user);
      if(user == null)
      {
        resultMap.put("res", "0");
      }
      else
      {
        if(user.getPwd().equals(this.user.getPwd()))
        {
          // 移除验证码
          session.remove("verifyCode_s");
          // 设置权限,存入登录信息
          user.setAllPrivs(rolePrivilegeService
              .findPrivsByRoleId(user.getRoleId()));
          session.put("user", user);
          // 登陆日志
          writeLoginLog(user);
          // 验证结果
          resultMap.put("res", "1");
View Full Code Here

Examples of com.ericdaugherty.mail.server.info.User

            //Check the address to see if we can deliver it.
            DeliveryService deliveryService = DeliveryService.getDeliveryService();
            if( deliveryService.acceptAddress( address, clientIp, message.getFromAddress() ) ) {
                // Check to see if it is a local user.  If so, ask to
                // user object for the delivery addresses.
                User localUser = configurationManager.getUser( address );
                if( localUser!= null ) {
                    EmailAddress[] addresses = localUser.getDeliveryAddresses();
                    for( int index = 0; index < addresses.length; index++ ) {
                        message.addToAddress( addresses[index] );
                    }
                }
                // Otherwise, just add the address.
View Full Code Here

Examples of com.erudika.para.core.User

    HttpServletResponse response = (HttpServletResponse) res;

    if (RestRequestMatcher.INSTANCE.matches(request)) {
      Authentication auth = SecurityContextHolder.getContext().getAuthentication();
      if (auth != null && auth.getPrincipal() instanceof User) {
        User u = SecurityUtils.getAuthenticatedUser();
        if (u == null || !u.getActive()) {
          RestUtils.returnStatusResponse(response, HttpServletResponse.SC_FORBIDDEN, "User is invalid.");
          return;
        }
      } else {
        String appid = RestUtils.extractAccessKey(request);
View Full Code Here

Examples of com.esri.gpt.framework.security.principal.User

   
    // ensure that the old password was supplied correctly for the user
    UsernamePasswordCredentials testCred = new UsernamePasswordCredentials();
    testCred.setUsername(origCred.getUsername());
    testCred.setPassword(origCred.getPassword());
    User testUser = new User();
    testUser.setCredentials(testCred);
    authenticate(testUser);
   
    // ensure that the new credentials are valid
    CredentialPolicy policy = new CredentialPolicy();
    policy.validatePasswordPolicy(newCred);
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.