@DeclareRoles(value={"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"}) @RolesAllowed(value={"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"}) public class ModelService extends Object implements ModelManager
ModelManager,
jee.ejb.ModelManager| Constructor and Description |
|---|
ModelService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addModel(Model model)
This Method adds a model into the internal model store.
|
void |
deleteModel(String version)
This method deletes an existing Model from the database and removes the model
form the internal ModelStore.
|
List<String> |
findVersionsByGroup(String group)
This method returns a sorted list of model versions containing the requested
workflow group.
|
Model |
getModel(String version)
Returns a Model by version.
|
Model |
getModelByWorkitem(ItemCollection workitem)
Returns a Model matching a given workitem.
|
List<String> |
getVersions()
returns a sorted String list of all stored model versions
|
ItemCollection |
loadModelEntity(String version)
This method loads an existing Model Entities from the database.
|
void |
removeModel(String modelversion)
This method removes a specific ModelVersion form the internal model store.
|
void |
saveModel(BPMNModel model)
This method saves a BPMNModel into the database and adds the model into the
internal model store.
|
public void addModel(Model model) throws ModelException
addModel in interface ModelManagerModelExceptionpublic void removeModel(String modelversion)
removeModel in interface ModelManagerAccessDeniedExceptionpublic Model getModel(String version) throws ModelException
getModel in interface ModelManagerModelExceptionpublic Model getModelByWorkitem(ItemCollection workitem) throws ModelException
getModelByWorkitem in interface ModelManagerModelExceptionpublic List<String> getVersions()
public List<String> findVersionsByGroup(String group)
group - public void saveModel(BPMNModel model) throws ModelException
If a model with the same model version exists in the database the old version will be deleted form the database first.
model - ModelExceptionpublic void deleteModel(String version)
A model entity is identified by the type='model' and its name (model version). After the model entity was deleted form the database, the method will also remove the model from the ModelManager
model - public ItemCollection loadModelEntity(String version)
model - Copyright © 2006–2019 Imixs Software Solutions GmbH. All rights reserved.