I am updating an Exist-db XMLDB-embedded application from exist 1.4 to 2.2 using Java 1.8. The User class has been deprecated in 4.4, so I am using UserAider instead, however the UserAider class does contain the setUID method. How do I go about assigning a UID to a user?
I am attempting to use the following code to create a user and assign a UID, but the final line is Invalid.
user = new UserAider(username);
user.setPassword(password);
String[] groups = {"user"};
user.setGroups(groups);
user.setUID(-1);
Any help would be greatly appreciated.
UID's are not user modifiable in eXist 2.x. They are auto-assigned and managed by the system