Commit 4907e227 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

BS-10726

Update groovy def to 1.0.1
parent 4a63abc1
......@@ -23,7 +23,7 @@ public abstract class UpdateAlfrescoMigrationConnectorVersion extends UpdateConn
@Override
protected boolean isProvidedAlfrescoConnectorDef(final String defId) {
protected boolean shouldUpdateVersion(final String defId) {
return defId.equals("Alfresco34CreateFolderByPath") ||
defId.equals("Alfresco34DeleteFileByPath") ||
defId.equals("Alfresco34DeleteItemById") ||
......
......@@ -30,7 +30,7 @@ public abstract class UpdateConnectorVersionMigration extends CustomMigration {
public void migrateAfter(final Model model, final Metamodel metamodel) throws MigrationException {
for (final Instance connectorInstance : model.getAllInstances("process.Connector")) {
final String defId = connectorInstance.get("definitionId");
if (isProvidedAlfrescoConnectorDef(defId)) {
if (shouldUpdateVersion(defId)) {
updateVersion(connectorInstance);
}
}
......@@ -48,7 +48,7 @@ public abstract class UpdateConnectorVersionMigration extends CustomMigration {
}
}
protected abstract boolean isProvidedAlfrescoConnectorDef(final String defId);
protected abstract boolean shouldUpdateVersion(final String defId);
protected abstract String getNewDefinitionVersion();
......
......@@ -32,7 +32,7 @@ public class UpdateGroovyConnectorVersionTo101 extends UpdateConnectorVersionMig
}
@Override
protected boolean isProvidedAlfrescoConnectorDef(final String defId) {
protected boolean shouldUpdateVersion(final String defId) {
return defId.equals(GROOVY_DEF_ID);
}
}
......@@ -32,7 +32,7 @@ public class UpdateTalendConnectorVersionTo101 extends UpdateConnectorVersionMig
}
@Override
protected boolean isProvidedAlfrescoConnectorDef(final String defId) {
protected boolean shouldUpdateVersion(final String defId) {
return defId.equals(TALEND_JOB_DEFINITION_ID);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment