Examples of OpcionMenu


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

      role.setName(name);
     
      String opciones = "";
      for(Iterator<OpcionMenu> iter = role.getOpcionesMenu().iterator(); iter.hasNext(); ){
       
        OpcionMenu opcionMenu = iter.next();
        if(opcionMenu.isStElegido() ||
          opcionMenu.getDeMenuHtml().equalsIgnoreCase(Constants.URL_LOGOUT) ||
          opcionMenu.getDeMenuHtml().equalsIgnoreCase(Constants.URL_MAIN_MENU) ){
          opciones = opciones.concat(opcionMenu.getId().toString()).concat(CLPConstantes.CARACTER_COMA);
        }    
      }
     
      if(opciones.endsWith(CLPConstantes.CARACTER_COMA)){
        opciones = opciones.substring(0, opciones.length() - 1);
View Full Code Here

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

     
    List<OpcionMenu> opcionesMenu = opcionMenuDao.obtenerOpcionesMenuPorUsuario();
    for (Iterator<OpcionMenu> iterOpcion = opcionesMenu.iterator(); iterOpcion.hasNext();)
    {
     
      OpcionMenu opcionMenu = iterOpcion.next();       
        MenuComponent mc = new MenuComponent();
       
        String id = opcionMenu.getId().toString();
        String coOpcionMenuPadre = opcionMenu.getCoOpcionMenuPadre() == null ? null : opcionMenu.getCoOpcionMenuPadre().toString();
                 
        mc.setName(id);
        if (coOpcionMenuPadre != null)
        {
            MenuComponent parentMenu = repository.getMenu(coOpcionMenuPadre);       
            mc.setParent(parentMenu);
        }
       
        String title = opcionMenu.getDeOpcionMenu().toString();
        mc.setTitle(title)
       
        String applicationName = servletContext.getServletContextName();
        Object url = opcionMenu.getDeMenuHtml();         
        mc.setLocation(url != null ? "/" + applicationName + "/" + url.toString() : null);
        mc.setWidth(opcionMenu.getDeAncho() == null ? null : opcionMenu.getDeAncho().toString());
                            
        repository.addMenu(mc);
    }   
   
    servletContext.setAttribute(MenuRepository.MENU_REPOSITORY_KEY, defaultRepository);
View Full Code Here

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

   
       List<Resource> list = new ArrayList<Resource>();      
       List<OpcionMenu> opcionesMenu = opcionMenuDao.obtenerTodosRolesMenuOpcion();
       if(ValidationUtil.validateList(opcionesMenu)){
         for (int i = 0; i < opcionesMenu.size(); i++) {     
           OpcionMenu opc = (OpcionMenu)opcionesMenu.get(i);
           String deMenuHtml = opc.getDeMenuHtml().trim();
           String deRol = opc.getDeName().trim();
          
           if(!deMenuHtml.startsWith("/"))
           deMenuHtml = "/"+deMenuHtml;        
           list.add(new Resource(deMenuHtml,deRol));
         }
View Full Code Here

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

             }
         }
      
       for(Iterator<OpcionMenu> iter = role.getOpcionesMenu().iterator(); iter.hasNext(); ){
          
         OpcionMenu opcionMenu = iter.next();
         String deMenuHtml = opcionMenu.getDeMenuHtml();
        
           if(deMenuHtml != null && (opcionMenu.isStElegido() ||
              Constants.URL_LOGOUT.equalsIgnoreCase(deMenuHtml) ||
              Constants.URL_MAIN_MENU.equalsIgnoreCase(deMenuHtml))){
            
             if(!deMenuHtml.startsWith("/"))
               deMenuHtml = "/"+deMenuHtml;
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.