public interface AppVersioningStrategy
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<String,String> |
getAppVersioningMetaData(com.edorasware.commons.core.entity.GlobalId appModelGlobalId)
Returns the metadata that should be stored as part of the export.
|
void |
incrementVersion(com.edorasware.commons.core.entity.GlobalId appModelGlobalId,
String comment)
Increments the version number for the given app.
|
boolean |
isNewerVersion(com.edorasware.commons.core.entity.GlobalId appModelGlobalId,
Map<String,String> incomingMetaData)
Checks that the incoming app is a newer version of the current app.
|
void |
markAsModified(com.edorasware.commons.core.entity.GlobalId appModelGlobalId)
Called whenever an app has been modified (e.g. when it transitions to the 'pending' state).
|
void incrementVersion(com.edorasware.commons.core.entity.GlobalId appModelGlobalId,
String comment)
throws AppVersioningException
appModelGlobalId - the global ID of the app model whose version is to be incrementedcomment - the modification commentAppVersioningException - if the global ID does not correspond to a valid app modelcom.google.common.collect.ImmutableMap<String,String> getAppVersioningMetaData(com.edorasware.commons.core.entity.GlobalId appModelGlobalId) throws AppVersioningException
appModelGlobalId - the global ID of the app model being exportedAppVersioningException - if the app does not contain versioning informationboolean isNewerVersion(com.edorasware.commons.core.entity.GlobalId appModelGlobalId,
Map<String,String> incomingMetaData)
throws AppVersioningException
appModelGlobalId - the global ID of the local app model to be checkedincomingMetaData - the incoming app versioning metadatatrue if the incoming app is a newer versionAppVersioningException - if the app versioning information is incompatiblevoid markAsModified(com.edorasware.commons.core.entity.GlobalId appModelGlobalId)
appModelGlobalId - the modified app model global IDCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.