Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ExpedienteUI expUI = new ExpedienteUI(exp);
- //PONGO LOS PERMISOS EN FALSO
- expUI.setParticion(false);
- expUI.setEditar(false);
- expUI.setAnexos(false);
- expUI.setAnexoExterno(false);
- expUI.setAgregar(false);
- expUI.setArchivar(false);
- //CONTROLO LOS PERMISOS DEL USUARIO
- List<ActionItems> listaAcciones = this.obtenerAcciones(usuario);
- for(ActionItems ai : listaAcciones){
- if(expUI.getEstadoExpediente().getNombre().equalsIgnoreCase("ACEPTADO")){
- if(ai.getNombre().equalsIgnoreCase("particion expediente")){
- expUI.setParticion(true);
- }
- if(ai.getNombre().equalsIgnoreCase("editar expediente")){
- expUI.setEditar(true);
- }
- if(ai.getNombre().equalsIgnoreCase("anexo expediente")){
- expUI.setAnexos(true);
- }
- if(ai.getNombre().equalsIgnoreCase("agregar expediente")){
- expUI.setAgregar(true);
- }
- if(ai.getNombre().equalsIgnoreCase("archivar expediente")){
- expUI.setArchivar(true);
- }
- }
- }
- mapaExpUIactualizado.put(numeroExpediente, expUI);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement