Package org.mifosplatform.portfolio.group.exception

Examples of org.mifosplatform.portfolio.group.exception.GroupRoleNotFoundException


        this.repository = rRepository;
    }

    public GroupRole findOneWithNotFoundDetection(final Long id) {
        final GroupRole entity = this.repository.findOne(id);
        if (entity == null) { throw new GroupRoleNotFoundException(id); }
        return entity;
    }
View Full Code Here


            this.context.authenticatedUser();
            final GroupRolesDataMapper mapper = new GroupRolesDataMapper();
            final String sql = "Select " + mapper.schema() + " where role.group_id=? and role.id=?";
            return this.jdbcTemplate.queryForObject(sql, mapper, new Object[] { groupId, roleId });
        } catch (final EmptyResultDataAccessException e) {
            throw new GroupRoleNotFoundException(roleId);
        }
    }
View Full Code Here

TOP

Related Classes of org.mifosplatform.portfolio.group.exception.GroupRoleNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.