public final class Module extends Object
Constructor and Description |
---|
Module(String name)
Simple constructor
|
Module(String name,
String moduleId,
String packageName,
String author,
String description,
String version)
Main constructor
|
public Module(String name)
name
- @Deprecated public Activator getActivator()
getModuleActivator()
public void setActivator(Activator activator)
activator
- the activator to setpublic ModuleActivator getModuleActivator()
public void setModuleActivator(ModuleActivator moduleActivator)
moduleActivator
- the moduleActivator to setpublic String getActivatorName()
public void setActivatorName(String activatorName)
activatorName
- the activatorName to setpublic String getAuthor()
public void setAuthor(String author)
author
- the author to setpublic String getDescription()
public void setDescription(String description)
description
- the description to setpublic String getName()
public void setName(String name)
name
- the name to setpublic String getRequireDatabaseVersion()
public void setRequireDatabaseVersion(String requireDatabaseVersion)
requireDatabaseVersion
- the requireDatabaseVersion to setpublic List<String> getRequiredModules()
public String getRequiredModuleVersion(String moduleName)
public void setRequiredModules(List<String> requiredModules)
requiredModules
- the requiredModules to set for this modulepublic void setRequiredModulesMap(Map<String,String> requiredModulesMap)
requiredModulesMap
- Map
of the requiredModule
s
to setpublic Map<String,String> setRequiredModulesMap()
public String getRequireOpenmrsVersion()
public void setRequireOpenmrsVersion(String requireOpenmrsVersion)
requireOpenmrsVersion
- the requireOpenmrsVersion to setpublic String getModuleId()
public String getModuleIdAsPath()
public void setModuleId(String moduleId)
moduleId
- the module id to setpublic String getPackageName()
public void setPackageName(String packageName)
packageName
- the packageName to setpublic String getVersion()
public void setVersion(String version)
version
- the version to setpublic String getUpdateURL()
public void setUpdateURL(String updateURL)
updateURL
- the updateURL to setpublic String getDownloadURL()
public void setDownloadURL(String downloadURL)
downloadURL
- the downloadURL to setpublic String getUpdateVersion()
public void setUpdateVersion(String updateVersion)
updateVersion
- the updateVersion to setpublic void setExtensions(List<Extension> extensions)
extensions
- the extensions to setpublic void setExtensionNames(IdentityHashMap<String,String> map)
Extension
object. getExtensions()
is calledmap
- from pointid to classnameModuleFileParser
public List<AdvicePoint> getAdvicePoints()
public void setAdvicePoints(List<AdvicePoint> advicePoints)
advicePoints
- the advicePoints to setpublic File getFile()
public void setFile(File file)
public Map<String,Properties> getMessages()
public void setMessages(Map<String,Properties> messages)
messages
- map of locale to properties for that localepublic List<GlobalProperty> getGlobalProperties()
public void setGlobalProperties(List<GlobalProperty> globalProperties)
public Document getConfig()
public void setConfig(Document config)
public Document getLog4j()
public void setLog4j(Document log4j)
public Document getSqldiff()
public void setSqldiff(Document sqldiff)
public boolean isMandatory()
public void setMandatory(boolean mandatory)
public boolean isCoreModule()
ModuleConstants#CORE_MODULES}
public boolean isStarted()
public void setStartupErrorMessage(String e)
public void setStartupErrorMessage(String exceptionMessage, Throwable t)
exceptionMessage
- optional. the default message to show on the first line of the error
messaget
- throwable stacktrace to include in the error messagepublic String getStartupErrorMessage()
public Boolean hasStartupError()
public void clearStartupError()
public void disposeAdvicePointsClassInstance()
public List<ModuleConditionalResource> getConditionalResources()
public void setConditionalResources(List<ModuleConditionalResource> conditionalResources)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.