generateDomainAccountIdForUsers generates domain account IDs for a list of users. The input 'param' is a string with format "user1,user2,user3". The function takes a string containing a list of users separated by commas and a connectionId. It returns a string containing the generated domain account
(param string, connectionId uint64)
| 323 | // The function takes a string containing a list of users separated by commas and a connectionId. |
| 324 | // It returns a string containing the generated domain account IDs for each user, separated by commas. |
| 325 | func generateDomainAccountIdForUsers(param string, connectionId uint64) string { |
| 326 | if param == "" { |
| 327 | return "" |
| 328 | } |
| 329 | param = replaceSemicolonWithComma(param) |
| 330 | users := strings.Split(param, ",") |
| 331 | var res []string |
| 332 | for _, user := range users { |
| 333 | res = append(res, getAccountIdGen().Generate(connectionId, user)) |
| 334 | } |
| 335 | return strings.Join(res, ",") |
| 336 | } |
| 337 | |
| 338 | // extractStatus extracts the status from the given blob and returns a map of status names to status values. |
| 339 | func extractStatus(blob []byte) (map[string]string, errors.Error) { |