fixes bug#14443
qua:junia dev:alberto git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@93685 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
f813d6b1cd
commit
17a1234ddb
|
@ -5,6 +5,7 @@
|
||||||
package com.rjconsultores.ventaboletos.service;
|
package com.rjconsultores.ventaboletos.service;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Constante;
|
import com.rjconsultores.ventaboletos.entidad.Constante;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface ConstanteService extends GenericService<Constante, Integer> {
|
public interface ConstanteService extends GenericService<Constante, Integer> {
|
||||||
|
@ -16,4 +17,8 @@ public interface ConstanteService extends GenericService<Constante, Integer> {
|
||||||
String buscarNombreAmbiente();
|
String buscarNombreAmbiente();
|
||||||
|
|
||||||
boolean pafActivo();
|
boolean pafActivo();
|
||||||
|
|
||||||
|
String buscarURLPainelBPe();
|
||||||
|
|
||||||
|
String buscarNomeConstanteURLPainelBPe();
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,9 +25,12 @@ import org.springframework.transaction.annotation.Transactional;
|
||||||
@Service("constanteService")
|
@Service("constanteService")
|
||||||
public class ConstanteServiceImpl implements ConstanteService {
|
public class ConstanteServiceImpl implements ConstanteService {
|
||||||
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ConstanteDAO constanteDAO;
|
private ConstanteDAO constanteDAO;
|
||||||
|
|
||||||
|
public static final String URL_PAINEL_BPE = "URL_PAINEL_BPE";
|
||||||
|
|
||||||
public List<Constante> obtenerTodos() {
|
public List<Constante> obtenerTodos() {
|
||||||
return constanteDAO.obtenerTodos();
|
return constanteDAO.obtenerTodos();
|
||||||
}
|
}
|
||||||
|
@ -82,6 +85,22 @@ public class ConstanteServiceImpl implements ConstanteService {
|
||||||
return constante.getValorconstante();
|
return constante.getValorconstante();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String buscarNomeConstanteURLPainelBPe(){
|
||||||
|
return URL_PAINEL_BPE;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String buscarURLPainelBPe(){
|
||||||
|
Constante constante = constanteDAO.buscarPorNomeConstante(URL_PAINEL_BPE);
|
||||||
|
if (constante == null){
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
return constante.getValorconstante();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean pafActivo(){
|
public boolean pafActivo(){
|
||||||
List<Constante> list = constanteDAO.buscar("HOMOLOGACAO_PAF");
|
List<Constante> list = constanteDAO.buscar("HOMOLOGACAO_PAF");
|
||||||
|
|
Loading…
Reference in New Issue