Skip to content

Commit

Permalink
Additional minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiyamSanthosh committed Jan 11, 2024
1 parent bcc34cb commit 7f1c6ae
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
import static org.wso2.carbon.identity.role.v2.mgt.core.dao.SQLQueries.GET_ROLE_LIST_OF_GROUP_SQL;
import static org.wso2.carbon.identity.role.v2.mgt.core.dao.SQLQueries.GET_ROLE_LIST_OF_IDP_GROUPS_SQL;
import static org.wso2.carbon.identity.role.v2.mgt.core.dao.SQLQueries.GET_ROLE_LIST_OF_USER_SQL;
import static org.wso2.carbon.identity.role.v2.mgt.core.dao.SQLQueries.GET_ROLE_NAME_BY_ID_SQL;
import static org.wso2.carbon.identity.role.v2.mgt.core.dao.SQLQueries.GET_ROLE_SCOPE_NAMES_SQL;
import static org.wso2.carbon.identity.role.v2.mgt.core.dao.SQLQueries.GET_ROLE_SCOPE_SQL;
import static org.wso2.carbon.identity.role.v2.mgt.core.dao.SQLQueries.GET_ROLE_UM_ID_BY_UUID;
Expand Down Expand Up @@ -2502,7 +2503,7 @@ public String getRoleNameByID(String roleId, String tenantDomain) throws Identit
String roleName = null;
try (Connection connection = IdentityDatabaseUtil.getUserDBConnection(false);
NamedPreparedStatement statement = new NamedPreparedStatement(
connection, IS_ROLE_ID_EXIST_FROM_UM_HYBRID_ROLE_SQL)) {
connection, GET_ROLE_NAME_BY_ID_SQL)) {

statement.setInt(RoleConstants.RoleTableColumns.UM_TENANT_ID, tenantId);
statement.setString(RoleConstants.RoleTableColumns.UM_UUID, roleId);
Expand Down Expand Up @@ -2786,7 +2787,8 @@ public boolean isExistingRoleID(String roleId, String tenantDomain) throws Ident
boolean isExist = false;
int tenantId = IdentityTenantUtil.getTenantId(tenantDomain);
try (Connection connection = IdentityDatabaseUtil.getUserDBConnection(false);
NamedPreparedStatement statement = new NamedPreparedStatement(connection, IS_ROLE_ID_EXIST_SQL)) {
NamedPreparedStatement statement = new NamedPreparedStatement(
connection, IS_ROLE_ID_EXIST_FROM_UM_HYBRID_ROLE_SQL)) {

statement.setInt(RoleConstants.RoleTableColumns.UM_TENANT_ID, tenantId);
statement.setString(RoleConstants.RoleTableColumns.UM_UUID, roleId);
Expand Down

0 comments on commit 7f1c6ae

Please sign in to comment.