public interface ModelProvider extends ComponentService
Modifier and Type | Method and Description |
---|---|
CompatibilityVersion |
getCompatibilityVersion(long modelId)
Returns compatibility version for the module.
|
com.whitestein.lsps.model.ElementWithId |
getModelElement(long modelId,
com.whitestein.lsps.model.ElementType type,
String elementId)
Returns cached model element.
|
com.whitestein.lsps.model.ElementWithId |
getModelElement(long modelId,
String elementId,
com.whitestein.lsps.model.ElementType... types)
Returns model element with specified elementId and type from the specified model.
|
String |
getModelHash(long modelId)
Returns hash of the model.
|
long |
getModelId(String hash)
Returns id of the model under which the model is persisted.
|
com.whitestein.lsps.model.ProcessModel |
getProcessModel(long id)
Returns process model persisted under specified id.
|
com.whitestein.lsps.model.ProcessModel |
getProcessModel(String hash)
Returns process model with specified model runtime hash.
|
RecordType |
getRecordTypeForEntity(Object object,
long modelId)
Returns record type for entity.
|
boolean |
isActive(long modelId)
Returns true if model is loaded and unloadDate is null.
|
RecordType |
resolveRecordType(long moduleId,
String qualifiedName)
Resolves record by its qualified name in given model.
|
Type |
resolveType(long modelId,
String qualifiedName)
Resolves type by its qualified name in given model.
|
getComponent, getComponent, getComponent, getComponents
long getModelId(String hash)
LspsRuntimeException
if the model does not exist.hash
- String getModelHash(long modelId)
LspsRuntimeException
if the model does not exist.modelId
- boolean isActive(long modelId)
modelId
- com.whitestein.lsps.model.ProcessModel getProcessModel(long id)
id
- com.whitestein.lsps.model.ProcessModel getProcessModel(String hash)
hash
- com.whitestein.lsps.model.ElementWithId getModelElement(long modelId, String elementId, com.whitestein.lsps.model.ElementType... types)
modelId
- elementId
- types
- com.whitestein.lsps.model.ElementWithId getModelElement(long modelId, com.whitestein.lsps.model.ElementType type, String elementId)
modelId
- type
- elementId
- Type resolveType(long modelId, String qualifiedName) throws ValidationException
modelId
- qualifiedName
- ValidationException
RecordType resolveRecordType(long moduleId, String qualifiedName) throws ValidationException
moduleId
- qualifiedName
- ValidationException
- if model with given id does not existRecordType getRecordTypeForEntity(Object object, long modelId)
object
- modelId
- CompatibilityVersion getCompatibilityVersion(long modelId)
modelId
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.