public interface ModelManagementDao extends com.whitestein.lsps.common.BasicDao<Module,Long>
Modifier and Type | Method and Description |
---|---|
void |
addModule(Module module)
Adds a module.
|
void |
addProcess(Process process)
Adds a process.
|
void |
addProcessElement(ProcessElement processElement)
Adds a process element.
|
void |
addProcessRelationship(ProcessRelationship processRelationship)
Adds a process relationship.
|
List<Module> |
findImportingModules(long moduleId)
Returns all modules which import the given module.
|
Module |
findModuleByHash(String hash)
Returns module with the given hash.
|
Module |
findModuleById(long id)
Returns module for given id or null if module with given id does not exist.
|
Module |
getLatestModule(String name)
Returns the latest module with a given name.
|
List<Module> |
getLatestModules(boolean ignoreVersion)
Returns the latest modules.
|
List<Module> |
getLatestModulesWithName(boolean ignoreVersion,
String name)
Returns the latest modules with the name.
|
long |
getModuleCount(ModuleCriteria criteria)
Returns a count of module according to a given criteria.
|
ModuleEntry |
getModuleEntry(Long entryId)
Returns module entry for given id.
|
QueryResult<Module> |
getModules(ModuleCriteria moduleCriteria)
Returns all models according to given criteria
|
ModuleEntry |
getResourceContent(long moduleId,
String filename)
Returns module entry content given
moduleId and filename . |
Long |
getResourceContentId(long moduleId,
String filename)
Returns resource content id for the given module id and filename.
|
List<Long> |
getUnloadedModuleIds()
Returns ids of unloaded modules.
|
void |
remove(ProcessRelationship rel) |
void |
setCompatibilityVersion(Collection<Long> moduleIds,
String version)
Updates compatibility version.
|
QueryResult<Module> getModules(ModuleCriteria moduleCriteria)
moduleCriteria
- Module
long getModuleCount(ModuleCriteria criteria)
criteria
- Module findModuleById(long id)
id
- module idvoid addModule(Module module)
module
- void addProcess(Process process)
process
- void addProcessElement(ProcessElement processElement)
processElement
- void addProcessRelationship(ProcessRelationship processRelationship)
processRelationship
- Module findModuleByHash(String hash)
hash
- Module
or null if not foundList<Module> findImportingModules(long moduleId)
moduleId
- List<Module> getLatestModules(boolean ignoreVersion)
ignoreVersion
- List<Module> getLatestModulesWithName(boolean ignoreVersion, String name)
ignoreVersion
- name
- Long getResourceContentId(long moduleId, String filename)
moduleId
- filename
- ModuleEntry getResourceContent(long moduleId, String filename)
moduleId
and filename
.moduleId
- filename
- moduleId
and filename
ModuleEntry getModuleEntry(Long entryId)
entryId
- List<Long> getUnloadedModuleIds()
void setCompatibilityVersion(Collection<Long> moduleIds, String version)
moduleIds
- version
- Module getLatestModule(String name)
name
- null
void remove(ProcessRelationship rel)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.