Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

SVN

https://mware.ucdavis.edu/svn/ucd-sakai/ucd-utilities

Utilities

OfficialMessageTool

setup

install ucd-utilites module

cd <sakai-source-root-dir>/
svn co https://mware.ucdavis.edu/svn/ucd-sakai/ucd-utilities

cd ucd-utilities && mvn clean install sakai:deploy

Install Sakai Groovy Shell (SGS)

Install SGS following procedure found here:
Contrib: Sakai Groovy Shell

Setting login user settings

The script will need to establish a session witht eh priv's necessary to complete the site updates (eg, admin) and looks for the username and password in the DynamicConfigurationServices under the admin.user and admin.pw keys.

One way to set this is to use jconsole. On the node where the code will be running, you can establish a reverse tunnel to your local box using something like this:

ssh -R 6780:localhost:6789 ccjon@psl-6.ucdavis.edu

Then on your local machine (eg, psl-6.ucdavis.edu) run

telnet locahost 6780

and you will be connected to port 6789 of the remote machine.

You can also just log into the remote machine and connect to port 6789 on localhost.

h3 Running the process

connect to the telnet port and run:

 import edu.ucdavis.smartsite.util.OfficialMessageTool;

 tool = new OfficialMessageTool();

 go

you should see a display of the string representation of the tool instance.

...if so, then

 sessionid = tool.login();
		
 result = tool.addMessageToolToUserSites(sessionid);

 go

  • No labels