Class Module
java.lang.Object
org.cristalise.kernel.process.module.ModuleImport
org.cristalise.kernel.entity.imports.ImportItem
org.cristalise.kernel.process.module.Module
- All Implemented Interfaces:
DescriptionObject
-
Field Summary
Fields inherited from class org.cristalise.kernel.entity.imports.ImportItem
aggregationList, compActDef, dependencyList, initialPath, outcomes, properties, version, wf, workflow, workflowVerFields inherited from class org.cristalise.kernel.process.module.ModuleImport
domainPath, isDOMPathExists, isNewItem, itemPath, name, ns, resourceChangeDetails, resourceChangeStatus -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddImports(Collection<?> contents) Adds the members of this Collection recursively to the imports of this Module.voidgetDesc()getInfo()getProperties(boolean isServer) Returns all PropertiesbooleanhasDependency(String dep) voidimportAll(ItemProxy serverEntity, AgentProxy systemAgent, boolean reset) Imports all resources defined in the Module in this order: Resources, Roles, Agents, Items and Module itselfvoidrunScript(String event, AgentProxy agent, boolean isServer) voidsetConfig(ArrayList<ModuleConfig> config) voidsetImports(Collection<?> contents) Overwrites the imports with the content of this CollectionvoidsetImports(ModuleImports theImports) Add dependency for all childrenvoidsetInfo(ModuleInfo info) voidsetModuleXML(String moduleXML) voidvoidsetNamespace(String ns) voidvoidsetScripts(ArrayList<ModuleEmbeddedScript> scripts) Methods inherited from class org.cristalise.kernel.entity.imports.ImportItem
create, createCollections, createCompositeActivity, createItemProperties, exists, getDomainPath, getItemID, getItemPath, getItemPath, getProperties, getProxy, getResourceType, getWfVersion, makeDescCollections, toStringMethods inherited from class org.cristalise.kernel.process.module.ModuleImport
getID, getNamespace, hashCode, setIDMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cristalise.kernel.utils.DescriptionObject
export, getName, getNamespace, getXml, getXml, makeDescCollection, setItemPath, setVersion, toOutcome
-
Constructor Details
-
Module
public Module()
-
-
Method Details
-
runScript
public void runScript(String event, AgentProxy agent, boolean isServer) throws ScriptingEngineException - Throws:
ScriptingEngineException
-
setModuleXML
-
setNamespace
- Specified by:
setNamespacein interfaceDescriptionObject- Overrides:
setNamespacein classImportItem
-
setName
- Specified by:
setNamein interfaceDescriptionObject- Overrides:
setNamein classImportItem
-
importAll
public void importAll(ItemProxy serverEntity, AgentProxy systemAgent, boolean reset) throws Exception Imports all resources defined in the Module in this order: Resources, Roles, Agents, Items and Module itself- Parameters:
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 resource- Throws:
Exception- All possible exceptions
-
getProperties
Returns all Properties- Parameters:
isServer- is it a server Property or not- Returns:
- the Properties
-
getScripts
-
setResURL
-
getDesc
-
getModuleVersion
-
getVersion
-
getResURL
-
getDependencies
-
hasDependency
-
getInfo
-
setInfo
-
getImports
-
setImports
Add dependency for all children- Parameters:
theImports- imported resources
-
setImports
Overwrites the imports with the content of this Collection- Parameters:
contents- the Collection to be used as a list of imports- Throws:
ObjectNotFoundException- the data was not foundInvalidDataException- the data was invalid
-
addImports
Adds the members of this Collection recursively to the imports of this Module. It checks if the Item referenced by the member has a Collections or not, and adds all of members of those Collection as well.- Parameters:
contents- the Collection to be added as a list of imports- Throws:
ObjectNotFoundException- the data was not foundInvalidDataException- the data was invalid
-
setConfig
-
setScripts
-
getConfig
-
export
-