UserUtil - Utility library returning strings representing Rest queries that perform user related actions in the system.
UserUtil perl library essentially provides the request strings needed to interact with user functionality exposed over the system rest interfaces.
Each interaction has a setup and eval method. setup provides the request, whilst eval interprets the response to give further information about the result of performing the request.
Returns a textual representation of the request needed to add the user to the system.
Check result of adding user to the system.
Returns a textual representation of the request needed to change the password of the user in the system.
Verify whether the change password attempt for the user in the system was successful.
Returns a textual representation of the request needed to delete the user from the system.
Check result of deleting user from the system.
Returns a textual representation of the request needed to test whether a given username exists in the system.
Inspects the result returned from issuing the request generated in exists_setup returning true if the result indicates the username does exist in the system, else false.
Returns a textual representation of the request needed to return information about the current user.
Inspects the result returned from issuing the request generated in me_setup returning true if the result indicates information was returned successfully, else false.
Returns a textual representation of the request needed to return the list of sites the current user is a member of.
Inspects the result returned from issuing the request generated in sites_setup returning true if the result indicates information was returned successfully, else false.
Returns a textual representation of the request needed to update the user in the system.
Check result of updateing user to the system.
To install Apache::Sling, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::Sling
CPAN shell
perl -MCPAN -e shell install Apache::Sling
For more information on module installation, please visit the detailed CPAN module installation guide.