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)
ModelPersistenceServiceStore new model.
storeModel in interface ModelPersistenceServicemodelId - 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)
ModelPersistenceServiceStores a new model revision.
storeRevision in interface ModelPersistenceServicemodelId - the model IDmodelRevision - of revision detailspublic void updateRevision(String modelId, ModelRevision modelRevision)
ModelPersistenceServiceUpdates an existing model revision.
updateRevision in interface ModelPersistenceServicemodelId - the model IDmodelRevision - of revision detailspublic List<String> getAllRevisionIds(String modelId)
ModelPersistenceServiceGet list of revision ids of a model.
getAllRevisionIds in interface ModelPersistenceServicemodelId - the model IDpublic ModelRevision getRevision(String modelId, String revisionId)
ModelPersistenceServiceRetrieves a specific model revision.
getRevision in interface ModelPersistenceServicemodelId - the model IDrevisionId - the revision IDnull if the revision doesn’t existpublic ModelRevision getLatestRevision(String modelGlobalIdValue)
ModelPersistenceServiceRetrieves the latest model revision.
getLatestRevision in interface ModelPersistenceServicemodelGlobalIdValue - the model IDnull if the model has no latest revision)Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.