use of com.emc.nas.vnxfile.xmlapi.UserAccount in project coprhd-controller by CoprHD.
the class VNXUserAccountsProcessor method processUserAccountList.
private void processUserAccountList(List<Object> userList, Map<String, Object> keyMap) throws VNXFilePluginException {
Iterator<Object> iterator = userList.iterator();
Map<String, String> userInfo = new HashMap<String, String>();
if (iterator.hasNext()) {
Status status = (Status) iterator.next();
if (status.getMaxSeverity() == Severity.OK) {
while (iterator.hasNext()) {
UserAccount user = (UserAccount) iterator.next();
userInfo.put(user.getUser(), user.getUid());
_logger.debug("user name: {} ", user.getUser());
}
keyMap.put(VNXFileConstants.USER_INFO, userInfo);
} else {
throw new VNXFilePluginException("Fault response received from XMLAPI Server.", VNXFilePluginException.ERRORCODE_INVALID_RESPONSE);
}
}
}
Aggregations