Commit dd3d1b1297eafd7c88a1d1e24715b7a4b06dc1a6

Authored by juliana.barbosa
1 parent 683db74a
Exists in master

Redmine #3948 - alteracoes label

cit-tabelas-corp-api/src/main/java/br/com/centralit/api/service/impl/BairroServiceImpl.java
@@ -161,7 +161,7 @@ public class BairroServiceImpl extends GenericServiceImpl<Bairro, Long> implemen @@ -161,7 +161,7 @@ public class BairroServiceImpl extends GenericServiceImpl<Bairro, Long> implemen
161 161
162 if(this.enderecoService.existeBairroVinculadoAEndereco(bairroId)){ 162 if(this.enderecoService.existeBairroVinculadoAEndereco(bairroId)){
163 163
164 - throw new BusinessException("MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue()); 164 + throw new BusinessException("PORTAL.MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue());
165 165
166 } 166 }
167 167
cit-tabelas-corp-api/src/main/java/br/com/centralit/api/service/impl/CidadeServiceImpl.java
@@ -157,7 +157,7 @@ public class CidadeServiceImpl extends GenericServiceImpl<Cidade, Long> implemen @@ -157,7 +157,7 @@ public class CidadeServiceImpl extends GenericServiceImpl<Cidade, Long> implemen
157 public boolean removeById(Long idCidade) { 157 public boolean removeById(Long idCidade) {
158 158
159 if(this.bairroService.existeBairroVinculadoACidade(idCidade)){ 159 if(this.bairroService.existeBairroVinculadoACidade(idCidade)){
160 - throw new BusinessException("MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue()); 160 + throw new BusinessException("PORTAL.MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue());
161 } 161 }
162 162
163 return this.dao.removeById(idCidade); 163 return this.dao.removeById(idCidade);
cit-tabelas-corp-api/src/main/java/br/com/centralit/api/service/impl/ComissaoServiceImpl.java
@@ -218,7 +218,7 @@ public class ComissaoServiceImpl extends GenericServiceImpl<Comissao, Long> impl @@ -218,7 +218,7 @@ public class ComissaoServiceImpl extends GenericServiceImpl<Comissao, Long> impl
218 clientRestAlmoxarifadoBaixa.addParametro("id", idComissao.toString()); 218 clientRestAlmoxarifadoBaixa.addParametro("id", idComissao.toString());
219 219
220 if(clientRestAlmoxarifadoBaixa.validarRegra("baixa/existeVinculo")) { 220 if(clientRestAlmoxarifadoBaixa.validarRegra("baixa/existeVinculo")) {
221 - throw new BusinessException("MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue(), " Baixa de bens"); 221 + throw new BusinessException("PORTAL.MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue(), " Baixa de bens");
222 } 222 }
223 } 223 }
224 224
@@ -241,7 +241,7 @@ public class ComissaoServiceImpl extends GenericServiceImpl<Comissao, Long> impl @@ -241,7 +241,7 @@ public class ComissaoServiceImpl extends GenericServiceImpl<Comissao, Long> impl
241 clientRestAlmoxarifadoInventario.addParametro("id", idComissao.toString()); 241 clientRestAlmoxarifadoInventario.addParametro("id", idComissao.toString());
242 242
243 if (clientRestAlmoxarifadoInventario.validarRegra("inventario/existeVinculo")) { 243 if (clientRestAlmoxarifadoInventario.validarRegra("inventario/existeVinculo")) {
244 - throw new BusinessException("MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue(), " Inventário"); 244 + throw new BusinessException("PORTAL.MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue(), " Inventário");
245 } 245 }
246 } 246 }
247 247
cit-tabelas-corp-api/src/main/java/br/com/centralit/api/service/impl/EnderecoServiceImpl.java
@@ -219,7 +219,7 @@ public class EnderecoServiceImpl extends GenericServiceImpl<Endereco, Long> impl @@ -219,7 +219,7 @@ public class EnderecoServiceImpl extends GenericServiceImpl<Endereco, Long> impl
219 219
220 if(this.enderecoDao.existeEnderecoVinculadoALocalizacao(enderecoId)){ 220 if(this.enderecoDao.existeEnderecoVinculadoALocalizacao(enderecoId)){
221 221
222 - throw new BusinessException("MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue()); 222 + throw new BusinessException("PORTAL.MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue());
223 223
224 } 224 }
225 225
cit-tabelas-corp-api/src/main/java/br/com/centralit/api/service/impl/EstadoServiceImpl.java
@@ -142,7 +142,7 @@ public class EstadoServiceImpl extends GenericServiceImpl<Estado, Long> implemen @@ -142,7 +142,7 @@ public class EstadoServiceImpl extends GenericServiceImpl<Estado, Long> implemen
142 public boolean removeById(Long idEstado) { 142 public boolean removeById(Long idEstado) {
143 143
144 if(this.cidadeService.existeCidadeVinculadoAoEstado(idEstado)){ 144 if(this.cidadeService.existeCidadeVinculadoAoEstado(idEstado)){
145 - throw new BusinessException("MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue()); 145 + throw new BusinessException("PORTAL.MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue());
146 } 146 }
147 147
148 return this.dao.removeById(idEstado); 148 return this.dao.removeById(idEstado);
cit-tabelas-corp-api/src/main/java/br/com/centralit/api/service/impl/LocalizacaoServiceImpl.java
@@ -242,7 +242,7 @@ public class LocalizacaoServiceImpl extends GenericServiceImpl<Localizacao, Long @@ -242,7 +242,7 @@ public class LocalizacaoServiceImpl extends GenericServiceImpl<Localizacao, Long
242 242
243 if (clientRest.validarRegra("estruturaOrganizacional/existeVinculo")) { 243 if (clientRest.validarRegra("estruturaOrganizacional/existeVinculo")) {
244 244
245 - throw new BusinessException("MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue()); 245 + throw new BusinessException("PORTAL.MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue());
246 246
247 } 247 }
248 248
cit-tabelas-corp-api/src/main/java/br/com/centralit/api/service/impl/NivelAutoridadeServiceImpl.java
@@ -185,7 +185,7 @@ public class NivelAutoridadeServiceImpl extends GenericServiceImpl<NivelAutorida @@ -185,7 +185,7 @@ public class NivelAutoridadeServiceImpl extends GenericServiceImpl<NivelAutorida
185 185
186 // TODO Auto-generated method stub 186 // TODO Auto-generated method stub
187 if (this.alcadaService.existeAlcadaVinculadaAoNivelAutoridade(idNivelAutoridade)) { 187 if (this.alcadaService.existeAlcadaVinculadaAoNivelAutoridade(idNivelAutoridade)) {
188 - throw new BusinessException("MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue()); 188 + throw new BusinessException("PORTAL.MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue());
189 } 189 }
190 190
191 return this.nivelAutoridadeDao.removeById(idNivelAutoridade); 191 return this.nivelAutoridadeDao.removeById(idNivelAutoridade);
cit-tabelas-corp-api/src/main/java/br/com/centralit/api/service/impl/PaisServiceImpl.java
@@ -141,7 +141,7 @@ public class PaisServiceImpl extends GenericServiceImpl<Pais, Long> implements P @@ -141,7 +141,7 @@ public class PaisServiceImpl extends GenericServiceImpl<Pais, Long> implements P
141 public boolean removeById(Long idPais) { 141 public boolean removeById(Long idPais) {
142 142
143 if(this.regiaoService.existeRegiaoVinculadoAoPais(idPais)){ 143 if(this.regiaoService.existeRegiaoVinculadoAoPais(idPais)){
144 - throw new BusinessException("MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue()); 144 + throw new BusinessException("PORTAL.MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue());
145 } 145 }
146 146
147 return this.dao.removeById(idPais); 147 return this.dao.removeById(idPais);
cit-tabelas-corp-api/src/main/java/br/com/centralit/api/service/impl/RegiaoServiceImpl.java
@@ -165,7 +165,7 @@ public class RegiaoServiceImpl extends GenericServiceImpl<Regiao, Long> implemen @@ -165,7 +165,7 @@ public class RegiaoServiceImpl extends GenericServiceImpl<Regiao, Long> implemen
165 public boolean removeById(Long idRegiao) { 165 public boolean removeById(Long idRegiao) {
166 166
167 if (this.estadoService.existeEstadoVinculadoARegiao(idRegiao)) { 167 if (this.estadoService.existeEstadoVinculadoARegiao(idRegiao)) {
168 - throw new BusinessException("MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue()); 168 + throw new BusinessException("PORTAL.MSG.MN020", CodigoErro.REGRA_NEGOCIO.getValue());
169 } 169 }
170 170
171 return this.dao.removeById(idRegiao); 171 return this.dao.removeById(idRegiao);