@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) |
void |
deleteModel(String version)
This method deletes an existing Model Entities 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.
|
void |
saveModel(BPMNModel model)
This method saves a BPMNModel as an Entity and adds the model into the
ModelManager
|
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
model - ModelExceptionpublic void deleteModel(String version)
model - public ItemCollection loadModelEntity(String version)
model - Copyright © 2006–2018 Imixs Software Solutions GmbH. All rights reserved.