public class OneModelPersistenceService extends Object implements ModelPersistenceService
Modifier and Type | Field and Description |
---|---|
static StringValue<ModelRevision> |
LATEST_MODEL_REVISION |
static StringValue<ModelRevision> |
LATEST_MODEL_REVISION_VAR
Deprecated.
|
static StringValue<String> |
REVISIONS |
static StringValue<String> |
REVISIONS_VAR
Deprecated.
|
Constructor and Description |
---|
OneModelPersistenceService() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAllRevisionIds(String modelId)
Get list of revision ids of a model.
|
ModelRevision |
getLatestRevision(String modelGlobalIdValue)
Retrieves the latest model revision.
|
ModelRevision |
getRevision(String modelId,
String revisionId)
Retrieves a specific model revision.
|
void |
storeModel(String modelId,
String type,
String name,
String description,
String workspaceId)
Store new model.
|
void |
storeRevision(String modelId,
ModelRevision modelRevision)
Stores a new model revision.
|
void |
updateRevision(String modelId,
ModelRevision modelRevision)
Updates an existing model revision.
|
@Deprecated public static final StringValue<ModelRevision> LATEST_MODEL_REVISION_VAR
@Deprecated public static final StringValue<String> REVISIONS_VAR
public static final StringValue<ModelRevision> LATEST_MODEL_REVISION
public static final StringValue<String> REVISIONS
public void storeModel(String modelId, String type, String name, String description, String workspaceId)
ModelPersistenceService
Store new model.
storeModel
in interface ModelPersistenceService
modelId
- the model IDtype
- the type of the model to storename
- the name of the model to storedescription
- the description of the model to storeworkspaceId
- the id of the model workspacepublic void storeRevision(String modelId, ModelRevision modelRevision)
ModelPersistenceService
Stores a new model revision.
storeRevision
in interface ModelPersistenceService
modelId
- the model IDmodelRevision
- of revision detailspublic void updateRevision(String modelId, ModelRevision modelRevision)
ModelPersistenceService
Updates an existing model revision.
updateRevision
in interface ModelPersistenceService
modelId
- the model IDmodelRevision
- of revision detailspublic List<String> getAllRevisionIds(String modelId)
ModelPersistenceService
Get list of revision ids of a model.
getAllRevisionIds
in interface ModelPersistenceService
modelId
- the model IDpublic ModelRevision getRevision(String modelId, String revisionId)
ModelPersistenceService
Retrieves a specific model revision.
getRevision
in interface ModelPersistenceService
modelId
- the model IDrevisionId
- the revision IDnull
if the revision doesn’t existpublic ModelRevision getLatestRevision(String modelGlobalIdValue)
ModelPersistenceService
Retrieves the latest model revision.
getLatestRevision
in interface ModelPersistenceService
modelGlobalIdValue
- the model IDnull
if the model has no latest revision)Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.