public interface ModelPersistenceService
| Modifier and Type | Method and Description | 
|---|---|
List<String> | 
getAllRevisionIds(String modelId)
Get list of revision ids of a model. 
 | 
ModelRevision | 
getLatestRevision(String modelId)
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. 
 | 
void storeModel(String modelId, String type, String name, String description, String workspaceId)
Store new model.
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 workspacevoid storeRevision(String modelId, ModelRevision modelRevision)
Stores a new model revision.
modelId - the model IDmodelRevision - of revision detailsvoid updateRevision(String modelId, ModelRevision modelRevision)
Updates an existing model revision.
modelId - the model IDmodelRevision - of revision detailsIllegalArgumentException - if the model or revision doesn’t existList<String> getAllRevisionIds(String modelId)
Get list of revision ids of a model.
modelId - the model IDIllegalArgumentException - if the model doesn’t existModelRevision getRevision(String modelId, String revisionId)
Retrieves a specific model revision.
modelId - the model IDrevisionId - the revision IDnull if the revision doesn’t existIllegalArgumentException - if the model doesn’t existModelRevision getLatestRevision(String modelId)
Retrieves the latest model revision.
modelId - the model IDnull if the model has no latest revision)IllegalArgumentException - if the model doesn’t existCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.