1. build the ime/Trunk/webscript-lib project. This is the java class backing our alfresco webscript
2. put all the scripts in ime/Trunk/webscript and the ime/Trunk/webscript-lib/target/ThaliaWebscript.jar in a zip file
3. scp the zip to the alfresco server (cms-proto-th2 in dev, isda-thalia12 in test)
4. unzip the zip file on alfresco server
5. move thaliagroup-context.xml to alfresco's /tomcat/shared/classes/alfresco/extension directory on the server. This is the webscript Spring config file
6. move ThaliaWebscript.jar to alfresco's tomcat\webapps\alfresco\WEB-INF\lib on the server. This is the java class backing the webscripts.
7. move group* to alfresco's tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts on the server. Those are the actual webscripts.
8. rename tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/xml.status.ftl to xml.status.ftl.bak
9. move xml.status.ftl in the zip to tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts. This is the webscript error result template.
10. modify /tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties and add
log4j.logger.edu.mit.thalia.webscript=info
This will log our java class messages to alfresco.log
11. stop and restart alfresco
12. To verify the setup is complete, type in http://servername/alfresco/service/groups/\[domainname\] and it should list all the groups in the domain
To run the synchronization script:
1. put the script thaliasync.pl in the zip archive somewhere on the alfresco server and make it executable
2. install the perl log4perl module by doing:perl -MCPAN -e "install Log::Log4perl"
3. run the script once to make sure that it runs and check the log file /home/thaliasync.log
4. schedule it in the crontab
0 * * * * /home/thalia/scripts/thaliasync.pl
It will run every hour