(GLPI 23730) Desenvolver via ADM para limpeza de Cache
bug#19140 dev: trevezani qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@101542 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
c27849e86f
commit
c06fec45ed
|
@ -23,4 +23,6 @@ public interface ConstanteService extends GenericService<Constante, Integer> {
|
|||
String buscarNomeConstanteURLPainelBPe();
|
||||
|
||||
public List<Constante> buscarPorNomeConstanteLike(String nomeConstante);
|
||||
|
||||
public String buscarURLAPI();
|
||||
}
|
||||
|
|
|
@ -24,12 +24,11 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
*/
|
||||
@Service("constanteService")
|
||||
public class ConstanteServiceImpl implements ConstanteService {
|
||||
|
||||
|
||||
@Autowired
|
||||
private ConstanteDAO constanteDAO;
|
||||
|
||||
public static final String URL_PAINEL_BPE = "URL_PAINEL_BPE";
|
||||
public static final String URL_API = "URL_API";
|
||||
|
||||
public List<Constante> obtenerTodos() {
|
||||
return constanteDAO.obtenerTodos();
|
||||
|
@ -122,4 +121,14 @@ public class ConstanteServiceImpl implements ConstanteService {
|
|||
return constanteDAO.buscarPorNomeConstanteLike(nombconstante);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String buscarURLAPI(){
|
||||
Constante constante = constanteDAO.buscarPorNomeConstante(URL_API);
|
||||
|
||||
if (constante == null) {
|
||||
return "";
|
||||
}
|
||||
|
||||
return constante.getValorconstante();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue