ch.tatool.app.data
Class ModuleImpl
java.lang.Object
ch.tatool.app.data.DataContainerImpl
ch.tatool.app.data.ModuleImpl
- All Implemented Interfaces:
- DataContainer, Module
public class ModuleImpl
- extends DataContainerImpl
- implements Module
Represents a module.
- Author:
- Michael Ruflin
| Fields inherited from interface ch.tatool.data.Module |
PROPERTY_EXECUTION_DEFAULT_PAUSE_DURATION, PROPERTY_MODULE_AUTHOR, PROPERTY_MODULE_DESCRIPTION, PROPERTY_MODULE_EXECUTION_DISPLAY_CLASS, PROPERTY_MODULE_EXECUTION_INITIALIZER_CLASS, PROPERTY_MODULE_INFO_BASE, PROPERTY_MODULE_INFO_PAGE, PROPERTY_MODULE_INFO_PROVIDER_CLASS, PROPERTY_MODULE_NAME, PROPERTY_MODULE_SCHEDULER_CLASS, PROPERTY_MODULE_VERSION, PROPERTY_TATOOL_ONLINE_GROUP_NR, PROPERTY_TATOOL_ONLINE_MODULE_NR, PROPERTY_TATOOL_ONLINE_STUDY_ID, PROPERTY_TATOOL_ONLINE_SUBJECT_CODE |
|
Constructor Summary |
ModuleImpl()
Create a new module instance. |
ModuleImpl
public ModuleImpl()
- Create a new module instance.
getModuleDAO
public ModuleDAO getModuleDAO()
getSessionDAO
public ModuleSessionDAO getSessionDAO()
getTrialDAO
public TrialDAO getTrialDAO()
getTransactionTemplate
public org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()
toString
public String toString()
- Overrides:
toString in class Object
getBinaryModuleProperty
public byte[] getBinaryModuleProperty(String propertyName)
- Get a large value from the module.
This is implemented as BLOBs behind the scene, but the implementation
might hold all values in memory. Use therefore with consideration...
- Specified by:
getBinaryModuleProperty in interface Module
getBinaryModuleProperties
public Map<String,byte[]> getBinaryModuleProperties()
putBinaryModuleProperty
public void putBinaryModuleProperty(String id,
byte[] value)
- Set a large property value.
- Specified by:
putBinaryModuleProperty in interface Module
getId
public Long getId()
- Specified by:
getId in interface Module
setId
public void setId(Long id)
setBinaryModuleProperties
public void setBinaryModuleProperties(Map<String,byte[]> largeModuleProperties)
getModuleProperties
public Map<String,String> getModuleProperties()
- Specified by:
getModuleProperties in interface Module
setModuleProperties
public void setModuleProperties(Map<String,String> moduleProperties)
getSessions
public List<ModuleSession> getSessions()
setSessions
public void setSessions(List<ModuleSession> sessions)
getAccountId
public Long getAccountId()
setAccountId
public void setAccountId(Long accountId)
getUserAccount
public UserAccount getUserAccount()
- Specified by:
getUserAccount in interface Module
getAccount
public UserAccountImpl getAccount()
setAccount
public void setAccount(UserAccountImpl account)
getName
public String getName()
- Specified by:
getName in interface Module
setName
public void setName(String name)
getModuleScheduler
public ModuleScheduler getModuleScheduler()
- Specified by:
getModuleScheduler in interface Module
setModuleScheduler
public void setModuleScheduler(ModuleScheduler executionScheduler)
- Specified by:
setModuleScheduler in interface Module
getExecutorInitializer
public ExecutorInitializer getExecutorInitializer()
- Specified by:
getExecutorInitializer in interface Module
setExecutorInitializer
public void setExecutorInitializer(ExecutorInitializer executorConfiguration)
- Specified by:
setExecutorInitializer in interface Module
getModuleExporters
public Map<String,DataExporter> getModuleExporters()
- Specified by:
getModuleExporters in interface Module
getModuleExporter
public DataExporter getModuleExporter(String exporterKey)
- Specified by:
getModuleExporter in interface Module
setModuleExporters
public void setModuleExporters(Map<String,DataExporter> moduleExporters)
setMessages
public void setMessages(Messages messages)
- Specified by:
setMessages in interface Module
getMessages
public Messages getMessages()
- Specified by:
getMessages in interface Module
Copyright © 2012. All Rights Reserved.