diff --git a/EmailConnectorMigrationApp.launch b/EmailConnectorMigrationApp.launch index 0ff7fd8..c6175c0 100644 --- a/EmailConnectorMigrationApp.launch +++ b/EmailConnectorMigrationApp.launch @@ -9,10 +9,10 @@ - - + + - + @@ -21,12 +21,12 @@ - + - + diff --git a/EmailConnectorMigrationApp.mpr b/EmailConnectorMigrationApp.mpr index 436cb2b..d044962 100644 Binary files a/EmailConnectorMigrationApp.mpr and b/EmailConnectorMigrationApp.mpr differ diff --git a/EmailConnectorMigrationApp.mpr.bak b/EmailConnectorMigrationApp.mpr.bak index 45d0114..436cb2b 100644 Binary files a/EmailConnectorMigrationApp.mpr.bak and b/EmailConnectorMigrationApp.mpr.bak differ diff --git a/javasource/migrationutility/proxies/ECDataStats_After.java b/javasource/migrationutility/proxies/ECDataStats_After.java new file mode 100644 index 0000000..bf1ca39 --- /dev/null +++ b/javasource/migrationutility/proxies/ECDataStats_After.java @@ -0,0 +1,310 @@ +// This file was generated by Mendix Studio Pro. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package migrationutility.proxies; + +public class ECDataStats_After +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject eCDataStats_AfterMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "MigrationUtility.ECDataStats_After"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + NrOfAccounts("NrOfAccounts"), + NrOfEmails("NrOfEmails"), + NrOfTemplates("NrOfTemplates"), + NrOfErrorLogs("NrOfErrorLogs"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @java.lang.Override + public java.lang.String toString() + { + return metaName; + } + } + + public ECDataStats_After(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "MigrationUtility.ECDataStats_After")); + } + + protected ECDataStats_After(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject eCDataStats_AfterMendixObject) + { + if (eCDataStats_AfterMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("MigrationUtility.ECDataStats_After", eCDataStats_AfterMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a MigrationUtility.ECDataStats_After"); + + this.eCDataStats_AfterMendixObject = eCDataStats_AfterMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'ECDataStats_After.load(IContext, IMendixIdentifier)' instead. + */ + @java.lang.Deprecated + public static migrationutility.proxies.ECDataStats_After initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return migrationutility.proxies.ECDataStats_After.load(context, mendixIdentifier); + } + + /** + * Initialize a proxy using context (recommended). This context will be used for security checking when the get- and set-methods without context parameters are called. + * The get- and set-methods with context parameter should be used when for instance sudo access is necessary (IContext.createSudoClone() can be used to obtain sudo access). + */ + public static migrationutility.proxies.ECDataStats_After initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new migrationutility.proxies.ECDataStats_After(context, mendixObject); + } + + public static migrationutility.proxies.ECDataStats_After load(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + com.mendix.systemwideinterfaces.core.IMendixObject mendixObject = com.mendix.core.Core.retrieveId(context, mendixIdentifier); + return migrationutility.proxies.ECDataStats_After.initialize(context, mendixObject); + } + + /** + * Commit the changes made on this proxy object. + */ + public final void commit() throws com.mendix.core.CoreException + { + com.mendix.core.Core.commit(context, getMendixObject()); + } + + /** + * Commit the changes made on this proxy object using the specified context. + */ + public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException + { + com.mendix.core.Core.commit(context, getMendixObject()); + } + + /** + * Delete the object. + */ + public final void delete() + { + com.mendix.core.Core.delete(context, getMendixObject()); + } + + /** + * Delete the object using the specified context. + */ + public final void delete(com.mendix.systemwideinterfaces.core.IContext context) + { + com.mendix.core.Core.delete(context, getMendixObject()); + } + /** + * @return value of NrOfAccounts + */ + public final java.lang.Long getNrOfAccounts() + { + return getNrOfAccounts(getContext()); + } + + /** + * @param context + * @return value of NrOfAccounts + */ + public final java.lang.Long getNrOfAccounts(com.mendix.systemwideinterfaces.core.IContext context) + { + return (java.lang.Long) getMendixObject().getValue(context, MemberNames.NrOfAccounts.toString()); + } + + /** + * Set value of NrOfAccounts + * @param nrofaccounts + */ + public final void setNrOfAccounts(java.lang.Long nrofaccounts) + { + setNrOfAccounts(getContext(), nrofaccounts); + } + + /** + * Set value of NrOfAccounts + * @param context + * @param nrofaccounts + */ + public final void setNrOfAccounts(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Long nrofaccounts) + { + getMendixObject().setValue(context, MemberNames.NrOfAccounts.toString(), nrofaccounts); + } + + /** + * @return value of NrOfEmails + */ + public final java.lang.Long getNrOfEmails() + { + return getNrOfEmails(getContext()); + } + + /** + * @param context + * @return value of NrOfEmails + */ + public final java.lang.Long getNrOfEmails(com.mendix.systemwideinterfaces.core.IContext context) + { + return (java.lang.Long) getMendixObject().getValue(context, MemberNames.NrOfEmails.toString()); + } + + /** + * Set value of NrOfEmails + * @param nrofemails + */ + public final void setNrOfEmails(java.lang.Long nrofemails) + { + setNrOfEmails(getContext(), nrofemails); + } + + /** + * Set value of NrOfEmails + * @param context + * @param nrofemails + */ + public final void setNrOfEmails(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Long nrofemails) + { + getMendixObject().setValue(context, MemberNames.NrOfEmails.toString(), nrofemails); + } + + /** + * @return value of NrOfTemplates + */ + public final java.lang.Long getNrOfTemplates() + { + return getNrOfTemplates(getContext()); + } + + /** + * @param context + * @return value of NrOfTemplates + */ + public final java.lang.Long getNrOfTemplates(com.mendix.systemwideinterfaces.core.IContext context) + { + return (java.lang.Long) getMendixObject().getValue(context, MemberNames.NrOfTemplates.toString()); + } + + /** + * Set value of NrOfTemplates + * @param nroftemplates + */ + public final void setNrOfTemplates(java.lang.Long nroftemplates) + { + setNrOfTemplates(getContext(), nroftemplates); + } + + /** + * Set value of NrOfTemplates + * @param context + * @param nroftemplates + */ + public final void setNrOfTemplates(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Long nroftemplates) + { + getMendixObject().setValue(context, MemberNames.NrOfTemplates.toString(), nroftemplates); + } + + /** + * @return value of NrOfErrorLogs + */ + public final java.lang.Long getNrOfErrorLogs() + { + return getNrOfErrorLogs(getContext()); + } + + /** + * @param context + * @return value of NrOfErrorLogs + */ + public final java.lang.Long getNrOfErrorLogs(com.mendix.systemwideinterfaces.core.IContext context) + { + return (java.lang.Long) getMendixObject().getValue(context, MemberNames.NrOfErrorLogs.toString()); + } + + /** + * Set value of NrOfErrorLogs + * @param nroferrorlogs + */ + public final void setNrOfErrorLogs(java.lang.Long nroferrorlogs) + { + setNrOfErrorLogs(getContext(), nroferrorlogs); + } + + /** + * Set value of NrOfErrorLogs + * @param context + * @param nroferrorlogs + */ + public final void setNrOfErrorLogs(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Long nroferrorlogs) + { + getMendixObject().setValue(context, MemberNames.NrOfErrorLogs.toString(), nroferrorlogs); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return eCDataStats_AfterMendixObject; + } + + /** + * @return the IContext instance of this proxy, or null if no IContext instance was specified at initialization. + */ + public final com.mendix.systemwideinterfaces.core.IContext getContext() + { + return context; + } + + @java.lang.Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final migrationutility.proxies.ECDataStats_After that = (migrationutility.proxies.ECDataStats_After) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @java.lang.Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "MigrationUtility.ECDataStats_After"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @java.lang.Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/javasource/migrationutility/proxies/microflows/Microflows.java b/javasource/migrationutility/proxies/microflows/Microflows.java index 6ddecff..915687f 100644 --- a/javasource/migrationutility/proxies/microflows/Microflows.java +++ b/javasource/migrationutility/proxies/microflows/Microflows.java @@ -15,7 +15,13 @@ public class Microflows { // These are the microflows for the MigrationUtility module - public static email_connector.proxies.EmailAccount aCT_CreateEmailAccountFromEmailSettings(IContext context, java.lang.String _userName, java.lang.String _password, java.lang.String _server, java.lang.Long _port, java.lang.String _fromAddress, java.lang.String _fromDisplayName, boolean _useSSL, boolean _useTLS, java.lang.Long _maxAttempts, boolean _useSSLCheckServerIdentity, boolean _isOAuthUsed) + public static void aCT_DeleteBeforeStats(IContext context, migrationutility.proxies.DataStats_Before _dataStats_Before) + { + Map params = new HashMap<>(); + params.put("DataStats_Before", _dataStats_Before == null ? null : _dataStats_Before.getMendixObject()); + Core.microflowCall("MigrationUtility.ACT_DeleteBeforeStats").withParams(params).execute(context); + } + public static email_connector.proxies.EmailAccount aCT_IMM_CreateEmailAccountFromEmailSettings(IContext context, java.lang.String _userName, java.lang.String _password, java.lang.String _server, java.lang.Long _port, java.lang.String _fromAddress, java.lang.String _fromDisplayName, boolean _useSSL, boolean _useTLS, java.lang.Long _maxAttempts, boolean _useSSLCheckServerIdentity, boolean _isOAuthUsed) { Map params = new HashMap<>(); params.put("UserName", _userName); @@ -29,32 +35,33 @@ public static email_connector.proxies.EmailAccount aCT_CreateEmailAccountFromEma params.put("MaxAttempts", _maxAttempts); params.put("UseSSLCheckServerIdentity", _useSSLCheckServerIdentity); params.put("isOAuthUsed", _isOAuthUsed); - IMendixObject result = (IMendixObject)Core.microflowCall("MigrationUtility.ACT_CreateEmailAccountFromEmailSettings").withParams(params).execute(context); + IMendixObject result = (IMendixObject)Core.microflowCall("MigrationUtility.ACT_IMM_CreateEmailAccountFromEmailSettings").withParams(params).execute(context); return result == null ? null : email_connector.proxies.EmailAccount.initialize(context, result); } - public static email_connector.proxies.OAuthProvider aCT_CreateOAuthProvider(IContext context, email_connector.proxies.EmailAccount _mappingParent, java.lang.String _clientID, java.lang.String _clientSecret) + public static email_connector.proxies.OAuthProvider aCT_IMM_CreateOAuthProvider(IContext context, email_connector.proxies.EmailAccount _mappingParent, java.lang.String _clientID, java.lang.String _clientSecret) { Map params = new HashMap<>(); params.put("MappingParent", _mappingParent == null ? null : _mappingParent.getMendixObject()); params.put("ClientID", _clientID); params.put("ClientSecret", _clientSecret); - IMendixObject result = (IMendixObject)Core.microflowCall("MigrationUtility.ACT_CreateOAuthProvider").withParams(params).execute(context); + IMendixObject result = (IMendixObject)Core.microflowCall("MigrationUtility.ACT_IMM_CreateOAuthProvider").withParams(params).execute(context); return result == null ? null : email_connector.proxies.OAuthProvider.initialize(context, result); } - public static void aCT_DeleteBeforeStats(IContext context, migrationutility.proxies.DataStats_Before _dataStats_Before) + public static void aCT_MigrateEmailAccounts(IContext context) { Map params = new HashMap<>(); - params.put("DataStats_Before", _dataStats_Before == null ? null : _dataStats_Before.getMendixObject()); - Core.microflowCall("MigrationUtility.ACT_DeleteBeforeStats").withParams(params).execute(context); + Core.microflowCall("MigrationUtility.ACT_MigrateEmailAccounts").withParams(params).execute(context); } - public static void aCT_MigrateEmailAccounts(IContext context) + public static java.lang.Long aCT_MigrateEmails(IContext context, email_connector.proxies.EmailTemplate _emailTemplate) { Map params = new HashMap<>(); - Core.microflowCall("MigrationUtility.ACT_MigrateEmailAccounts").withParams(params).execute(context); + params.put("EmailTemplate", _emailTemplate == null ? null : _emailTemplate.getMendixObject()); + return (java.lang.Long) Core.microflowCall("MigrationUtility.ACT_MigrateEmails").withParams(params).execute(context); } - public static boolean aCT_MigrateEmailTemplates(IContext context) + public static boolean aCT_MigrateEmailTemplates(IContext context, migrationutility.proxies.MigrationConfig _migrationConfig) { Map params = new HashMap<>(); + params.put("MigrationConfig", _migrationConfig == null ? null : _migrationConfig.getMendixObject()); return (java.lang.Boolean) Core.microflowCall("MigrationUtility.ACT_MigrateEmailTemplates").withParams(params).execute(context); } public static void aCT_MigrateErrorLog(IContext context)