@Entity
public class Module
extends com.whitestein.lsps.common.VersionedAbstractEntity
implements com.whitestein.lsps.model.ElementWithId
Modifier and Type | Field and Description |
---|---|
static String |
FIND_IMPORTING_MODULES
Query name.
|
static String |
FIND_LATEST_MODULE_WITH_NAME
Query name.
|
static String |
FIND_LATEST_MODULE_WITH_NAME_DISTINCT_VERSIONS
Query name.
|
static String |
FIND_LATEST_MODULES
Query name.
|
static String |
FIND_LATEST_MODULES_DISTINCT_VERSIONS
Query name.
|
static String |
FIND_MODULE_BY_HASH
Query name.
|
static String |
FIND_MODULES
Query name.
|
static String |
FIND_UNLOADED_MODULE_IDS
Query name.
|
static String |
SET_COMPATIBILITY_VESRION
Query name.
|
Modifier | Constructor and Description |
---|---|
protected |
Module()
Creates new instance.
|
|
Module(String name)
Creates new instance.
|
|
Module(String name,
String version,
String hash,
Date uploadDate)
Creates new instance.
|
|
Module(String name,
String version,
String description,
String hash,
Date uploadDate,
boolean executable,
boolean createProcessLog,
boolean system)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntry(ModuleEntry entry)
adds module entry
|
void |
addModuleImport(Module importedModule)
Adds a module import.
|
void |
addProcess(Process process)
Adds a process.
|
Map<String,Module> |
getAllImports()
Returns all module imports (direct and indirect) in a map indexed by module names.
|
Collection<ProcessRelationship> |
getAllRelationships() |
Collection<? extends com.whitestein.lsps.model.ElementWithId> |
getChildren() |
String |
getCompatibilityVersion()
Returns compatibility version.
|
CompatibilityVersion |
getCompatibilityVersionEnum()
Returns compatibility version enum.
|
String |
getDescription()
Returns the description.
|
String |
getElementClass() |
String |
getElementId() |
com.whitestein.lsps.model.ElementType |
getElementType() |
Set<ModuleEntry> |
getEntries()
gets module entries
|
ExpressionOrigin |
getExpressionOrigin(Expression expression) |
List<Expression> |
getExpressions() |
String |
getHash()
Returns the module hash.
|
Set<Module> |
getModuleImports()
Returns a set of module imports.
|
String |
getName() |
Process |
getProcess(String elementId)
Returns a process for the given element id.
|
ProcessElement |
getProcessElement(String elementId)
Returns a process element for the given element id.
|
Collection<Process> |
getProcesses()
Returns a collection of all processes.
|
ProcessRelationship |
getProcessRelationship(String elementId)
Returns a process relationship for the given element id.
|
Date |
getUnloadDate()
Returns the unload date.
|
Date |
getUploadDate()
Returns the upload time.
|
String |
getVersion()
Returns the module version.
|
boolean |
isCreateProcessLog() |
boolean |
isExecutable()
Returns true if this is an executable module.
|
boolean |
isSystem()
Returns true if this is a system module.
|
boolean |
isUnloaded()
Returns true if model is unloaded.
|
void |
removeModuleImport(Module module)
Removes a module import.
|
void |
setCompatibilityVersion(String compatibilityVersion)
Sets compatibility version.
|
void |
setCreateProcessLog(boolean createProcessLog) |
void |
setDescription(String description)
Sets the description.
|
void |
setExecutable(boolean executable)
Sets the executable flag.
|
void |
setHash(String hash)
Sets the module hash.
|
void |
setSystem(boolean system)
Sets the system flag.
|
void |
setUnloadDate(Date unloadDate)
Sets the unload date.
|
void |
setUploadDate(Date uploadDate)
Sets the upload date.
|
void |
setVersion(String version)
Sets the module version.
|
String |
toString() |
public static final String FIND_MODULE_BY_HASH
public static final String FIND_MODULES
public static final String FIND_IMPORTING_MODULES
public static final String FIND_LATEST_MODULES
public static final String FIND_LATEST_MODULE_WITH_NAME
public static final String FIND_LATEST_MODULES_DISTINCT_VERSIONS
public static final String FIND_LATEST_MODULE_WITH_NAME_DISTINCT_VERSIONS
public static final String FIND_UNLOADED_MODULE_IDS
public static final String SET_COMPATIBILITY_VESRION
protected Module()
public Module(String name)
name
- public Module(String name, String version, String hash, Date uploadDate)
name
- version
- hash
- uploadDate
- public Set<ModuleEntry> getEntries()
public void addEntry(ModuleEntry entry)
entry
- public String getName()
getName
in interface com.whitestein.lsps.model.ElementWithId
public String getElementId()
getElementId
in interface com.whitestein.lsps.model.ElementWithId
public com.whitestein.lsps.model.ElementType getElementType()
getElementType
in interface com.whitestein.lsps.model.ElementWithId
public String getElementClass()
getElementClass
in interface com.whitestein.lsps.model.ElementWithId
public String getVersion()
public void setVersion(String version)
version
- public String getHash()
public void setHash(String hash)
hash
- public String getCompatibilityVersion()
public CompatibilityVersion getCompatibilityVersionEnum()
public void setCompatibilityVersion(String compatibilityVersion)
compatibilityVersion
- public String getDescription()
public void setDescription(String description)
description
- public Date getUploadDate()
public void setUploadDate(Date uploadDate)
uploadDate
- public void setUnloadDate(Date unloadDate)
unloadDate
- public Date getUnloadDate()
public boolean isSystem()
public void setSystem(boolean system)
system
- public boolean isExecutable()
public void setExecutable(boolean executable)
executable
- public boolean isCreateProcessLog()
public void setCreateProcessLog(boolean createProcessLog)
createProcessLog
- the createProcessLog to setpublic void addModuleImport(Module importedModule)
importedModule
- public Set<Module> getModuleImports()
public void removeModuleImport(Module module)
module
- public Map<String,Module> getAllImports()
public void addProcess(Process process)
process
- public Collection<Process> getProcesses()
public Collection<? extends com.whitestein.lsps.model.ElementWithId> getChildren()
getChildren
in interface com.whitestein.lsps.model.ElementWithIdContainer
public ProcessElement getProcessElement(String elementId)
elementId
- public ProcessRelationship getProcessRelationship(String elementId)
elementId
- public Collection<ProcessRelationship> getAllRelationships()
public Process getProcess(String elementId)
elementId
- public boolean isUnloaded()
public List<Expression> getExpressions()
getExpressions
in interface com.whitestein.lsps.model.ElementWithId
public ExpressionOrigin getExpressionOrigin(Expression expression)
getExpressionOrigin
in interface com.whitestein.lsps.model.ElementWithId
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.