ch.tatool.core.module.creator
Class ModuleCreationWorker

java.lang.Object
  extended by ch.tatool.core.module.creator.ModuleCreationWorker
All Implemented Interfaces:
Worker

public class ModuleCreationWorker
extends Object
implements Worker


Constructor Summary
ModuleCreationWorker()
           
 
Method Summary
 void createModule(ModuleService moduleService, UserAccount userAccount, File configurationFile, File moduleDataFile, String defaultModuleName, boolean failIfNameExists)
          Create a module given a configuration file
 String getErrorText()
           
 String getErrorTitle()
           
 Messages getMessages()
           
 Module getModule()
           
 boolean hasFinished()
           
 void setErrorText(String errorText)
           
 void setErrorTitle(String errorTitle)
           
 void setMessages(Messages messages)
           
 void setModule(Module module)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleCreationWorker

public ModuleCreationWorker()
Method Detail

createModule

public void createModule(ModuleService moduleService,
                         UserAccount userAccount,
                         File configurationFile,
                         File moduleDataFile,
                         String defaultModuleName,
                         boolean failIfNameExists)
Create a module given a configuration file

Parameters:
moduleService -
configurationFile -
defaultModuleName - a name to use for the module if the name property has not been set. If null and not set, this will cause an error to be thrown

hasFinished

public boolean hasFinished()
Specified by:
hasFinished in interface Worker

getErrorTitle

public String getErrorTitle()
Specified by:
getErrorTitle in interface Worker

setErrorTitle

public void setErrorTitle(String errorTitle)

getErrorText

public String getErrorText()
Specified by:
getErrorText in interface Worker

setErrorText

public void setErrorText(String errorText)

getModule

public Module getModule()

setModule

public void setModule(Module module)

setMessages

public void setMessages(Messages messages)

getMessages

public Messages getMessages()


Copyright © 2012. All Rights Reserved.