use of com.tomasio.projects.trainning.dto.OrganizacaoDTO in project trainning by fernandotomasio.
the class CommonsController method initializeSelectableOrganizacoes.
public Map<Object, Object> initializeSelectableOrganizacoes(Long parentId) {
Map<Object, Object> result = new HashMap<>();
OrganizacaoDTO[] organizacoes;
if (parentId != null) {
organizacoes = organizationalService.findAllOrganizacoesSubordinadas(parentId);
} else {
organizacoes = organizationalService.findAllOrganizacoes();
}
OrganizacaoDTO parent = organizationalService.findOrganizacao(parentId);
result.put(parent.getId(), parent.getSigla());
for (OrganizacaoDTO organizacao : organizacoes) {
result.put(organizacao.getId(), organizacao.getSigla());
}
return result;
}
use of com.tomasio.projects.trainning.dto.OrganizacaoDTO in project trainning by fernandotomasio.
the class CommonsController method getOrganizacaoData.
public Map getOrganizacaoData(SelectOrganizacaoForm form) {
Map result = new HashMap<>();
OrganizacaoDTO organizacao = organizationalService.findOrganizacao(form.getOrganizacaoId());
result.put("nome", organizacao.getNome());
result.put("id", organizacao.getId());
result.put("sigla", organizacao.getSigla());
return result;
}
use of com.tomasio.projects.trainning.dto.OrganizacaoDTO in project trainning by fernandotomasio.
the class CommonsController method getGestoraData.
public Map<Object, Object> getGestoraData(SelectGestoraForm form) {
Map<Object, Object> result = new HashMap<>();
OrganizacaoDTO organizacaoDTO = organizationalService.findOrganizacao(form.getOrganizacaoId());
result.put("id", organizacaoDTO.getId());
result.put("sigla", organizacaoDTO.getSigla());
return result;
}
use of com.tomasio.projects.trainning.dto.OrganizacaoDTO in project trainning by fernandotomasio.
the class CommonsController method initializeSelectableOrganizacoes.
public Map<Object, Object> initializeSelectableOrganizacoes() {
Map<Object, Object> result = new HashMap<>();
OrganizacaoDTO[] organizacoes;
organizacoes = organizationalService.findAllOrganizacoes();
for (OrganizacaoDTO organizacao : organizacoes) {
result.put(organizacao.getId(), organizacao.getSigla());
}
return result;
}
use of com.tomasio.projects.trainning.dto.OrganizacaoDTO in project trainning by fernandotomasio.
the class CommonsController method initializeSelectableOrganizacoesGestoras.
public Map<Object, Object> initializeSelectableOrganizacoesGestoras() {
Map<Object, Object> result = new HashMap<>();
OrganizacaoDTO[] organizacoes;
organizacoes = atividadesEnsinoService.findAllOrganizacoesGestoras();
for (OrganizacaoDTO organizacao : organizacoes) {
result.put(organizacao.getId(), organizacao.getSigla());
}
return result;
}
Aggregations