public interface ModelPersistenceService
extends com.edorasware.commons.core.util.service.Service
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,
com.edorasware.commons.core.entity.Type 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, com.edorasware.commons.core.entity.Type type, String name, String description, String workspaceId)
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)
modelId
- the model IDmodelRevision
- of revision detailsvoid updateRevision(String modelId, ModelRevision modelRevision)
modelId
- the model IDmodelRevision
- of revision detailsIllegalArgumentException
- if the model or revision doesn't existList<String> getAllRevisionIds(String modelId)
modelId
- the model IDIllegalArgumentException
- if the model doesn't existModelRevision getRevision(String modelId, String revisionId)
modelId
- the model IDrevisionId
- the revision IDnull
if the revision doesn't existIllegalArgumentException
- if the model doesn't existModelRevision getLatestRevision(String modelId)
modelId
- the model IDnull
if the model has no latest revision)IllegalArgumentException
- if the model doesn't existCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.