text stringlengths 3 1.18M |
|---|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.service;
import java.util.List;
import tesis.dto.in.TipoDatoDTO;
/**
*
* @author hugo
*/
public interface TipoDatoService {
List<TipoDatoDTO> find(TipoDatoDTO filtro);
TipoDatoDTO findByName(Str... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.service;
import tesis.domain.EstadoDocumento;
/**
*
* @author hugo
*/
public interface EstadoDocumentoService {
public void instalarEstadoDocumento(EstadoDocumento estadoDocumento);
}
|
package tesis.service;
import java.util.List;
import java.util.Map;
import javax.persistence.EntityManager;
/**
*
* @author otto.theo
*/
public interface CrudService {
EntityManager getEm();
<T> T create(T t);
<T> T find(Object id, Class<T> type);
<T> T update(T t);
void delete(Object t);
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.service;
import tesis.domain.TipoDocumento;
/**
*
* @author hugo
*/
public interface TipoDocumentoService {
public void instalarTipoDocumento(TipoDocumento tipoDocumento);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.service;
import tesis.dto.in.ExecuteStationDTO;
import tesis.dto.in.InstanciaEstacionDTO;
import tesis.dto.out.FormDTO;
/**
*
* @author hectdx
*/
public interface ClientTestService {
ExecuteSta... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author hu... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author he... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author he... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author he... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
/**
*
* @author hectdx
*/
@Entity
@Table(name="sincronizado_mapa_proceso")
@NamedQueries({
@NamedQuery(name=M... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author he... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author hugo
*/
@Entity
@Table(name = "usuario_x_rol")
@... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author hu... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author hectdx
*/
@Entity
@Table(name = "parametro_variable")
@XmlRootElement
@... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author he... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author he... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author hectdx
*/
@Entity
@Table(name = "parametro_documento")
@XmlRootElement
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author he... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author he... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author hectdx
*/
@Entity
@Table(name = "conexion")
@XmlRootElement
@NamedQueri... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author hectdx
*/
@Entity
@Table(name = "version_mapa_mo... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author hu... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author hectdx
*/
@Entity
@Table(name = "expediente")
@X... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author he... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author hugo
*/
@Entity
@Table(name = "rol_x_permiso")
@... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author he... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author hu... |
package tesis.domain.security;
import java.io.Serializable;
import javax.persistence.*;
/**
*
* @author otto.theo
*/
@Entity
@Table(name = "SEG_M_ROL")
@NamedQueries({
@NamedQuery(name = RolSeguridad.FIND_ROL_BY_NAME, query = "SELECT r FROM RolSeguridad r WHERE UPPER(r.nombre) = UPPER(:nombre)"),
@NamedQue... |
package tesis.domain.security;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
*
* @author otto.theo
*/
@Entity
@Table(name = "DEPENDENCIAS")
public class UnidadSeguridad implements Serializable {
@... |
package tesis.domain.security;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
/**
*
* @author otto.theo
*/
@Entity
@Table(name = "SEG_M_USRIO")
@NamedQueries({
@NamedQuery(name = UsuarioSeguridad.FIND_BY_USUARIO,
query = "SELECT u FROM UsuarioSeguridad u WHERE UPPER(u.usuar... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.utils;
/**
*
* @author hectdx
*/
public class TesisStringUtils {
public static boolean conValor(String cadena){
return (cadena!=null && !cadena.trim().equals(""));
}
}
|
package tesis.utils;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
*/
public final class PropertyUtils {
private static final Properties messagesProperties;
private static final Properties appProperties;... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.utils;
/**
*
* @author hectdx
*/
public class Constantes {
public final static String ACTIVO="A";
public final static String INACTIVO="I";
public final static String ELIMINADO="E";
}
|
package tesis.utils;
import java.io.IOException;
import java.io.Serializable;
import java.io.StringWriter;
import java.io.Writer;
import java.util.List;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.ObjectMapper;
/**
*
* @a... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.utils;
import java.util.HashMap;
import java.util.Map;
/**
*
* @author hector.olivera
*/
public class EstadosAI {
public final static String ACTIVO="A";
public final static String INACTIVO="I";
... |
package tesis.utils;
import tesis.common.utils.StringUtil;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public final class DateUtil {
private static final Logger LOG = LoggerFactory.getLogger(DateUtil.class);
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.controller;
import java.io.IOException;
import java.security.Principal;
import java.util.*;
import java.util.logging.Level;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.controller;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import org.... |
package tesis.controller.common;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller("publicController")
public class PublicController {
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.controller.util;
/**
*
* @author hectdx
*/
import java.util.Map;
import org.springframework.web.multipart.MultipartFile;
public class FileBean {
private Map<String, MultipartFile> files;
publi... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.controller.util;
import java.io.Serializable;
/**
*
* @author hectdx
*/
public class SimpleItem implements Serializable{
private String key;
private String value;
public SimpleItem() {
... |
package tesis.common.utils;
import java.util.HashMap;
import java.util.Map;
public final class QueryParameter {
private Map<String, Object> parameters = null;
private QueryParameter(String name, Object value) {
this.parameters = new HashMap<String, Object>();
this.parameters.put(name, value)... |
package tesis.common.utils;
import java.util.List;
/**
*
* @author otto.theo
*/
public final class CollectionsUtil {
private CollectionsUtil() {
}
public static boolean isEmpty(List list) {
return list == null || list.isEmpty();
}
}
|
package tesis.common.utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* @author diego.gil
*/
public final class StringUtil {
private final static Logger LOG = LoggerFactory.getLogger(StringUtil.class);
private StringUtil() {
}
public static boolean isEmpty(String obj) {
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.common.utils;
import java.util.List;
import tesis.domain.*;
import tesis.dto.in.*;
import tesis.utils.DateUtil;
/**
*
* @author hugo
*/
public class ConvertBeanUtil {
private ConvertBeanUtil... |
package tesis.common.utils;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.userdetails.UserDetails;
/**
*
* @author diego.gil
*/
public final class ControllerUtil {
private C... |
package tesis.common.security.exception;
/**
*
* @author diego.gil
*/
public class EnSesionException extends Exception {
public EnSesionException(String string) {
super(string);
}
public EnSesionException(String string, Exception e) {
super(string, e);
}
}
|
package tesis.common.security.exception;
/**
*
* @author diego.gil
*/
public class DefaultException extends Exception {
public DefaultException(String string) {
super(string);
}
public DefaultException(String string, Exception e) {
super(string, e);
}
}
|
package tesis.common.security.service;
import tesis.common.security.SeguridadService;
import tesis.common.utils.ControllerUtil;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
im... |
package tesis.common.security.service;
import tesis.common.utils.ControllerUtil;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf... |
package tesis.common.security;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.context.SecurityContextHolder;
public final class ... |
package tesis.common.security;
import javax.inject.Inject;
import org.springframework.dao.DataAccessException;
import org.springframework.security.authentication.encoding.PasswordEncoder;
import org.springframework.stereotype.Component;
@Component("customPasswordEncoder")
public class CustomPasswordEncoder implements... |
package tesis.common.security;
import tesis.common.utils.StringUtil;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transac... |
package tesis.common.security;
import tesis.domain.security.UsuarioSeguridad;
import tesis.domain.security.UsuarioSiged;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persistence.EntityNotFoundException;
import javax.persistence.NoRe... |
package tesis.common.security.filter;
import tesis.common.security.CustomUserDetailsService;
import tesis.common.security.SeguridadService;
import tesis.domain.security.UsuarioSeguridad;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletReq... |
package tesis.common.security.filter;
import tesis.common.security.exception.EnSesionException;
import tesis.common.security.service.AbstractTokenBasedRememberMeServices;
import tesis.common.utils.ControllerUtil;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
impor... |
package tesis.common.security.filter;
import tesis.common.utils.StringUtil;
import java.io.IOException;
import java.util.GregorianCalendar;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Este... |
package tesis.common.security;
public interface SeguridadService {
public String encriptar(String usuario, String clave);
public String desencriptar(String usuario, String clave);
}
|
package tesis.exception;
/**
*
* @author otto.theo
*/
public class BaseException extends Exception {
public BaseException(Throwable cause) {
super(cause);
}
public BaseException(String message, Throwable cause) {
super(message, cause);
}
public BaseException(String message) {
... |
package tesis.exception;
/**
*
* @author otto.theo
*/
public class BaseRuntimeException extends RuntimeException {
public BaseRuntimeException(Throwable cause) {
super(cause);
}
public BaseRuntimeException(String message, Throwable cause) {
super(message, cause);
}
public Base... |
package tesis.service.annotation;
import java.lang.annotation.Documented;
import static java.lang.annotation.ElementType.*;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;
import org.springframework.stereotype.Service;
/**
*
* Jo... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.service;
import java.util.List;
import tesis.domain.NombreCargo;
import tesis.domain.dto.CargoDTO;
/**
*
* @author hectdx
*/
public interface CargoService {
List<CargoDTO> find(CargoDTO filtro)... |
package tesis.service.impl;
import tesis.service.PropertiesService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
/**
*
* @author otto.theo
*/
@Service("propertiesService")
public class PropertiesServiceImpl implements PropertiesService {
//@Value("#... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.service.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import javax.inject.Inject;
import javax.persistence.Query;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
i... |
package tesis.service.impl;
import tesis.service.CrudService;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.sprin... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.service.impl;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.inject.Inject;
import javax.persistence.Query;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.service.impl;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import javax.persistence.Query;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframewo... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.service;
import java.util.List;
import tesis.domain.dto.UsuarioDTO;
import tesis.domain.Usuario;
/**
*
* @author hectdx
*/
public interface UsuarioService {
List<UsuarioDTO> find(UsuarioDTO filt... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.service;
import java.util.List;
import tesis.domain.Rol;
import tesis.domain.dto.RolDTO;
/**
*
* @author hugo
*/
public interface RolService {
List<RolDTO> find(RolDTO filtro);
Integer cantidadRole... |
package tesis.service;
/**
*
* @author otto.theo
*/
public interface PropertiesService {
Integer getIdUsuarioSigedAdministrador();
}
|
package tesis.service;
import java.util.List;
import java.util.Map;
import javax.persistence.EntityManager;
/**
*
* @author otto.theo
*/
public interface CrudService {
EntityManager getEm();
<T> T create(T t);
<T> T find(Object id, Class<T> type);
<T> T update(T t);
void delete(Object t);
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author hu... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author hugo
*/
@Entity
@Table(name = "usuario_x_rol")
@... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author hu... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author hugo
*/
@Entity
@Table(name = "rol_x_permiso")
@... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain.dto;
import java.io.Serializable;
import tesis.domain.Rol;
/**
*
* @author hugo
*/
public class RolDTO implements Serializable{
private Integer idrol;
private String nombre;
private S... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain.dto;
import java.io.Serializable;
import tesis.domain.Cargo;
import tesis.domain.NombreCargo;
/**
*
* @author hectdx
*/
public class CargoDTO implements Serializable{
private Integer idCargo... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain.dto;
import java.io.Serializable;
import tesis.domain.Usuario;
/**
*
* @author hugo
*/
public class UsuarioDTO implements Serializable{
private Integer idusuario;
private float cargala... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.domain;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
*
* @author hu... |
package tesis.domain.security;
import java.io.Serializable;
import javax.persistence.*;
/**
*
* @author otto.theo
*/
@Entity
@Table(name = "SEG_M_ROL")
@NamedQueries({
@NamedQuery(name = RolSeguridad.FIND_ROL_BY_NAME, query = "SELECT r FROM RolSeguridad r WHERE UPPER(r.nombre) = UPPER(:nombre)"),
@NamedQue... |
package tesis.domain.security;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
*
* @author otto.theo
*/
@Entity
@Table(name = "DEPENDENCIAS")
public class UnidadSeguridad implements Serializable {
@... |
package tesis.domain.security;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
/**
*
* @author otto.theo
*/
@Entity
@Table(name = "SEG_M_USRIO")
@NamedQueries({
@NamedQuery(name = UsuarioSeguridad.FIND_BY_USUARIO,
query = "SELECT u FROM UsuarioSeguridad u WHERE UPPER(u.usuar... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.utils;
/**
*
* @author hectdx
*/
public class TesisStringUtils {
public static boolean conValor(String cadena){
return (cadena!=null && !cadena.trim().equals(""));
}
}
|
package tesis.utils;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
*/
public final class PropertyUtils {
private static final Properties messagesProperties;
private static final Properties appProperties;... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.utils;
/**
*
* @author hectdx
*/
public class Constantes {
public final static String ACTIVO="A";
public final static String INACTIVO="I";
public final static String ELIMINADO="E";
}
|
package tesis.utils;
import java.io.IOException;
import java.io.Serializable;
import java.io.StringWriter;
import java.io.Writer;
import java.util.List;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.ObjectMapper;
/**
*
* @a... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.utils;
import java.util.HashMap;
import java.util.Map;
/**
*
* @author hector.olivera
*/
public class EstadosAI {
public final static String ACTIVO="A";
public final static String INACTIVO="I";
... |
package tesis.utils;
import tesis.common.utils.StringUtil;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* @author otto.theo
*/
public final class DateUtil {
private static final Logger LOG = LoggerFact... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.facto... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.controller;
import java.util.HashMap;
import java.util.Map;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org... |
package tesis.controller.common;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bin... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tesis.controller.util;
import java.io.Serializable;
/**
*
* @author hectdx
*/
public class SimpleItem implements Serializable{
private String key;
private String value;
public SimpleItem() {
... |
package tesis.controller.util;
import tesis.domain.*;
import tesis.domain.dto.*;
/**
*
* @author hector.olivera
*/
public final class ConvertBeanUtil {
private ConvertBeanUtil() {
}
public static NombreCargo convertCargoDTOtoEntity(CargoDTO cargoDTO){
NombreCargo cargo=new NombreCargo();
... |
package tesis.common.utils;
import java.util.HashMap;
import java.util.Map;
public final class QueryParameter {
private Map<String, Object> parameters = null;
private QueryParameter(String name, Object value) {
this.parameters = new HashMap<String, Object>();
this.parameters.put(name, value)... |
package tesis.common.utils;
import java.util.List;
/**
*
* @author otto.theo
*/
public final class CollectionsUtil {
private CollectionsUtil() {
}
public static boolean isEmpty(List list) {
return list == null || list.isEmpty();
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.