ch.tatool.app.data
Class ModuleImpl

java.lang.Object
  extended by ch.tatool.app.data.DataContainerImpl
      extended by ch.tatool.app.data.ModuleImpl
All Implemented Interfaces:
DataContainer, Module

public class ModuleImpl
extends DataContainerImpl
implements Module

Represents a module.

Author:
Michael Ruflin

Nested Class Summary
 
Nested classes/interfaces inherited from interface ch.tatool.data.Module
Module.Info
 
Nested classes/interfaces inherited from interface ch.tatool.data.DataContainer
DataContainer.Entry
 
Field Summary
 
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.
 
Method Summary
 UserAccountImpl getAccount()
           
 Long getAccountId()
           
 Map<String,byte[]> getBinaryModuleProperties()
           
 byte[] getBinaryModuleProperty(String propertyName)
          Get a large value from the module.
 ExecutorInitializer getExecutorInitializer()
           
 Long getId()
           
 Messages getMessages()
           
 ModuleDAO getModuleDAO()
           
 DataExporter getModuleExporter(String exporterKey)
           
 Map<String,DataExporter> getModuleExporters()
           
 Map<String,String> getModuleProperties()
           
 ModuleScheduler getModuleScheduler()
           
 String getName()
           
 ModuleSessionDAO getSessionDAO()
           
 List<ModuleSession> getSessions()
           
 org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()
           
 TrialDAO getTrialDAO()
           
 UserAccount getUserAccount()
           
 void putBinaryModuleProperty(String id, byte[] value)
          Set a large property value.
 void setAccount(UserAccountImpl account)
           
 void setAccountId(Long accountId)
           
 void setBinaryModuleProperties(Map<String,byte[]> largeModuleProperties)
           
 void setExecutorInitializer(ExecutorInitializer executorConfiguration)
           
 void setId(Long id)
           
 void setMessages(Messages messages)
           
 void setModuleExporters(Map<String,DataExporter> moduleExporters)
           
 void setModuleProperties(Map<String,String> moduleProperties)
           
 void setModuleScheduler(ModuleScheduler executionScheduler)
           
 void setName(String name)
           
 void setSessions(List<ModuleSession> sessions)
           
 String toString()
           
 
Methods inherited from class ch.tatool.app.data.DataContainerImpl
containsValue, getEntries, getEntriesImpl, getValue, putValue, setEntriesImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ch.tatool.data.DataContainer
containsValue, getEntries, getValue, putValue
 

Constructor Detail

ModuleImpl

public ModuleImpl()
Create a new module instance.

Method Detail

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.