Sets a list of group names for the item with URI uri.
Each previously set group name list is removed.
If uri cannot be found then an item for it is created.
| this | |
| uri |
an item's URI |
| groups |
an array of group names, or null to remove all groups |
| length |
number of group name values in |