Package com.pe.pgn.clubpgn.model

Examples of com.pe.pgn.clubpgn.model.User


    public void attributeRemoved(HttpSessionBindingEvent event) {
        if (event.getName().equals(EVENT_KEY) && !isAnonymous()) {
            SecurityContext securityContext = (SecurityContext) event.getValue();
            Authentication auth = securityContext.getAuthentication();
            if (auth != null && (auth.getPrincipal() instanceof User)) {
                User user = (User) auth.getPrincipal();
                removeUsername(user);
            }
        }
    }
View Full Code Here


    public void attributeReplaced(HttpSessionBindingEvent event) {
        if (event.getName().equals(EVENT_KEY) && !isAnonymous()) {
            final SecurityContext securityContext = (SecurityContext) event.getValue();
            if (securityContext.getAuthentication() != null
                    && securityContext.getAuthentication().getPrincipal() instanceof User) {
                final User user = (User) securityContext.getAuthentication().getPrincipal();
                addUsername(user);
            }
        }
    }
View Full Code Here

    return findListOfBeans(query.toString(), null, OpcionMenu.class);
  }
 
  public String obtenerIdRoles(){
   
    User user = getUsuarioLogueado();
    String string = "";
    for(Iterator<Role> iterRole = user.getRoles().iterator(); iterRole.hasNext(); ){
     
      Role role = iterRole.next();
      string = string.concat(role.getId().toString());
      if(iterRole.hasNext()){
        string = string.concat(",");
View Full Code Here

    }

    @ModelAttribute
    @RequestMapping(method = RequestMethod.GET)
    public User showForm() {
        return new User()
    }
View Full Code Here

TOP

Related Classes of com.pe.pgn.clubpgn.model.User

Copyright © 2018 www.massapicom. 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.