org.sakaiproject.tool.assessment.services
Class AutoSubmitAssessmentsJob
java.lang.Object
org.sakaiproject.tool.assessment.services.AutoSubmitAssessmentsJob
- All Implemented Interfaces:
- org.quartz.Job, org.quartz.StatefulJob
public class AutoSubmitAssessmentsJob
- extends Object
- implements org.quartz.StatefulJob
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serverName
protected String serverName
AutoSubmitAssessmentsJob
public AutoSubmitAssessmentsJob()
init
public void init()
destroy
public void destroy()
execute
public void execute(org.quartz.JobExecutionContext jobInfo)
throws org.quartz.JobExecutionException
- Specified by:
execute in interface org.quartz.Job
- Throws:
org.quartz.JobExecutionException
loginToSakai
protected void loginToSakai(String whoAs)
Login to sakai and start a user session. This users is intended
to be one of the 'hard wired' users; admin, postmaster, or synchrobot.
( this list of users can be extended; add the user via UI, update
the sakai_users table so their EID matches ID, add them to the
admin realm, restart )
- Parameters:
whoAs - - who to log in as
logoutFromSakai
protected void logoutFromSakai()
safeEventLength
public static final String safeEventLength(String target)
- Sometimes when logging to the sakai_events table it's possible to be logging
with a string you don't know the size of. (An exception message is a good
example)
This method is supplied to keep the lengh of logged messages w/in the limits
of the sakai_event.ref column size.
The sakai_event.ref column size is currently 256
- Parameters:
target -
- Returns:
Copyright © 2005-2013 Sakai Project. All Rights Reserved.