Skip to content

Commit

Permalink
Improve code formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaura committed Jun 3, 2024
1 parent 77d9cb9 commit 862a2e6
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ private UsersGetResponse filterUsersBySingleAttribute(ExpressionNode node, Map<S
}

/**
* method to get user count by filtering parameter.
* Get user count by filtering parameter.
*
* @param node Expression node for single attribute filtering
* @param offset Starting index of the count
Expand Down Expand Up @@ -1733,7 +1733,7 @@ private Set<org.wso2.carbon.user.core.common.User> filterUsers(Node node, int of
}

/**
* Method to get User Count by Group filter
* Get user count by group filter.
*
* @param node Expression or Operation node.
* @param domainName Domain name.
Expand All @@ -1748,13 +1748,11 @@ private int getUserCountByGroup(Node node, String domainName)
// Set filter values.
String attributeName = ((ExpressionNode) node).getAttributeValue();
String filterOperation = ((ExpressionNode) node).getOperation();
String attributeValue = ((ExpressionNode) node).getValue();

/*
If there is a domain and if the domain separator is not found in the attribute value, append the domain
with the domain separator in front of the new attribute value.
*/
attributeValue = UserCoreUtil.addDomainToName(((ExpressionNode) node).getValue(), domainName);
String attributeValue = UserCoreUtil.addDomainToName(((ExpressionNode) node).getValue(), domainName);

try {
List<String> roleNames = getRoleNames(attributeName, filterOperation, attributeValue);
Expand Down

0 comments on commit 862a2e6

Please sign in to comment.