public class Module extends ImportItem
aggregationList, compActDef, dependencyList, initialPath, outcomes, properties, wf, workflow, workflowVerdomainPath, isDOMPathExists, isNewItem, itemPath, name, ns| Constructor and Description |
|---|
Module() |
| Modifier and Type | Method and Description |
|---|---|
void |
addImports(Collection<?> contents)
Adds the members of this Collection recursively to the imports of this Module.
|
void |
export(File location) |
ArrayList<ModuleConfig> |
getConfig() |
ArrayList<String> |
getDependencies() |
String |
getDesc() |
ModuleImports |
getImports() |
ModuleInfo |
getInfo() |
Properties |
getProperties(boolean isServer)
Returns all Properties
|
String |
getResURL() |
ArrayList<ModuleEmbeddedScript> |
getScripts() |
String |
getVersion() |
boolean |
hasDependency(String dep) |
void |
importAll(ItemProxy serverEntity,
AgentProxy systemAgent,
boolean reset)
Imports all resources defined in the Module in this order: Resources, Roles, Agents, Items and Module itself
|
void |
runScript(String event,
AgentProxy agent,
boolean isServer) |
void |
setConfig(ArrayList<ModuleConfig> config) |
void |
setImports(Collection<?> contents)
Overwrites the imports with the content of this Collection
|
void |
setImports(ModuleImports theImports)
Add dependency for all children
|
void |
setInfo(ModuleInfo info) |
void |
setModuleXML(String moduleXML) |
void |
setName(String name) |
void |
setNamespace(String ns) |
void |
setResURL(String resURL) |
void |
setScripts(ArrayList<ModuleEmbeddedScript> scripts) |
create, createCollections, createCompositeActivity, createItemProperties, getItemPathgetID, getNamespace, hashCode, setIDpublic void runScript(String event, AgentProxy agent, boolean isServer) throws ScriptingEngineException
ScriptingEngineExceptionpublic void setModuleXML(String moduleXML)
public void setNamespace(String ns)
setNamespace in class ImportItempublic void setName(String name)
setName in class ImportItempublic void importAll(ItemProxy serverEntity, AgentProxy systemAgent, boolean reset) throws Exception
serverEntity - not used at the moment but required to implement the import as the workflow of the serverItemsystemAgent - system agent used during the importreset - whether to reset or not the version of the created/updated resourceException - All possible exceptionspublic Properties getProperties(boolean isServer)
isServer - is it a server Property or notpublic ArrayList<ModuleEmbeddedScript> getScripts()
public void setResURL(String resURL)
public String getDesc()
public String getVersion()
public String getResURL()
public boolean hasDependency(String dep)
public ModuleInfo getInfo()
public void setInfo(ModuleInfo info)
public ModuleImports getImports()
public void setImports(ModuleImports theImports)
theImports - imported resourcespublic void setImports(Collection<?> contents) throws ObjectNotFoundException, InvalidDataException
contents - the Collection to be used as a list of importsObjectNotFoundException - the data was not foundInvalidDataException - the data was invalidpublic void addImports(Collection<?> contents) throws ObjectNotFoundException, InvalidDataException
contents - the Collection to be added as a list of importsObjectNotFoundException - the data was not foundInvalidDataException - the data was invalidpublic void setConfig(ArrayList<ModuleConfig> config)
public void setScripts(ArrayList<ModuleEmbeddedScript> scripts)
public ArrayList<ModuleConfig> getConfig()
public void export(File location)
Copyright © 1997–2020 CRISTAL-iSE. All rights reserved.