Advertisement
Guest User

CORRECCION JAVA HTC 1 ABRIL 2015 BANDEJA TODOS

a guest
Apr 1st, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.87 KB | None | 0 0
  1. ExpedienteUI expUI = new ExpedienteUI(exp);
  2.                             //PONGO LOS PERMISOS EN FALSO
  3.                             expUI.setParticion(false);
  4.                             expUI.setEditar(false);
  5.                             expUI.setAnexos(false);
  6.                             expUI.setAnexoExterno(false);
  7.                             expUI.setAgregar(false);
  8.                             expUI.setArchivar(false);
  9.                             //CONTROLO LOS PERMISOS DEL USUARIO
  10.                             List<ActionItems> listaAcciones = this.obtenerAcciones(usuario);
  11.                             for(ActionItems ai : listaAcciones){
  12.                                 if(expUI.getEstadoExpediente().getNombre().equalsIgnoreCase("ACEPTADO")){
  13.                                     if(ai.getNombre().equalsIgnoreCase("particion expediente")){
  14.                                         expUI.setParticion(true);
  15.                                     }
  16.                                     if(ai.getNombre().equalsIgnoreCase("editar expediente")){
  17.                                         expUI.setEditar(true);
  18.                                     }
  19.                                     if(ai.getNombre().equalsIgnoreCase("anexo expediente")){
  20.                                         expUI.setAnexos(true);
  21.                                     }
  22.                                     if(ai.getNombre().equalsIgnoreCase("agregar expediente")){
  23.                                         expUI.setAgregar(true);
  24.                                     }
  25.                                     if(ai.getNombre().equalsIgnoreCase("archivar expediente")){
  26.                                         expUI.setArchivar(true);
  27.                                     }
  28.                                 }
  29.                             }
  30.                             mapaExpUIactualizado.put(numeroExpediente, expUI);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement