public abstract class AbstractModuleScheduler extends Object implements ModuleScheduler
Modifier and Type | Class and Description |
---|---|
class |
AbstractModuleScheduler.ModuleSchedulerMessageImpl |
Modifier and Type | Field and Description |
---|---|
Messages |
messages
The i18n messages object used to get the correct text values.
|
Constructor and Description |
---|
AbstractModuleScheduler() |
Modifier and Type | Method and Description |
---|---|
DataService |
getDataService()
Gets the ModuleDataService this scheduler is using.
|
int |
getMaxSessions()
Get the maximum of sessions allowed for a module controlled by this scheduler
|
Module |
getModule()
Gets the module this scheduler is used for.
|
String |
getSchedulerLastSessionDate(Module module)
Get the date off the last session
|
String |
getSchedulerNumSessions(Module module)
Get the numer of sessions done so far
|
void |
setDataService(DataService dataService)
Set the dataService it might need.
|
void |
setMaxSessions(Integer maxSessions)
Sets the maximum of sessions allowed for a module controlled by this scheduler
|
void |
setMessages(Messages messages)
Set the messages object used for i18n of text values
|
void |
setModule(Module module)
Set the module this scheduler should manage.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, initialize, isSessionStartAllowed
public Messages messages
public void setModule(Module module)
setModule
in interface ModuleScheduler
public void setDataService(DataService dataService)
setDataService
in interface ModuleScheduler
public void setMessages(Messages messages)
setMessages
in interface ModuleScheduler
public void setMaxSessions(Integer maxSessions)
setMaxSessions
in interface ModuleScheduler
public int getMaxSessions()
public Module getModule()
public DataService getDataService()
public String getSchedulerNumSessions(Module module)
ModuleScheduler
getSchedulerNumSessions
in interface ModuleScheduler
public String getSchedulerLastSessionDate(Module module)
ModuleScheduler
getSchedulerLastSessionDate
in interface ModuleScheduler
Copyright © 2013. All Rights Reserved.