Search in sources :

Example 6 with ConsumerRole

use of com.ctrip.framework.apollo.openapi.entity.ConsumerRole in project apollo by ctripcorp.

the class ConsumerServiceTest method createConsumerRole.

private ConsumerRole createConsumerRole(long consumerId, long roleId) {
    ConsumerRole consumerRole = new ConsumerRole();
    consumerRole.setConsumerId(consumerId);
    consumerRole.setRoleId(roleId);
    return consumerRole;
}
Also used : ConsumerRole(com.ctrip.framework.apollo.openapi.entity.ConsumerRole)

Example 7 with ConsumerRole

use of com.ctrip.framework.apollo.openapi.entity.ConsumerRole in project apollo by ctripcorp.

the class AppControllerTest method generateConsumerRoleByRoleId.

private static ConsumerRole generateConsumerRoleByRoleId(long roleId) {
    ConsumerRole consumerRole = new ConsumerRole();
    consumerRole.setRoleId(roleId);
    return consumerRole;
}
Also used : ConsumerRole(com.ctrip.framework.apollo.openapi.entity.ConsumerRole)

Aggregations

ConsumerRole (com.ctrip.framework.apollo.openapi.entity.ConsumerRole)7 Role (com.ctrip.framework.apollo.portal.entity.po.Role)3 BadRequestException (com.ctrip.framework.apollo.common.exception.BadRequestException)2 Transactional (org.springframework.transaction.annotation.Transactional)2 AbstractUnitTest (com.ctrip.framework.apollo.portal.AbstractUnitTest)1 UserInfo (com.ctrip.framework.apollo.portal.entity.bo.UserInfo)1 Permission (com.ctrip.framework.apollo.portal.entity.po.Permission)1 RolePermission (com.ctrip.framework.apollo.portal.entity.po.RolePermission)1 Test (org.junit.Test)1