Search in sources :

Example 11 with RoleManagementEventPublisherProxy

use of org.wso2.carbon.identity.role.mgt.core.RoleManagementEventPublisherProxy in project carbon-identity-framework by wso2.

the class RoleManagementServiceImpl method getPermissionListOfRole.

@Override
public List<String> getPermissionListOfRole(String roleID, String tenantDomain) throws IdentityRoleManagementException {
    RoleManagementEventPublisherProxy roleManagementEventPublisherProxy = RoleManagementEventPublisherProxy.getInstance();
    roleManagementEventPublisherProxy.publishPreGetPermissionListOfRole(roleID, tenantDomain);
    List<String> permissionListOfRole = roleDAO.getPermissionListOfRole(roleID, tenantDomain);
    roleManagementEventPublisherProxy.publishPostGetPermissionListOfRole(roleID, tenantDomain);
    if (log.isDebugEnabled()) {
        log.debug(String.format("%s get list of permissions of role of id : %s successfully.", getUser(tenantDomain), roleID));
    }
    return permissionListOfRole;
}
Also used : RoleManagementEventPublisherProxy(org.wso2.carbon.identity.role.mgt.core.RoleManagementEventPublisherProxy)

Aggregations

RoleManagementEventPublisherProxy (org.wso2.carbon.identity.role.mgt.core.RoleManagementEventPublisherProxy)11 RoleBasicInfo (org.wso2.carbon.identity.role.mgt.core.RoleBasicInfo)6 GroupBasicInfo (org.wso2.carbon.identity.role.mgt.core.GroupBasicInfo)1 IdentityRoleManagementClientException (org.wso2.carbon.identity.role.mgt.core.IdentityRoleManagementClientException)1 Role (org.wso2.carbon.identity.role.mgt.core.Role)1 UserBasicInfo (org.wso2.carbon.identity.role.mgt.core.UserBasicInfo)1