fixes bug#21313
dev: Valdir qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@104842 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
d8159c7d89
commit
6e545219a4
|
@ -47,6 +47,12 @@ public class ItemMenuLimparCacheLocalidadesAPI extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
String[] urls = getURLSAPI();
|
String[] urls = getURLSAPI();
|
||||||
|
|
||||||
|
if( urls == null || urls.length == 0 ) {
|
||||||
|
Clients.alert(org.zkoss.util.resource.Labels.getLabel("limparCacheLocalidadesAPI.message.naoconfigurado"),
|
||||||
|
org.zkoss.util.resource.Labels.getLabel("limparCacheLocalidadesAPI.title"), Messagebox.INFORMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (String url : urls) {
|
for (String url : urls) {
|
||||||
|
|
||||||
if (StringUtils.isBlank(url) || url.contains("|")) {
|
if (StringUtils.isBlank(url) || url.contains("|")) {
|
||||||
|
@ -98,7 +104,9 @@ public class ItemMenuLimparCacheLocalidadesAPI extends DefaultItemMenuSistema {
|
||||||
private String[] getURLSAPI() {
|
private String[] getURLSAPI() {
|
||||||
ApplicationContext appContext = AppContext.getApplicationContext();
|
ApplicationContext appContext = AppContext.getApplicationContext();
|
||||||
ConstanteService constanteService = (ConstanteService) appContext.getBean("constanteService");
|
ConstanteService constanteService = (ConstanteService) appContext.getBean("constanteService");
|
||||||
return constanteService.buscarURLAPI().split("\\|");
|
String constante = constanteService.buscarURLAPI();
|
||||||
|
|
||||||
|
return constante==null ? null : constante.split("\\|");
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getToken() throws JOSEException {
|
private String getToken() throws JOSEException {
|
||||||
|
|
Loading…
Reference in New Issue