Search in sources :

Example 6 with ConviteInstrutor

use of com.tomasio.projects.trainning.model.ConviteInstrutor in project trainning by fernandotomasio.

the class AtividadesEnsinoServiceSimpleImpl method findAllConvitesInstrutoresByOrganizacaoDestinatariaId.

@Override
@Transactional(readOnly = true)
public ConviteInstrutorDTO[] findAllConvitesInstrutoresByOrganizacaoDestinatariaId(Long organizacaoId, boolean finalizado) {
    ConviteInstrutorDAO dao = factory.getConviteInstrutorDAO();
    try {
        List<ConviteInstrutor> itens = dao.findAllByOrganizacaoDestinatariaId(organizacaoId, finalizado);
        ConviteInstrutorDTO[] array = new ConviteInstrutorDTO[itens.size()];
        convertToArray(itens, array);
        return array;
    } catch (DAOException ex) {
        Logger.getLogger(AtividadesEnsinoServiceSimpleImpl.class.getName()).log(Level.SEVERE, null, ex);
        throw new CoreException(ex.getMessage());
    }
}
Also used : DAOException(com.tomasio.projects.trainning.exception.DAOException) ConfirmacaoConviteInstrutor(com.tomasio.projects.trainning.model.ConfirmacaoConviteInstrutor) ConviteInstrutor(com.tomasio.projects.trainning.model.ConviteInstrutor) CoreException(com.tomasio.projects.trainning.exeption.CoreException) ConfirmacaoConviteInstrutorDTO(com.tomasio.projects.trainning.dto.ConfirmacaoConviteInstrutorDTO) ConviteInstrutorDTO(com.tomasio.projects.trainning.dto.ConviteInstrutorDTO) ConviteInstrutorDAO(com.tomasio.projects.trainning.dao.ConviteInstrutorDAO) ConfirmacaoConviteInstrutorDAO(com.tomasio.projects.trainning.dao.ConfirmacaoConviteInstrutorDAO) Transactional(org.springframework.transaction.annotation.Transactional)

Example 7 with ConviteInstrutor

use of com.tomasio.projects.trainning.model.ConviteInstrutor in project trainning by fernandotomasio.

the class AtividadesEnsinoServiceSimpleImpl method findAllConvitesInstrutoresByPessoaId.

@Override
@Transactional(readOnly = true)
public ConviteInstrutorDTO[] findAllConvitesInstrutoresByPessoaId(Long pessoaId, boolean finalizado) {
    ConviteInstrutorDAO dao = factory.getConviteInstrutorDAO();
    try {
        List<ConviteInstrutor> itens = dao.findAllFinalizadosByPessoaId(pessoaId, finalizado);
        ConviteInstrutorDTO[] array = new ConviteInstrutorDTO[itens.size()];
        convertToArray(itens, array);
        return array;
    } catch (DAOException ex) {
        Logger.getLogger(AtividadesEnsinoServiceSimpleImpl.class.getName()).log(Level.SEVERE, null, ex);
        throw new CoreException(ex.getMessage());
    }
}
Also used : DAOException(com.tomasio.projects.trainning.exception.DAOException) ConfirmacaoConviteInstrutor(com.tomasio.projects.trainning.model.ConfirmacaoConviteInstrutor) ConviteInstrutor(com.tomasio.projects.trainning.model.ConviteInstrutor) CoreException(com.tomasio.projects.trainning.exeption.CoreException) ConfirmacaoConviteInstrutorDTO(com.tomasio.projects.trainning.dto.ConfirmacaoConviteInstrutorDTO) ConviteInstrutorDTO(com.tomasio.projects.trainning.dto.ConviteInstrutorDTO) ConviteInstrutorDAO(com.tomasio.projects.trainning.dao.ConviteInstrutorDAO) ConfirmacaoConviteInstrutorDAO(com.tomasio.projects.trainning.dao.ConfirmacaoConviteInstrutorDAO) Transactional(org.springframework.transaction.annotation.Transactional)

Aggregations

ConfirmacaoConviteInstrutorDAO (com.tomasio.projects.trainning.dao.ConfirmacaoConviteInstrutorDAO)7 ConviteInstrutorDAO (com.tomasio.projects.trainning.dao.ConviteInstrutorDAO)7 ConfirmacaoConviteInstrutor (com.tomasio.projects.trainning.model.ConfirmacaoConviteInstrutor)7 ConviteInstrutor (com.tomasio.projects.trainning.model.ConviteInstrutor)7 Transactional (org.springframework.transaction.annotation.Transactional)7 ConfirmacaoConviteInstrutorDTO (com.tomasio.projects.trainning.dto.ConfirmacaoConviteInstrutorDTO)5 ConviteInstrutorDTO (com.tomasio.projects.trainning.dto.ConviteInstrutorDTO)5 DAOException (com.tomasio.projects.trainning.exception.DAOException)4 CoreException (com.tomasio.projects.trainning.exeption.CoreException)4 ConviteInstrutorIndividualDTO (com.tomasio.projects.trainning.dto.ConviteInstrutorIndividualDTO)2 ConviteInstrutorPerfilDTO (com.tomasio.projects.trainning.dto.ConviteInstrutorPerfilDTO)2 ItemConviteInstrutorIndividualDTO (com.tomasio.projects.trainning.dto.ItemConviteInstrutorIndividualDTO)2 ItemConviteInstrutorPerfilDTO (com.tomasio.projects.trainning.dto.ItemConviteInstrutorPerfilDTO)2 ConviteInstrutorIndividual (com.tomasio.projects.trainning.model.ConviteInstrutorIndividual)2 ConviteInstrutorPerfil (com.tomasio.projects.trainning.model.ConviteInstrutorPerfil)2 ItemConviteInstrutorIndividual (com.tomasio.projects.trainning.model.ItemConviteInstrutorIndividual)2 ItemConviteInstrutorPerfil (com.tomasio.projects.trainning.model.ItemConviteInstrutorPerfil)2