diff --git a/.gitignore b/.gitignore index 6ea457c..4474a3a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -**/javasource/**/proxies/ test/deployment/ test/.classpath test/.project @@ -9,4 +8,4 @@ test/.svn *.lock .idea/ nbproject -node_modules +node_modules \ No newline at end of file diff --git a/test/PushNotifications.mpr b/test/PushNotifications.mpr index 98f833e..5b0a9ae 100755 Binary files a/test/PushNotifications.mpr and b/test/PushNotifications.mpr differ diff --git a/test/javasource/administration/proxies/Account.java b/test/javasource/administration/proxies/Account.java new file mode 100644 index 0000000..3aa83d9 --- /dev/null +++ b/test/javasource/administration/proxies/Account.java @@ -0,0 +1,285 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package administration.proxies; + +/** + * + */ +public class Account extends system.proxies.User +{ + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "Administration.Account"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + FullName("FullName"), + IsLocalUser("IsLocalUser"), + Email("Email"), + Name("Name"), + Password("Password"), + LastLogin("LastLogin"), + Blocked("Blocked"), + Active("Active"), + FailedLogins("FailedLogins"), + WebServiceUser("WebServiceUser"), + IsAnonymous("IsAnonymous"), + Device_Account("PushNotifications.Device_Account"), + UserRoles("System.UserRoles"), + User_Language("System.User_Language"), + User_TimeZone("System.User_TimeZone"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public Account(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "Administration.Account")); + } + + protected Account(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject accountMendixObject) + { + super(context, accountMendixObject); + if (!com.mendix.core.Core.isSubClassOf("Administration.Account", accountMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a Administration.Account"); + } + + /** + * @deprecated Use 'Account.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static administration.proxies.Account initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return administration.proxies.Account.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.getSudoContext() can be used to obtain sudo access). + */ + public static administration.proxies.Account initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new administration.proxies.Account(context, mendixObject); + } + + public static administration.proxies.Account 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 administration.proxies.Account.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//Administration.Account" + xpathConstraint)) + result.add(administration.proxies.Account.initialize(context, obj)); + return result; + } + + /** + * @return value of FullName + */ + public final String getFullName() + { + return getFullName(getContext()); + } + + /** + * @param context + * @return value of FullName + */ + public final String getFullName(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.FullName.toString()); + } + + /** + * Set value of FullName + * @param fullname + */ + public final void setFullName(String fullname) + { + setFullName(getContext(), fullname); + } + + /** + * Set value of FullName + * @param context + * @param fullname + */ + public final void setFullName(com.mendix.systemwideinterfaces.core.IContext context, String fullname) + { + getMendixObject().setValue(context, MemberNames.FullName.toString(), fullname); + } + + /** + * @return value of IsLocalUser + */ + public final Boolean getIsLocalUser() + { + return getIsLocalUser(getContext()); + } + + /** + * @param context + * @return value of IsLocalUser + */ + public final Boolean getIsLocalUser(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Boolean) getMendixObject().getValue(context, MemberNames.IsLocalUser.toString()); + } + + /** + * Set value of IsLocalUser + * @param islocaluser + */ + public final void setIsLocalUser(Boolean islocaluser) + { + setIsLocalUser(getContext(), islocaluser); + } + + /** + * Set value of IsLocalUser + * @param context + * @param islocaluser + */ + public final void setIsLocalUser(com.mendix.systemwideinterfaces.core.IContext context, Boolean islocaluser) + { + getMendixObject().setValue(context, MemberNames.IsLocalUser.toString(), islocaluser); + } + + /** + * @return value of Email + */ + public final String getEmail() + { + return getEmail(getContext()); + } + + /** + * @param context + * @return value of Email + */ + public final String getEmail(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Email.toString()); + } + + /** + * Set value of Email + * @param email + */ + public final void setEmail(String email) + { + setEmail(getContext(), email); + } + + /** + * Set value of Email + * @param context + * @param email + */ + public final void setEmail(com.mendix.systemwideinterfaces.core.IContext context, String email) + { + getMendixObject().setValue(context, MemberNames.Email.toString(), email); + } + + /** + * @return value of Device_Account + */ + public final pushnotifications.proxies.Device getDevice_Account() throws com.mendix.core.CoreException + { + return getDevice_Account(getContext()); + } + + /** + * @param context + * @return value of Device_Account + */ + public final pushnotifications.proxies.Device getDevice_Account(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException + { + pushnotifications.proxies.Device result = null; + com.mendix.systemwideinterfaces.core.IMendixIdentifier identifier = getMendixObject().getValue(context, MemberNames.Device_Account.toString()); + if (identifier != null) + result = pushnotifications.proxies.Device.load(context, identifier); + return result; + } + + /** + * Set value of Device_Account + * @param device_account + */ + public final void setDevice_Account(pushnotifications.proxies.Device device_account) + { + setDevice_Account(getContext(), device_account); + } + + /** + * Set value of Device_Account + * @param context + * @param device_account + */ + public final void setDevice_Account(com.mendix.systemwideinterfaces.core.IContext context, pushnotifications.proxies.Device device_account) + { + if (device_account == null) + getMendixObject().setValue(context, MemberNames.Device_Account.toString(), null); + else + getMendixObject().setValue(context, MemberNames.Device_Account.toString(), device_account.getMendixObject().getId()); + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final administration.proxies.Account that = (administration.proxies.Account) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "Administration.Account"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Override + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/administration/proxies/AccountPasswordData.java b/test/javasource/administration/proxies/AccountPasswordData.java new file mode 100644 index 0000000..dd7f4db --- /dev/null +++ b/test/javasource/administration/proxies/AccountPasswordData.java @@ -0,0 +1,320 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package administration.proxies; + +/** + * + */ +public class AccountPasswordData +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject accountPasswordDataMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "Administration.AccountPasswordData"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + OldPassword("OldPassword"), + NewPassword("NewPassword"), + ConfirmPassword("ConfirmPassword"), + AccountPasswordData_Account("Administration.AccountPasswordData_Account"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public AccountPasswordData(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "Administration.AccountPasswordData")); + } + + protected AccountPasswordData(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject accountPasswordDataMendixObject) + { + if (accountPasswordDataMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("Administration.AccountPasswordData", accountPasswordDataMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a Administration.AccountPasswordData"); + + this.accountPasswordDataMendixObject = accountPasswordDataMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'AccountPasswordData.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static administration.proxies.AccountPasswordData initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return administration.proxies.AccountPasswordData.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.getSudoContext() can be used to obtain sudo access). + */ + public static administration.proxies.AccountPasswordData initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new administration.proxies.AccountPasswordData(context, mendixObject); + } + + public static administration.proxies.AccountPasswordData 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 administration.proxies.AccountPasswordData.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 OldPassword + */ + public final String getOldPassword() + { + return getOldPassword(getContext()); + } + + /** + * @param context + * @return value of OldPassword + */ + public final String getOldPassword(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.OldPassword.toString()); + } + + /** + * Set value of OldPassword + * @param oldpassword + */ + public final void setOldPassword(String oldpassword) + { + setOldPassword(getContext(), oldpassword); + } + + /** + * Set value of OldPassword + * @param context + * @param oldpassword + */ + public final void setOldPassword(com.mendix.systemwideinterfaces.core.IContext context, String oldpassword) + { + getMendixObject().setValue(context, MemberNames.OldPassword.toString(), oldpassword); + } + + /** + * @return value of NewPassword + */ + public final String getNewPassword() + { + return getNewPassword(getContext()); + } + + /** + * @param context + * @return value of NewPassword + */ + public final String getNewPassword(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.NewPassword.toString()); + } + + /** + * Set value of NewPassword + * @param newpassword + */ + public final void setNewPassword(String newpassword) + { + setNewPassword(getContext(), newpassword); + } + + /** + * Set value of NewPassword + * @param context + * @param newpassword + */ + public final void setNewPassword(com.mendix.systemwideinterfaces.core.IContext context, String newpassword) + { + getMendixObject().setValue(context, MemberNames.NewPassword.toString(), newpassword); + } + + /** + * @return value of ConfirmPassword + */ + public final String getConfirmPassword() + { + return getConfirmPassword(getContext()); + } + + /** + * @param context + * @return value of ConfirmPassword + */ + public final String getConfirmPassword(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.ConfirmPassword.toString()); + } + + /** + * Set value of ConfirmPassword + * @param confirmpassword + */ + public final void setConfirmPassword(String confirmpassword) + { + setConfirmPassword(getContext(), confirmpassword); + } + + /** + * Set value of ConfirmPassword + * @param context + * @param confirmpassword + */ + public final void setConfirmPassword(com.mendix.systemwideinterfaces.core.IContext context, String confirmpassword) + { + getMendixObject().setValue(context, MemberNames.ConfirmPassword.toString(), confirmpassword); + } + + /** + * @return value of AccountPasswordData_Account + */ + public final administration.proxies.Account getAccountPasswordData_Account() throws com.mendix.core.CoreException + { + return getAccountPasswordData_Account(getContext()); + } + + /** + * @param context + * @return value of AccountPasswordData_Account + */ + public final administration.proxies.Account getAccountPasswordData_Account(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException + { + administration.proxies.Account result = null; + com.mendix.systemwideinterfaces.core.IMendixIdentifier identifier = getMendixObject().getValue(context, MemberNames.AccountPasswordData_Account.toString()); + if (identifier != null) + result = administration.proxies.Account.load(context, identifier); + return result; + } + + /** + * Set value of AccountPasswordData_Account + * @param accountpassworddata_account + */ + public final void setAccountPasswordData_Account(administration.proxies.Account accountpassworddata_account) + { + setAccountPasswordData_Account(getContext(), accountpassworddata_account); + } + + /** + * Set value of AccountPasswordData_Account + * @param context + * @param accountpassworddata_account + */ + public final void setAccountPasswordData_Account(com.mendix.systemwideinterfaces.core.IContext context, administration.proxies.Account accountpassworddata_account) + { + if (accountpassworddata_account == null) + getMendixObject().setValue(context, MemberNames.AccountPasswordData_Account.toString(), null); + else + getMendixObject().setValue(context, MemberNames.AccountPasswordData_Account.toString(), accountpassworddata_account.getMendixObject().getId()); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return accountPasswordDataMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final administration.proxies.AccountPasswordData that = (administration.proxies.AccountPasswordData) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "Administration.AccountPasswordData"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/administration/proxies/microflows/Microflows.java b/test/javasource/administration/proxies/microflows/Microflows.java new file mode 100644 index 0000000..6c2cb92 --- /dev/null +++ b/test/javasource/administration/proxies/microflows/Microflows.java @@ -0,0 +1,176 @@ +// This file was generated by Mendix Modeler 6.0. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package administration.proxies.microflows; + +import java.util.HashMap; +import java.util.Map; +import com.mendix.core.Core; +import com.mendix.core.CoreException; +import com.mendix.systemwideinterfaces.MendixRuntimeException; +import com.mendix.systemwideinterfaces.core.IContext; +import com.mendix.systemwideinterfaces.core.IMendixObject; + +public class Microflows +{ + // These are the microflows for the Administration module + + public static void changeMyPassword(IContext context, administration.proxies.AccountPasswordData _accountPasswordData) + { + try + { + Map params = new HashMap(); + params.put("AccountPasswordData", _accountPasswordData == null ? null : _accountPasswordData.getMendixObject()); + Core.execute(context, "Administration.ChangeMyPassword", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void changePassword(IContext context, administration.proxies.AccountPasswordData _accountPasswordData) + { + try + { + Map params = new HashMap(); + params.put("AccountPasswordData", _accountPasswordData == null ? null : _accountPasswordData.getMendixObject()); + Core.execute(context, "Administration.ChangePassword", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void iVK_RetrieveAppCloudUserAccountData(IContext context, administration.proxies.Account _account) + { + try + { + Map params = new HashMap(); + params.put("Account", _account == null ? null : _account.getMendixObject()); + Core.execute(context, "Administration.IVK_RetrieveAppCloudUserAccountData", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void manageMyAccount(IContext context) + { + try + { + Map params = new HashMap(); + Core.execute(context, "Administration.ManageMyAccount", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void newAccount(IContext context) + { + try + { + Map params = new HashMap(); + Core.execute(context, "Administration.NewAccount", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void newWebServiceAccount(IContext context) + { + try + { + Map params = new HashMap(); + Core.execute(context, "Administration.NewWebServiceAccount", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void onFirstLoginAppCloudUser(IContext context, String _userIdentity) + { + try + { + Map params = new HashMap(); + params.put("UserIdentity", _userIdentity); + Core.execute(context, "Administration.OnFirstLoginAppCloudUser", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static java.util.List retrieveTimeZones(IContext context) + { + try + { + Map params = new HashMap(); + java.util.List objs = Core.execute(context, "Administration.RetrieveTimeZones", params); + java.util.List result = null; + if (objs != null) + { + result = new java.util.ArrayList(); + for (IMendixObject obj : objs) + result.add(system.proxies.TimeZone.initialize(context, obj)); + } + return result; + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void saveNewAccount(IContext context, administration.proxies.AccountPasswordData _accountPasswordData) + { + try + { + Map params = new HashMap(); + params.put("AccountPasswordData", _accountPasswordData == null ? null : _accountPasswordData.getMendixObject()); + Core.execute(context, "Administration.SaveNewAccount", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void showMyPasswordForm(IContext context, administration.proxies.Account _account) + { + try + { + Map params = new HashMap(); + params.put("Account", _account == null ? null : _account.getMendixObject()); + Core.execute(context, "Administration.ShowMyPasswordForm", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void showPasswordForm(IContext context, administration.proxies.Account _account) + { + try + { + Map params = new HashMap(); + params.put("Account", _account == null ? null : _account.getMendixObject()); + Core.execute(context, "Administration.ShowPasswordForm", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } +} \ No newline at end of file diff --git a/test/javasource/com/mendix/core/Core.java b/test/javasource/com/mendix/core/Core.java index 5f8d5af..3fa03c2 100644 --- a/test/javasource/com/mendix/core/Core.java +++ b/test/javasource/com/mendix/core/Core.java @@ -26,7 +26,6 @@ import com.mendix.logging.LogSubscriber; import com.mendix.m2ee.api.IMxRuntimeRequest; import com.mendix.systemwideinterfaces.MendixException; -import com.mendix.systemwideinterfaces.MendixRuntimeException; import com.mendix.systemwideinterfaces.IWebserviceResponse; import com.mendix.systemwideinterfaces.connectionbus.data.IDataTable; import com.mendix.systemwideinterfaces.connectionbus.requests.IMetaAssociationSchema; @@ -1325,64 +1324,33 @@ public static ISession initializeGuestSession() throws CoreException } /** - * Import an XML stream, map this stream to domain model objects and store those objects in the Mendix database. + * Import an xml stream, map this stream to domain objects and store those object in the Mendix database. * @param context the context. - * @param xmlStream the XML stream to map and store. - * @param importMappingName name of the mapping document, containing the mapping from XML to domain model objects (as defined in the Mendix Modeler, e.g. "Orders.MyMapping"). + * @param xmlStream the xml stream to map and store. + * @param importMappingName name of the mapping from xml to domain objects (as defined in the Mendix Modeler, e.g. "Orders.MyMapping"). * @param mappingParameter parameter object used during the mapping (optional) - * @param shouldValidate whether the XML should be validated. - * @deprecated Please use importStream instead. + * @param shouldValidate whether the xml should be validated. */ - @Deprecated public static void importXmlStream(IContext context, InputStream xmlStream, String importMappingName, IMendixObject mappingParameter, boolean shouldValidate) { - integration.importStream(context, xmlStream, importMappingName, mappingParameter, -1, shouldValidate); + integration.importXmlStream(context, xmlStream, importMappingName, mappingParameter, shouldValidate); } /** - * Import an XML stream, map this stream to domain model objects and store those objects in the Mendix database. + * Import an xml stream, map this stream to domain objects and store those object in the Mendix database. * @param context the context. - * @param xmlStream the XML stream to map and store. - * @param importMappingName name of the mapping document, containing the mapping from XML to domain model objects (as defined in the Mendix Modeler, e.g. "Orders.MyMapping"). + * @param xmlStream the xml stream to map and store. + * @param importMappingName name of the mapping from xml to domain objects (as defined in the Mendix Modeler, e.g. "Orders.MyMapping"). * @param mappingParameter parameter object used during the mapping (optional) - * @param storeResultInVariable whether to store the result of the XML mapping in variable which will be returned by this method. - * @param hasListReturnValue indicates whether the return value of the XML mapping is of type List. - * @param shouldValidate whether the XML should be validated. - * @deprecated Please use importStream instead. + * @param storeResultInVariable whether to store the result of the xml mapping in variable which will be returned by this method. + * @param hasListReturnValue indicates whether the return value of the xml mapping is of type List. + * @param shouldValidate whether the xml should be validated. */ - @Deprecated public static Object importXmlStream(IContext context, InputStream xmlStream, String importMappingName, IMendixObject mappingParameter, boolean storeResultInVariable, boolean hasListReturnValue, boolean shouldValidate) { return integration.importXmlStream(context, xmlStream, importMappingName, mappingParameter, storeResultInVariable, -1, hasListReturnValue, shouldValidate); } - - /** - * Import an XML or JSON stream, map this stream to domain model objects and store those objects in the Mendix database. - * @param context the context. - * @param stream the stream to map and store. - * @param importMappingName name of the mapping document, containing the mapping from XML or JSON to domain model objects (as defined in the Mendix Modeler, e.g. "Orders.MyMapping"). - * @param mappingParameter parameter object used during the mapping (optional). - * @param shouldValidate whether the input should be validated. Validation can only be applied to XML. - * @throws MendixRuntimeException this exception is thrown when an error occurs. - */ - public static List importStream(IContext context, InputStream stream, String importMappingName, IMendixObject mappingParameter, boolean shouldValidate) - { - return integration.importStream(context, stream, importMappingName, mappingParameter, -1, shouldValidate); - } - - /** - * Export domain object as XML or JSON stream. - * @param context the context. - * @param exportMappingName name of the mapping document, containing the mapping from domain model objects to XML or JSON (as defined in the Mendix Modeler, e.g. "Orders.MyMapping"). - * @param objectToExport object to export using the mapping. - * @param shouldValidate whether the output should be validated. Validation can only be applied to XML. - * @throws MendixRuntimeException this exception is thrown when an error occurs. - */ - public static InputStream exportStream(IContext context, String exportMappingName, IMendixObject objectToExport, boolean shouldValidate) - { - return integration.exportStream(context, exportMappingName, objectToExport, shouldValidate); - } /** * Call a webservice diff --git a/test/javasource/communitycommons/actions/MergeMultiplePdfs.java b/test/javasource/communitycommons/actions/MergeMultiplePdfs.java index 65be353..56f11b3 100644 --- a/test/javasource/communitycommons/actions/MergeMultiplePdfs.java +++ b/test/javasource/communitycommons/actions/MergeMultiplePdfs.java @@ -14,6 +14,9 @@ import com.mendix.webui.CustomJavaAction; import communitycommons.Misc; +/** + * + */ public class MergeMultiplePdfs extends CustomJavaAction { private java.util.List __FilesToMerge; diff --git a/test/javasource/communitycommons/actions/recommitInBatches.java b/test/javasource/communitycommons/actions/recommitInBatches.java index 819d451..7e446cc 100644 --- a/test/javasource/communitycommons/actions/recommitInBatches.java +++ b/test/javasource/communitycommons/actions/recommitInBatches.java @@ -13,6 +13,9 @@ import com.mendix.systemwideinterfaces.core.IContext; import com.mendix.webui.CustomJavaAction; +/** + * + */ public class recommitInBatches extends CustomJavaAction { private String xpath; diff --git a/test/javasource/communitycommons/proxies/DatePartSelector.java b/test/javasource/communitycommons/proxies/DatePartSelector.java new file mode 100644 index 0000000..1f6a546 --- /dev/null +++ b/test/javasource/communitycommons/proxies/DatePartSelector.java @@ -0,0 +1,33 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package communitycommons.proxies; + +public enum DatePartSelector +{ + year(new String[][] { new String[] { "en_US", "year" }, new String[] { "nl_NL", "jaar" } }), + month(new String[][] { new String[] { "en_US", "month" }, new String[] { "nl_NL", "maand" } }), + day(new String[][] { new String[] { "en_US", "day" }, new String[] { "nl_NL", "dag" } }); + + private java.util.Map captions; + + private DatePartSelector(String[][] captionStrings) + { + this.captions = new java.util.HashMap(); + for (String[] captionString : captionStrings) + captions.put(captionString[0], captionString[1]); + } + + public String getCaption(String languageCode) + { + if (captions.containsKey(languageCode)) + return captions.get(languageCode); + return captions.get("en_US"); + } + + public String getCaption() + { + return captions.get("en_US"); + } +} diff --git a/test/javasource/communitycommons/proxies/LogLevel.java b/test/javasource/communitycommons/proxies/LogLevel.java new file mode 100644 index 0000000..12cf15b --- /dev/null +++ b/test/javasource/communitycommons/proxies/LogLevel.java @@ -0,0 +1,36 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package communitycommons.proxies; + +public enum LogLevel +{ + Trace(new String[][] { new String[] { "en_US", "Trace" }, new String[] { "nl_NL", "Trace" } }), + Debug(new String[][] { new String[] { "en_US", "Debug" }, new String[] { "nl_NL", "Debug" } }), + Info(new String[][] { new String[] { "en_US", "Info" }, new String[] { "nl_NL", "Info" } }), + Warning(new String[][] { new String[] { "en_US", "Warning" }, new String[] { "nl_NL", "Warning" } }), + Error(new String[][] { new String[] { "en_US", "Error" }, new String[] { "nl_NL", "Error" } }), + Critical(new String[][] { new String[] { "en_US", "Critical" }, new String[] { "nl_NL", "Critical" } }); + + private java.util.Map captions; + + private LogLevel(String[][] captionStrings) + { + this.captions = new java.util.HashMap(); + for (String[] captionString : captionStrings) + captions.put(captionString[0], captionString[1]); + } + + public String getCaption(String languageCode) + { + if (captions.containsKey(languageCode)) + return captions.get(languageCode); + return captions.get("en_US"); + } + + public String getCaption() + { + return captions.get("en_US"); + } +} diff --git a/test/javasource/communitycommons/proxies/XSSPolicy.java b/test/javasource/communitycommons/proxies/XSSPolicy.java new file mode 100644 index 0000000..80907d8 --- /dev/null +++ b/test/javasource/communitycommons/proxies/XSSPolicy.java @@ -0,0 +1,37 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package communitycommons.proxies; + +public enum XSSPolicy +{ + TinyMCE(new String[][] { new String[] { "en_US", "TinyMCE" }, new String[] { "nl_NL", "TinyMCE" } }), + MySpace(new String[][] { new String[] { "en_US", "MySpace" }, new String[] { "nl_NL", "MySpace" } }), + eBay(new String[][] { new String[] { "en_US", "eBay" }, new String[] { "nl_NL", "eBay" } }), + Slashdot(new String[][] { new String[] { "en_US", "Slashdot" }, new String[] { "nl_NL", "Slashdot" } }), + anythinggoes(new String[][] { new String[] { "en_US", "Allow anything" }, new String[] { "nl_NL", "Alles toestaan" } }), + BootstrapRTE(new String[][] { new String[] { "en_US", "Bootstrap Rich Text Editor" }, new String[] { "nl_NL", "Bootstrap Rich Text Editor" } }), + BootstrapRTE_nolink(new String[][] { new String[] { "en_US", "Bootstrap Rich Text Editor no hyperlink" }, new String[] { "nl_NL", "Bootstrap Rich Text Editor no hyperlink" } }); + + private java.util.Map captions; + + private XSSPolicy(String[][] captionStrings) + { + this.captions = new java.util.HashMap(); + for (String[] captionString : captionStrings) + captions.put(captionString[0], captionString[1]); + } + + public String getCaption(String languageCode) + { + if (captions.containsKey(languageCode)) + return captions.get(languageCode); + return captions.get("en_US"); + } + + public String getCaption() + { + return captions.get("en_US"); + } +} diff --git a/test/javasource/communitycommons/proxies/constants/Constants.java b/test/javasource/communitycommons/proxies/constants/Constants.java new file mode 100644 index 0000000..294a73a --- /dev/null +++ b/test/javasource/communitycommons/proxies/constants/Constants.java @@ -0,0 +1,17 @@ +// This file was generated by Mendix Modeler 6.0. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package communitycommons.proxies.constants; + +import com.mendix.core.Core; + +public class Constants +{ + // These are the constants for the CommunityCommons module + + public static boolean getenableReleaseLockEvent() + { + return (Boolean)Core.getConfiguration().getConstantValue("CommunityCommons.enableReleaseLockEvent"); + } +} \ No newline at end of file diff --git a/test/javasource/communitycommons/proxies/microflows/Microflows.java b/test/javasource/communitycommons/proxies/microflows/Microflows.java new file mode 100644 index 0000000..c91eacd --- /dev/null +++ b/test/javasource/communitycommons/proxies/microflows/Microflows.java @@ -0,0 +1,94 @@ +// This file was generated by Mendix Modeler 6.0. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package communitycommons.proxies.microflows; + +import java.util.HashMap; +import java.util.Map; +import com.mendix.core.Core; +import com.mendix.core.CoreException; +import com.mendix.systemwideinterfaces.MendixRuntimeException; +import com.mendix.systemwideinterfaces.core.IContext; + +public class Microflows +{ + // These are the microflows for the CommunityCommons module + + public static void assertTrue(IContext context, boolean _valueToAssert) + { + try + { + Map params = new HashMap(); + params.put("valueToAssert", _valueToAssert); + Core.execute(context, "CommunityCommons.AssertTrue", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void assertTrue_2(IContext context, boolean _valueToAssert, String _message) + { + try + { + Map params = new HashMap(); + params.put("valueToAssert", _valueToAssert); + params.put("message", _message); + Core.execute(context, "CommunityCommons.AssertTrue_2", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void createUserIfNotExists(IContext context, String _username, String _role, String _password, boolean _webserviceUser) + { + try + { + Map params = new HashMap(); + params.put("Username", _username); + params.put("Role", _role); + params.put("Password", _password); + params.put("WebserviceUser", _webserviceUser); + Core.execute(context, "CommunityCommons.CreateUserIfNotExists", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void releaseOldLocksSE(IContext context) + { + try + { + Map params = new HashMap(); + Core.execute(context, "CommunityCommons.releaseOldLocksSE", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void updateUserHelper(IContext context, String _username, String _role, String _password, boolean _webserviceUser, system.proxies.User _user) + { + try + { + Map params = new HashMap(); + params.put("Username", _username); + params.put("Role", _role); + params.put("Password", _password); + params.put("WebserviceUser", _webserviceUser); + params.put("User", _user == null ? null : _user.getMendixObject()); + Core.execute(context, "CommunityCommons.UpdateUserHelper", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } +} \ No newline at end of file diff --git a/test/javasource/encryption/actions/DecryptString.java b/test/javasource/encryption/actions/DecryptString.java index 9ad4343..84d8b15 100644 --- a/test/javasource/encryption/actions/DecryptString.java +++ b/test/javasource/encryption/actions/DecryptString.java @@ -17,6 +17,9 @@ import com.mendix.systemwideinterfaces.core.IContext; import com.mendix.webui.CustomJavaAction; +/** + * + */ public class DecryptString extends CustomJavaAction { private String value; diff --git a/test/javasource/encryption/actions/EncryptString.java b/test/javasource/encryption/actions/EncryptString.java index 9755a90..cf20104 100644 --- a/test/javasource/encryption/actions/EncryptString.java +++ b/test/javasource/encryption/actions/EncryptString.java @@ -16,6 +16,9 @@ import com.mendix.webui.CustomJavaAction; import org.apache.commons.codec.binary.Base64; +/** + * + */ public class EncryptString extends CustomJavaAction { private String value; diff --git a/test/javasource/encryption/proxies/ExampleConfiguration.java b/test/javasource/encryption/proxies/ExampleConfiguration.java new file mode 100644 index 0000000..5b5d1e7 --- /dev/null +++ b/test/javasource/encryption/proxies/ExampleConfiguration.java @@ -0,0 +1,284 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package encryption.proxies; + +/** + * + */ +public class ExampleConfiguration +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject exampleConfigurationMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "Encryption.ExampleConfiguration"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + Title("Title"), + Username("Username"), + Password("Password"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public ExampleConfiguration(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "Encryption.ExampleConfiguration")); + } + + protected ExampleConfiguration(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject exampleConfigurationMendixObject) + { + if (exampleConfigurationMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("Encryption.ExampleConfiguration", exampleConfigurationMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a Encryption.ExampleConfiguration"); + + this.exampleConfigurationMendixObject = exampleConfigurationMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'ExampleConfiguration.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static encryption.proxies.ExampleConfiguration initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return encryption.proxies.ExampleConfiguration.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.getSudoContext() can be used to obtain sudo access). + */ + public static encryption.proxies.ExampleConfiguration initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new encryption.proxies.ExampleConfiguration(context, mendixObject); + } + + public static encryption.proxies.ExampleConfiguration 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 encryption.proxies.ExampleConfiguration.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//Encryption.ExampleConfiguration" + xpathConstraint)) + result.add(encryption.proxies.ExampleConfiguration.initialize(context, obj)); + return result; + } + + /** + * 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 Title + */ + public final String getTitle() + { + return getTitle(getContext()); + } + + /** + * @param context + * @return value of Title + */ + public final String getTitle(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Title.toString()); + } + + /** + * Set value of Title + * @param title + */ + public final void setTitle(String title) + { + setTitle(getContext(), title); + } + + /** + * Set value of Title + * @param context + * @param title + */ + public final void setTitle(com.mendix.systemwideinterfaces.core.IContext context, String title) + { + getMendixObject().setValue(context, MemberNames.Title.toString(), title); + } + + /** + * @return value of Username + */ + public final String getUsername() + { + return getUsername(getContext()); + } + + /** + * @param context + * @return value of Username + */ + public final String getUsername(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Username.toString()); + } + + /** + * Set value of Username + * @param username + */ + public final void setUsername(String username) + { + setUsername(getContext(), username); + } + + /** + * Set value of Username + * @param context + * @param username + */ + public final void setUsername(com.mendix.systemwideinterfaces.core.IContext context, String username) + { + getMendixObject().setValue(context, MemberNames.Username.toString(), username); + } + + /** + * @return value of Password + */ + public final String getPassword() + { + return getPassword(getContext()); + } + + /** + * @param context + * @return value of Password + */ + public final String getPassword(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Password.toString()); + } + + /** + * Set value of Password + * @param password + */ + public final void setPassword(String password) + { + setPassword(getContext(), password); + } + + /** + * Set value of Password + * @param context + * @param password + */ + public final void setPassword(com.mendix.systemwideinterfaces.core.IContext context, String password) + { + getMendixObject().setValue(context, MemberNames.Password.toString(), password); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return exampleConfigurationMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final encryption.proxies.ExampleConfiguration that = (encryption.proxies.ExampleConfiguration) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "Encryption.ExampleConfiguration"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/encryption/proxies/PasswordData.java b/test/javasource/encryption/proxies/PasswordData.java new file mode 100644 index 0000000..08a3ff4 --- /dev/null +++ b/test/javasource/encryption/proxies/PasswordData.java @@ -0,0 +1,283 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package encryption.proxies; + +/** + * + */ +public class PasswordData +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject passwordDataMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "Encryption.PasswordData"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + NewPassword("NewPassword"), + ConfirmPassword("ConfirmPassword"), + PasswordData_ExampleConfiguration("Encryption.PasswordData_ExampleConfiguration"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public PasswordData(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "Encryption.PasswordData")); + } + + protected PasswordData(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject passwordDataMendixObject) + { + if (passwordDataMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("Encryption.PasswordData", passwordDataMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a Encryption.PasswordData"); + + this.passwordDataMendixObject = passwordDataMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'PasswordData.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static encryption.proxies.PasswordData initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return encryption.proxies.PasswordData.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.getSudoContext() can be used to obtain sudo access). + */ + public static encryption.proxies.PasswordData initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new encryption.proxies.PasswordData(context, mendixObject); + } + + public static encryption.proxies.PasswordData 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 encryption.proxies.PasswordData.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 NewPassword + */ + public final String getNewPassword() + { + return getNewPassword(getContext()); + } + + /** + * @param context + * @return value of NewPassword + */ + public final String getNewPassword(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.NewPassword.toString()); + } + + /** + * Set value of NewPassword + * @param newpassword + */ + public final void setNewPassword(String newpassword) + { + setNewPassword(getContext(), newpassword); + } + + /** + * Set value of NewPassword + * @param context + * @param newpassword + */ + public final void setNewPassword(com.mendix.systemwideinterfaces.core.IContext context, String newpassword) + { + getMendixObject().setValue(context, MemberNames.NewPassword.toString(), newpassword); + } + + /** + * @return value of ConfirmPassword + */ + public final String getConfirmPassword() + { + return getConfirmPassword(getContext()); + } + + /** + * @param context + * @return value of ConfirmPassword + */ + public final String getConfirmPassword(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.ConfirmPassword.toString()); + } + + /** + * Set value of ConfirmPassword + * @param confirmpassword + */ + public final void setConfirmPassword(String confirmpassword) + { + setConfirmPassword(getContext(), confirmpassword); + } + + /** + * Set value of ConfirmPassword + * @param context + * @param confirmpassword + */ + public final void setConfirmPassword(com.mendix.systemwideinterfaces.core.IContext context, String confirmpassword) + { + getMendixObject().setValue(context, MemberNames.ConfirmPassword.toString(), confirmpassword); + } + + /** + * @return value of PasswordData_ExampleConfiguration + */ + public final encryption.proxies.ExampleConfiguration getPasswordData_ExampleConfiguration() throws com.mendix.core.CoreException + { + return getPasswordData_ExampleConfiguration(getContext()); + } + + /** + * @param context + * @return value of PasswordData_ExampleConfiguration + */ + public final encryption.proxies.ExampleConfiguration getPasswordData_ExampleConfiguration(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException + { + encryption.proxies.ExampleConfiguration result = null; + com.mendix.systemwideinterfaces.core.IMendixIdentifier identifier = getMendixObject().getValue(context, MemberNames.PasswordData_ExampleConfiguration.toString()); + if (identifier != null) + result = encryption.proxies.ExampleConfiguration.load(context, identifier); + return result; + } + + /** + * Set value of PasswordData_ExampleConfiguration + * @param passworddata_exampleconfiguration + */ + public final void setPasswordData_ExampleConfiguration(encryption.proxies.ExampleConfiguration passworddata_exampleconfiguration) + { + setPasswordData_ExampleConfiguration(getContext(), passworddata_exampleconfiguration); + } + + /** + * Set value of PasswordData_ExampleConfiguration + * @param context + * @param passworddata_exampleconfiguration + */ + public final void setPasswordData_ExampleConfiguration(com.mendix.systemwideinterfaces.core.IContext context, encryption.proxies.ExampleConfiguration passworddata_exampleconfiguration) + { + if (passworddata_exampleconfiguration == null) + getMendixObject().setValue(context, MemberNames.PasswordData_ExampleConfiguration.toString(), null); + else + getMendixObject().setValue(context, MemberNames.PasswordData_ExampleConfiguration.toString(), passworddata_exampleconfiguration.getMendixObject().getId()); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return passwordDataMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final encryption.proxies.PasswordData that = (encryption.proxies.PasswordData) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "Encryption.PasswordData"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/encryption/proxies/constants/Constants.java b/test/javasource/encryption/proxies/constants/Constants.java new file mode 100644 index 0000000..aa7c901 --- /dev/null +++ b/test/javasource/encryption/proxies/constants/Constants.java @@ -0,0 +1,27 @@ +// This file was generated by Mendix Modeler 6.0. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package encryption.proxies.constants; + +import com.mendix.core.Core; + +public class Constants +{ + // These are the constants for the Encryption module + + public static String getEncryptionKey() + { + return (String)Core.getConfiguration().getConstantValue("Encryption.EncryptionKey"); + } + + public static String getEncryptionPrefix() + { + return (String)Core.getConfiguration().getConstantValue("Encryption.EncryptionPrefix"); + } + + public static String getLogNode() + { + return (String)Core.getConfiguration().getConstantValue("Encryption.LogNode"); + } +} \ No newline at end of file diff --git a/test/javasource/encryption/proxies/microflows/Microflows.java b/test/javasource/encryption/proxies/microflows/Microflows.java new file mode 100644 index 0000000..a2fb2a1 --- /dev/null +++ b/test/javasource/encryption/proxies/microflows/Microflows.java @@ -0,0 +1,73 @@ +// This file was generated by Mendix Modeler 6.0. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package encryption.proxies.microflows; + +import java.util.HashMap; +import java.util.Map; +import com.mendix.core.Core; +import com.mendix.core.CoreException; +import com.mendix.systemwideinterfaces.MendixRuntimeException; +import com.mendix.systemwideinterfaces.core.IContext; + +public class Microflows +{ + // These are the microflows for the Encryption module + + public static String decrypt(IContext context, String _encrypted) + { + try + { + Map params = new HashMap(); + params.put("Encrypted", _encrypted); + return (String)Core.execute(context, "Encryption.Decrypt", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static String encrypt(IContext context, String _plain) + { + try + { + Map params = new HashMap(); + params.put("Plain", _plain); + return (String)Core.execute(context, "Encryption.Encrypt", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void iVK_ChangePassword(IContext context, encryption.proxies.ExampleConfiguration _exampleConfiguration) + { + try + { + Map params = new HashMap(); + params.put("ExampleConfiguration", _exampleConfiguration == null ? null : _exampleConfiguration.getMendixObject()); + Core.execute(context, "Encryption.IVK_ChangePassword", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void iVK_ChangePasswordSave(IContext context, encryption.proxies.PasswordData _passwordData) + { + try + { + Map params = new HashMap(); + params.put("PasswordData", _passwordData == null ? null : _passwordData.getMendixObject()); + Core.execute(context, "Encryption.IVK_ChangePasswordSave", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } +} \ No newline at end of file diff --git a/test/javasource/inviteapi/proxies/microflows/Microflows.java b/test/javasource/inviteapi/proxies/microflows/Microflows.java new file mode 100644 index 0000000..ad82045 --- /dev/null +++ b/test/javasource/inviteapi/proxies/microflows/Microflows.java @@ -0,0 +1,35 @@ +// This file was generated by Mendix Business Modeler 5.0. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package inviteapi.proxies.microflows; + +import java.util.HashMap; +import java.util.Map; +import com.mendix.core.Core; +import com.mendix.core.CoreException; +import com.mendix.systemwideinterfaces.MendixRuntimeException; +import com.mendix.systemwideinterfaces.core.IContext; + +public class Microflows +{ + // These are the microflows for the InviteAPI module + + public static void sendInvite(IContext context, String _environmentUUID, String _environmentPassword, String _roleUUID, String _inviteeEmailAddress, String _inviterEmailAddress) + { + try + { + Map params = new HashMap(); + params.put("EnvironmentUUID", _environmentUUID); + params.put("EnvironmentPassword", _environmentPassword); + params.put("RoleUUID", _roleUUID); + params.put("InviteeEmailAddress", _inviteeEmailAddress); + params.put("InviterEmailAddress", _inviterEmailAddress); + Core.execute(context, "InviteAPI.SendInvite", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } +} \ No newline at end of file diff --git a/test/javasource/myfirstmodule/proxies/microflows/Microflows.java b/test/javasource/myfirstmodule/proxies/microflows/Microflows.java new file mode 100644 index 0000000..74e7ee0 --- /dev/null +++ b/test/javasource/myfirstmodule/proxies/microflows/Microflows.java @@ -0,0 +1,30 @@ +// This file was generated by Mendix Modeler 6.0. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package myfirstmodule.proxies.microflows; + +import java.util.HashMap; +import java.util.Map; +import com.mendix.core.Core; +import com.mendix.core.CoreException; +import com.mendix.systemwideinterfaces.MendixRuntimeException; +import com.mendix.systemwideinterfaces.core.IContext; + +public class Microflows +{ + // These are the microflows for the MyFirstModule module + + public static boolean afterStartup(IContext context) + { + try + { + Map params = new HashMap(); + return (Boolean)Core.execute(context, "MyFirstModule.AfterStartup", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } +} \ No newline at end of file diff --git a/test/javasource/permissionsapi/proxies/AppRole.java b/test/javasource/permissionsapi/proxies/AppRole.java new file mode 100644 index 0000000..79e507a --- /dev/null +++ b/test/javasource/permissionsapi/proxies/AppRole.java @@ -0,0 +1,239 @@ +// This file was generated by Mendix Business Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package permissionsapi.proxies; + +/** + * + */ +public class AppRole +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject appRoleMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "PermissionsAPI.AppRole"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + UUID("UUID"), + DisplayName("DisplayName"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public AppRole(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "PermissionsAPI.AppRole")); + } + + protected AppRole(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject appRoleMendixObject) + { + if (appRoleMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("PermissionsAPI.AppRole", appRoleMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a PermissionsAPI.AppRole"); + + this.appRoleMendixObject = appRoleMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'AppRole.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static permissionsapi.proxies.AppRole initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return permissionsapi.proxies.AppRole.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.getSudoContext() can be used to obtain sudo access). + */ + public static permissionsapi.proxies.AppRole initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new permissionsapi.proxies.AppRole(context, mendixObject); + } + + public static permissionsapi.proxies.AppRole 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 permissionsapi.proxies.AppRole.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 UUID + */ + public final String getUUID() + { + return getUUID(getContext()); + } + + /** + * @param context + * @return value of UUID + */ + public final String getUUID(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.UUID.toString()); + } + + /** + * Set value of UUID + * @param uuid + */ + public final void setUUID(String uuid) + { + setUUID(getContext(), uuid); + } + + /** + * Set value of UUID + * @param context + * @param uuid + */ + public final void setUUID(com.mendix.systemwideinterfaces.core.IContext context, String uuid) + { + getMendixObject().setValue(context, MemberNames.UUID.toString(), uuid); + } + + /** + * @return value of DisplayName + */ + public final String getDisplayName() + { + return getDisplayName(getContext()); + } + + /** + * @param context + * @return value of DisplayName + */ + public final String getDisplayName(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.DisplayName.toString()); + } + + /** + * Set value of DisplayName + * @param displayname + */ + public final void setDisplayName(String displayname) + { + setDisplayName(getContext(), displayname); + } + + /** + * Set value of DisplayName + * @param context + * @param displayname + */ + public final void setDisplayName(com.mendix.systemwideinterfaces.core.IContext context, String displayname) + { + getMendixObject().setValue(context, MemberNames.DisplayName.toString(), displayname); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return appRoleMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final permissionsapi.proxies.AppRole that = (permissionsapi.proxies.AppRole) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "PermissionsAPI.AppRole"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/permissionsapi/proxies/microflows/Microflows.java b/test/javasource/permissionsapi/proxies/microflows/Microflows.java new file mode 100644 index 0000000..7bb7abf --- /dev/null +++ b/test/javasource/permissionsapi/proxies/microflows/Microflows.java @@ -0,0 +1,42 @@ +// This file was generated by Mendix Business Modeler 5.0. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package permissionsapi.proxies.microflows; + +import java.util.HashMap; +import java.util.Map; +import com.mendix.core.Core; +import com.mendix.core.CoreException; +import com.mendix.systemwideinterfaces.MendixRuntimeException; +import com.mendix.systemwideinterfaces.core.IContext; +import com.mendix.systemwideinterfaces.core.IMendixObject; + +public class Microflows +{ + // These are the microflows for the PermissionsAPI module + + public static java.util.List getRolesForOpenID(IContext context, String _openID, String _environmentID, String _environmentPassword) + { + try + { + Map params = new HashMap(); + params.put("OpenID", _openID); + params.put("EnvironmentID", _environmentID); + params.put("EnvironmentPassword", _environmentPassword); + java.util.List objs = Core.execute(context, "PermissionsAPI.GetRolesForOpenID", params); + java.util.List result = null; + if (objs != null) + { + result = new java.util.ArrayList(); + for (IMendixObject obj : objs) + result.add(permissionsapi.proxies.AppRole.initialize(context, obj)); + } + return result; + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } +} \ No newline at end of file diff --git a/test/javasource/pushnotifications/actions/PollFeedbackService.java b/test/javasource/pushnotifications/actions/PollFeedbackService.java index 342d0b5..c099b99 100755 --- a/test/javasource/pushnotifications/actions/PollFeedbackService.java +++ b/test/javasource/pushnotifications/actions/PollFeedbackService.java @@ -13,6 +13,9 @@ import com.mendix.systemwideinterfaces.core.IContext; import com.mendix.webui.CustomJavaAction; +/** + * + */ public class PollFeedbackService extends CustomJavaAction { public PollFeedbackService(IContext context) diff --git a/test/javasource/pushnotifications/actions/RestartGCM.java b/test/javasource/pushnotifications/actions/RestartGCM.java index ae14edf..0448a1a 100755 --- a/test/javasource/pushnotifications/actions/RestartGCM.java +++ b/test/javasource/pushnotifications/actions/RestartGCM.java @@ -14,6 +14,9 @@ import com.mendix.webui.CustomJavaAction; import com.mendix.systemwideinterfaces.core.IMendixObject; +/** + * + */ public class RestartGCM extends CustomJavaAction { private IMendixObject __settings; diff --git a/test/javasource/pushnotifications/actions/SendAppleMessages.java b/test/javasource/pushnotifications/actions/SendAppleMessages.java index e537ab7..132b51b 100755 --- a/test/javasource/pushnotifications/actions/SendAppleMessages.java +++ b/test/javasource/pushnotifications/actions/SendAppleMessages.java @@ -14,6 +14,9 @@ import com.mendix.webui.CustomJavaAction; import pushnotifications.implementation.apn.APNConnection; +/** + * + */ public class SendAppleMessages extends CustomJavaAction { private java.util.List __messages; diff --git a/test/javasource/pushnotifications/actions/SendGoogleMessages.java b/test/javasource/pushnotifications/actions/SendGoogleMessages.java index 2cf0676..9329064 100755 --- a/test/javasource/pushnotifications/actions/SendGoogleMessages.java +++ b/test/javasource/pushnotifications/actions/SendGoogleMessages.java @@ -14,6 +14,9 @@ import com.mendix.webui.CustomJavaAction; import com.mendix.systemwideinterfaces.core.IMendixObject; +/** + * + */ public class SendGoogleMessages extends CustomJavaAction { private java.util.List __messages; diff --git a/test/javasource/pushnotifications/actions/SendMessagesInBackground.java b/test/javasource/pushnotifications/actions/SendMessagesInBackground.java index 594ee1d..35677ac 100755 --- a/test/javasource/pushnotifications/actions/SendMessagesInBackground.java +++ b/test/javasource/pushnotifications/actions/SendMessagesInBackground.java @@ -22,6 +22,9 @@ import com.mendix.systemwideinterfaces.core.IMendixObject; import com.mendix.webui.CustomJavaAction; +/** + * + */ public class SendMessagesInBackground extends CustomJavaAction { private java.util.List __messages; diff --git a/test/javasource/pushnotifications/actions/StartAPN.java b/test/javasource/pushnotifications/actions/StartAPN.java index 6a42f0f..16ae62d 100755 --- a/test/javasource/pushnotifications/actions/StartAPN.java +++ b/test/javasource/pushnotifications/actions/StartAPN.java @@ -15,6 +15,9 @@ import communitycommons.Misc; import pushnotifications.implementation.apn.APNConnection; +/** + * + */ public class StartAPN extends CustomJavaAction { private IMendixObject __settings; diff --git a/test/javasource/pushnotifications/actions/StartGCM.java b/test/javasource/pushnotifications/actions/StartGCM.java index 25c4ed1..b29d715 100755 --- a/test/javasource/pushnotifications/actions/StartGCM.java +++ b/test/javasource/pushnotifications/actions/StartGCM.java @@ -14,6 +14,9 @@ import com.mendix.webui.CustomJavaAction; import com.mendix.systemwideinterfaces.core.IMendixObject; +/** + * + */ public class StartGCM extends CustomJavaAction { private IMendixObject __settings; diff --git a/test/javasource/pushnotifications/actions/StopAPN.java b/test/javasource/pushnotifications/actions/StopAPN.java index 62eba8b..66feb78 100755 --- a/test/javasource/pushnotifications/actions/StopAPN.java +++ b/test/javasource/pushnotifications/actions/StopAPN.java @@ -15,6 +15,9 @@ import communitycommons.Misc; import pushnotifications.implementation.apn.APNConnection; +/** + * + */ public class StopAPN extends CustomJavaAction { private IMendixObject __settings; diff --git a/test/javasource/pushnotifications/proxies/APNCertificate.java b/test/javasource/pushnotifications/proxies/APNCertificate.java new file mode 100755 index 0000000..cd2722f --- /dev/null +++ b/test/javasource/pushnotifications/proxies/APNCertificate.java @@ -0,0 +1,205 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package pushnotifications.proxies; + +/** + * + */ +public class APNCertificate extends system.proxies.FileDocument +{ + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "PushNotifications.APNCertificate"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + PassCode("PassCode"), + FileID("FileID"), + Name("Name"), + DeleteAfterDownload("DeleteAfterDownload"), + Contents("Contents"), + HasContents("HasContents"), + APNSettings_APNCertificate("PushNotifications.APNSettings_APNCertificate"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public APNCertificate(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "PushNotifications.APNCertificate")); + } + + protected APNCertificate(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject aPNCertificateMendixObject) + { + super(context, aPNCertificateMendixObject); + if (!com.mendix.core.Core.isSubClassOf("PushNotifications.APNCertificate", aPNCertificateMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a PushNotifications.APNCertificate"); + } + + /** + * @deprecated Use 'APNCertificate.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static pushnotifications.proxies.APNCertificate initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return pushnotifications.proxies.APNCertificate.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.getSudoContext() can be used to obtain sudo access). + */ + public static pushnotifications.proxies.APNCertificate initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new pushnotifications.proxies.APNCertificate(context, mendixObject); + } + + public static pushnotifications.proxies.APNCertificate 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 pushnotifications.proxies.APNCertificate.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//PushNotifications.APNCertificate" + xpathConstraint)) + result.add(pushnotifications.proxies.APNCertificate.initialize(context, obj)); + return result; + } + + /** + * @return value of PassCode + */ + public final String getPassCode() + { + return getPassCode(getContext()); + } + + /** + * @param context + * @return value of PassCode + */ + public final String getPassCode(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.PassCode.toString()); + } + + /** + * Set value of PassCode + * @param passcode + */ + public final void setPassCode(String passcode) + { + setPassCode(getContext(), passcode); + } + + /** + * Set value of PassCode + * @param context + * @param passcode + */ + public final void setPassCode(com.mendix.systemwideinterfaces.core.IContext context, String passcode) + { + getMendixObject().setValue(context, MemberNames.PassCode.toString(), passcode); + } + + /** + * @return value of APNSettings_APNCertificate + */ + public final pushnotifications.proxies.APNSettings getAPNSettings_APNCertificate() throws com.mendix.core.CoreException + { + return getAPNSettings_APNCertificate(getContext()); + } + + /** + * @param context + * @return value of APNSettings_APNCertificate + */ + public final pushnotifications.proxies.APNSettings getAPNSettings_APNCertificate(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException + { + pushnotifications.proxies.APNSettings result = null; + com.mendix.systemwideinterfaces.core.IMendixIdentifier identifier = getMendixObject().getValue(context, MemberNames.APNSettings_APNCertificate.toString()); + if (identifier != null) + result = pushnotifications.proxies.APNSettings.load(context, identifier); + return result; + } + + /** + * Set value of APNSettings_APNCertificate + * @param apnsettings_apncertificate + */ + public final void setAPNSettings_APNCertificate(pushnotifications.proxies.APNSettings apnsettings_apncertificate) + { + setAPNSettings_APNCertificate(getContext(), apnsettings_apncertificate); + } + + /** + * Set value of APNSettings_APNCertificate + * @param context + * @param apnsettings_apncertificate + */ + public final void setAPNSettings_APNCertificate(com.mendix.systemwideinterfaces.core.IContext context, pushnotifications.proxies.APNSettings apnsettings_apncertificate) + { + if (apnsettings_apncertificate == null) + getMendixObject().setValue(context, MemberNames.APNSettings_APNCertificate.toString(), null); + else + getMendixObject().setValue(context, MemberNames.APNSettings_APNCertificate.toString(), apnsettings_apncertificate.getMendixObject().getId()); + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final pushnotifications.proxies.APNCertificate that = (pushnotifications.proxies.APNCertificate) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "PushNotifications.APNCertificate"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Override + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/pushnotifications/proxies/APNSettings.java b/test/javasource/pushnotifications/proxies/APNSettings.java new file mode 100755 index 0000000..d5c0b41 --- /dev/null +++ b/test/javasource/pushnotifications/proxies/APNSettings.java @@ -0,0 +1,394 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package pushnotifications.proxies; + +/** + * + */ +public class APNSettings extends pushnotifications.proxies.MessagingServiceSettings +{ + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "PushNotifications.APNSettings"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + Server("Server"), + Port("Port"), + FeedbackServer("FeedbackServer"), + FeedbackPort("FeedbackPort"), + Started("Started"), + DTAPMode("DTAPMode"), + Enabled("Enabled"), + APNSettings_APNCertificate("PushNotifications.APNSettings_APNCertificate"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public APNSettings(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "PushNotifications.APNSettings")); + } + + protected APNSettings(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject aPNSettingsMendixObject) + { + super(context, aPNSettingsMendixObject); + if (!com.mendix.core.Core.isSubClassOf("PushNotifications.APNSettings", aPNSettingsMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a PushNotifications.APNSettings"); + } + + /** + * @deprecated Use 'APNSettings.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static pushnotifications.proxies.APNSettings initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return pushnotifications.proxies.APNSettings.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.getSudoContext() can be used to obtain sudo access). + */ + public static pushnotifications.proxies.APNSettings initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new pushnotifications.proxies.APNSettings(context, mendixObject); + } + + public static pushnotifications.proxies.APNSettings 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 pushnotifications.proxies.APNSettings.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//PushNotifications.APNSettings" + xpathConstraint)) + result.add(pushnotifications.proxies.APNSettings.initialize(context, obj)); + return result; + } + + /** + * @return value of Server + */ + public final String getServer() + { + return getServer(getContext()); + } + + /** + * @param context + * @return value of Server + */ + public final String getServer(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Server.toString()); + } + + /** + * Set value of Server + * @param server + */ + public final void setServer(String server) + { + setServer(getContext(), server); + } + + /** + * Set value of Server + * @param context + * @param server + */ + public final void setServer(com.mendix.systemwideinterfaces.core.IContext context, String server) + { + getMendixObject().setValue(context, MemberNames.Server.toString(), server); + } + + /** + * @return value of Port + */ + public final Integer getPort() + { + return getPort(getContext()); + } + + /** + * @param context + * @return value of Port + */ + public final Integer getPort(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Integer) getMendixObject().getValue(context, MemberNames.Port.toString()); + } + + /** + * Set value of Port + * @param port + */ + public final void setPort(Integer port) + { + setPort(getContext(), port); + } + + /** + * Set value of Port + * @param context + * @param port + */ + public final void setPort(com.mendix.systemwideinterfaces.core.IContext context, Integer port) + { + getMendixObject().setValue(context, MemberNames.Port.toString(), port); + } + + /** + * @return value of FeedbackServer + */ + public final String getFeedbackServer() + { + return getFeedbackServer(getContext()); + } + + /** + * @param context + * @return value of FeedbackServer + */ + public final String getFeedbackServer(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.FeedbackServer.toString()); + } + + /** + * Set value of FeedbackServer + * @param feedbackserver + */ + public final void setFeedbackServer(String feedbackserver) + { + setFeedbackServer(getContext(), feedbackserver); + } + + /** + * Set value of FeedbackServer + * @param context + * @param feedbackserver + */ + public final void setFeedbackServer(com.mendix.systemwideinterfaces.core.IContext context, String feedbackserver) + { + getMendixObject().setValue(context, MemberNames.FeedbackServer.toString(), feedbackserver); + } + + /** + * @return value of FeedbackPort + */ + public final Integer getFeedbackPort() + { + return getFeedbackPort(getContext()); + } + + /** + * @param context + * @return value of FeedbackPort + */ + public final Integer getFeedbackPort(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Integer) getMendixObject().getValue(context, MemberNames.FeedbackPort.toString()); + } + + /** + * Set value of FeedbackPort + * @param feedbackport + */ + public final void setFeedbackPort(Integer feedbackport) + { + setFeedbackPort(getContext(), feedbackport); + } + + /** + * Set value of FeedbackPort + * @param context + * @param feedbackport + */ + public final void setFeedbackPort(com.mendix.systemwideinterfaces.core.IContext context, Integer feedbackport) + { + getMendixObject().setValue(context, MemberNames.FeedbackPort.toString(), feedbackport); + } + + /** + * @return value of Started + */ + public final Boolean getStarted() + { + return getStarted(getContext()); + } + + /** + * @param context + * @return value of Started + */ + public final Boolean getStarted(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Boolean) getMendixObject().getValue(context, MemberNames.Started.toString()); + } + + /** + * Set value of Started + * @param started + */ + public final void setStarted(Boolean started) + { + setStarted(getContext(), started); + } + + /** + * Set value of Started + * @param context + * @param started + */ + public final void setStarted(com.mendix.systemwideinterfaces.core.IContext context, Boolean started) + { + getMendixObject().setValue(context, MemberNames.Started.toString(), started); + } + + /** + * Set value of DTAPMode + * @param dtapmode + */ + public final pushnotifications.proxies.DTAPMode getDTAPMode() + { + return getDTAPMode(getContext()); + } + + /** + * @param context + * @return value of DTAPMode + */ + public final pushnotifications.proxies.DTAPMode getDTAPMode(com.mendix.systemwideinterfaces.core.IContext context) + { + Object obj = getMendixObject().getValue(context, MemberNames.DTAPMode.toString()); + if (obj == null) + return null; + + return pushnotifications.proxies.DTAPMode.valueOf((java.lang.String) obj); + } + + /** + * Set value of DTAPMode + * @param dtapmode + */ + public final void setDTAPMode(pushnotifications.proxies.DTAPMode dtapmode) + { + setDTAPMode(getContext(), dtapmode); + } + + /** + * Set value of DTAPMode + * @param context + * @param dtapmode + */ + public final void setDTAPMode(com.mendix.systemwideinterfaces.core.IContext context, pushnotifications.proxies.DTAPMode dtapmode) + { + if (dtapmode != null) + getMendixObject().setValue(context, MemberNames.DTAPMode.toString(), dtapmode.toString()); + else + getMendixObject().setValue(context, MemberNames.DTAPMode.toString(), null); + } + + /** + * @return value of APNSettings_APNCertificate + */ + public final pushnotifications.proxies.APNCertificate getAPNSettings_APNCertificate() throws com.mendix.core.CoreException + { + return getAPNSettings_APNCertificate(getContext()); + } + + /** + * @param context + * @return value of APNSettings_APNCertificate + */ + public final pushnotifications.proxies.APNCertificate getAPNSettings_APNCertificate(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException + { + pushnotifications.proxies.APNCertificate result = null; + com.mendix.systemwideinterfaces.core.IMendixIdentifier identifier = getMendixObject().getValue(context, MemberNames.APNSettings_APNCertificate.toString()); + if (identifier != null) + result = pushnotifications.proxies.APNCertificate.load(context, identifier); + return result; + } + + /** + * Set value of APNSettings_APNCertificate + * @param apnsettings_apncertificate + */ + public final void setAPNSettings_APNCertificate(pushnotifications.proxies.APNCertificate apnsettings_apncertificate) + { + setAPNSettings_APNCertificate(getContext(), apnsettings_apncertificate); + } + + /** + * Set value of APNSettings_APNCertificate + * @param context + * @param apnsettings_apncertificate + */ + public final void setAPNSettings_APNCertificate(com.mendix.systemwideinterfaces.core.IContext context, pushnotifications.proxies.APNCertificate apnsettings_apncertificate) + { + if (apnsettings_apncertificate == null) + getMendixObject().setValue(context, MemberNames.APNSettings_APNCertificate.toString(), null); + else + getMendixObject().setValue(context, MemberNames.APNSettings_APNCertificate.toString(), apnsettings_apncertificate.getMendixObject().getId()); + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final pushnotifications.proxies.APNSettings that = (pushnotifications.proxies.APNSettings) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "PushNotifications.APNSettings"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Override + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/pushnotifications/proxies/AppleMessage.java b/test/javasource/pushnotifications/proxies/AppleMessage.java new file mode 100755 index 0000000..e66f758 --- /dev/null +++ b/test/javasource/pushnotifications/proxies/AppleMessage.java @@ -0,0 +1,350 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package pushnotifications.proxies; + +/** + * + */ +public class AppleMessage extends pushnotifications.proxies.Message +{ + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "PushNotifications.AppleMessage"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + Sound("Sound"), + Badge("Badge"), + ActionKey("ActionKey"), + LaunchImage("LaunchImage"), + LocalizedKey("LocalizedKey"), + ResizeAlertBodyPostfix("ResizeAlertBodyPostfix"), + DeviceType("DeviceType"), + To("To"), + MessageId("MessageId"), + Message("Message"), + Failed("Failed"), + FailedReason("FailedReason"), + FailedCount("FailedCount"), + NextTry("NextTry"), + Queued("Queued"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public AppleMessage(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "PushNotifications.AppleMessage")); + } + + protected AppleMessage(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject appleMessageMendixObject) + { + super(context, appleMessageMendixObject); + if (!com.mendix.core.Core.isSubClassOf("PushNotifications.AppleMessage", appleMessageMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a PushNotifications.AppleMessage"); + } + + /** + * @deprecated Use 'AppleMessage.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static pushnotifications.proxies.AppleMessage initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return pushnotifications.proxies.AppleMessage.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.getSudoContext() can be used to obtain sudo access). + */ + public static pushnotifications.proxies.AppleMessage initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new pushnotifications.proxies.AppleMessage(context, mendixObject); + } + + public static pushnotifications.proxies.AppleMessage 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 pushnotifications.proxies.AppleMessage.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//PushNotifications.AppleMessage" + xpathConstraint)) + result.add(pushnotifications.proxies.AppleMessage.initialize(context, obj)); + return result; + } + + /** + * @return value of Sound + */ + public final String getSound() + { + return getSound(getContext()); + } + + /** + * @param context + * @return value of Sound + */ + public final String getSound(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Sound.toString()); + } + + /** + * Set value of Sound + * @param sound + */ + public final void setSound(String sound) + { + setSound(getContext(), sound); + } + + /** + * Set value of Sound + * @param context + * @param sound + */ + public final void setSound(com.mendix.systemwideinterfaces.core.IContext context, String sound) + { + getMendixObject().setValue(context, MemberNames.Sound.toString(), sound); + } + + /** + * @return value of Badge + */ + public final Integer getBadge() + { + return getBadge(getContext()); + } + + /** + * @param context + * @return value of Badge + */ + public final Integer getBadge(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Integer) getMendixObject().getValue(context, MemberNames.Badge.toString()); + } + + /** + * Set value of Badge + * @param badge + */ + public final void setBadge(Integer badge) + { + setBadge(getContext(), badge); + } + + /** + * Set value of Badge + * @param context + * @param badge + */ + public final void setBadge(com.mendix.systemwideinterfaces.core.IContext context, Integer badge) + { + getMendixObject().setValue(context, MemberNames.Badge.toString(), badge); + } + + /** + * @return value of ActionKey + */ + public final String getActionKey() + { + return getActionKey(getContext()); + } + + /** + * @param context + * @return value of ActionKey + */ + public final String getActionKey(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.ActionKey.toString()); + } + + /** + * Set value of ActionKey + * @param actionkey + */ + public final void setActionKey(String actionkey) + { + setActionKey(getContext(), actionkey); + } + + /** + * Set value of ActionKey + * @param context + * @param actionkey + */ + public final void setActionKey(com.mendix.systemwideinterfaces.core.IContext context, String actionkey) + { + getMendixObject().setValue(context, MemberNames.ActionKey.toString(), actionkey); + } + + /** + * @return value of LaunchImage + */ + public final String getLaunchImage() + { + return getLaunchImage(getContext()); + } + + /** + * @param context + * @return value of LaunchImage + */ + public final String getLaunchImage(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.LaunchImage.toString()); + } + + /** + * Set value of LaunchImage + * @param launchimage + */ + public final void setLaunchImage(String launchimage) + { + setLaunchImage(getContext(), launchimage); + } + + /** + * Set value of LaunchImage + * @param context + * @param launchimage + */ + public final void setLaunchImage(com.mendix.systemwideinterfaces.core.IContext context, String launchimage) + { + getMendixObject().setValue(context, MemberNames.LaunchImage.toString(), launchimage); + } + + /** + * @return value of LocalizedKey + */ + public final String getLocalizedKey() + { + return getLocalizedKey(getContext()); + } + + /** + * @param context + * @return value of LocalizedKey + */ + public final String getLocalizedKey(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.LocalizedKey.toString()); + } + + /** + * Set value of LocalizedKey + * @param localizedkey + */ + public final void setLocalizedKey(String localizedkey) + { + setLocalizedKey(getContext(), localizedkey); + } + + /** + * Set value of LocalizedKey + * @param context + * @param localizedkey + */ + public final void setLocalizedKey(com.mendix.systemwideinterfaces.core.IContext context, String localizedkey) + { + getMendixObject().setValue(context, MemberNames.LocalizedKey.toString(), localizedkey); + } + + /** + * @return value of ResizeAlertBodyPostfix + */ + public final String getResizeAlertBodyPostfix() + { + return getResizeAlertBodyPostfix(getContext()); + } + + /** + * @param context + * @return value of ResizeAlertBodyPostfix + */ + public final String getResizeAlertBodyPostfix(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.ResizeAlertBodyPostfix.toString()); + } + + /** + * Set value of ResizeAlertBodyPostfix + * @param resizealertbodypostfix + */ + public final void setResizeAlertBodyPostfix(String resizealertbodypostfix) + { + setResizeAlertBodyPostfix(getContext(), resizealertbodypostfix); + } + + /** + * Set value of ResizeAlertBodyPostfix + * @param context + * @param resizealertbodypostfix + */ + public final void setResizeAlertBodyPostfix(com.mendix.systemwideinterfaces.core.IContext context, String resizealertbodypostfix) + { + getMendixObject().setValue(context, MemberNames.ResizeAlertBodyPostfix.toString(), resizealertbodypostfix); + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final pushnotifications.proxies.AppleMessage that = (pushnotifications.proxies.AppleMessage) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "PushNotifications.AppleMessage"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Override + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/pushnotifications/proxies/DTAPMode.java b/test/javasource/pushnotifications/proxies/DTAPMode.java new file mode 100755 index 0000000..3fb3182 --- /dev/null +++ b/test/javasource/pushnotifications/proxies/DTAPMode.java @@ -0,0 +1,35 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package pushnotifications.proxies; + +public enum DTAPMode +{ + DEVELOPMENT(new String[][] { new String[] { "en_US", "Development" }, new String[] { "nl_NL", "Development" } }), + TESTING(new String[][] { new String[] { "en_US", "Testing" }, new String[] { "nl_NL", "Testing" } }), + ACCEPTANCE(new String[][] { new String[] { "en_US", "Acceptance" }, new String[] { "nl_NL", "Acceptance" } }), + PRODUCTION(new String[][] { new String[] { "en_US", "Production" }, new String[] { "nl_NL", "Production" } }), + TRIAL(new String[][] { new String[] { "en_US", "Trial" }, new String[] { "nl_NL", "Trial" } }); + + private java.util.Map captions; + + private DTAPMode(String[][] captionStrings) + { + this.captions = new java.util.HashMap(); + for (String[] captionString : captionStrings) + captions.put(captionString[0], captionString[1]); + } + + public String getCaption(String languageCode) + { + if (captions.containsKey(languageCode)) + return captions.get(languageCode); + return captions.get("en_US"); + } + + public String getCaption() + { + return captions.get("en_US"); + } +} diff --git a/test/javasource/pushnotifications/proxies/Device.java b/test/javasource/pushnotifications/proxies/Device.java new file mode 100755 index 0000000..921ecc8 --- /dev/null +++ b/test/javasource/pushnotifications/proxies/Device.java @@ -0,0 +1,299 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package pushnotifications.proxies; + +/** + * + */ +public class Device +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject deviceMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "PushNotifications.Device"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + RegistrationID("RegistrationID"), + DeviceType("DeviceType"), + Device_Account("PushNotifications.Device_Account"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public Device(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "PushNotifications.Device")); + } + + protected Device(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject deviceMendixObject) + { + if (deviceMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("PushNotifications.Device", deviceMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a PushNotifications.Device"); + + this.deviceMendixObject = deviceMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'Device.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static pushnotifications.proxies.Device initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return pushnotifications.proxies.Device.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.getSudoContext() can be used to obtain sudo access). + */ + public static pushnotifications.proxies.Device initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new pushnotifications.proxies.Device(context, mendixObject); + } + + public static pushnotifications.proxies.Device 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 pushnotifications.proxies.Device.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//PushNotifications.Device" + xpathConstraint)) + result.add(pushnotifications.proxies.Device.initialize(context, obj)); + return result; + } + + /** + * 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 RegistrationID + */ + public final String getRegistrationID() + { + return getRegistrationID(getContext()); + } + + /** + * @param context + * @return value of RegistrationID + */ + public final String getRegistrationID(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.RegistrationID.toString()); + } + + /** + * Set value of RegistrationID + * @param registrationid + */ + public final void setRegistrationID(String registrationid) + { + setRegistrationID(getContext(), registrationid); + } + + /** + * Set value of RegistrationID + * @param context + * @param registrationid + */ + public final void setRegistrationID(com.mendix.systemwideinterfaces.core.IContext context, String registrationid) + { + getMendixObject().setValue(context, MemberNames.RegistrationID.toString(), registrationid); + } + + /** + * Set value of DeviceType + * @param devicetype + */ + public final pushnotifications.proxies.DeviceType getDeviceType() + { + return getDeviceType(getContext()); + } + + /** + * @param context + * @return value of DeviceType + */ + public final pushnotifications.proxies.DeviceType getDeviceType(com.mendix.systemwideinterfaces.core.IContext context) + { + Object obj = getMendixObject().getValue(context, MemberNames.DeviceType.toString()); + if (obj == null) + return null; + + return pushnotifications.proxies.DeviceType.valueOf((java.lang.String) obj); + } + + /** + * Set value of DeviceType + * @param devicetype + */ + public final void setDeviceType(pushnotifications.proxies.DeviceType devicetype) + { + setDeviceType(getContext(), devicetype); + } + + /** + * Set value of DeviceType + * @param context + * @param devicetype + */ + public final void setDeviceType(com.mendix.systemwideinterfaces.core.IContext context, pushnotifications.proxies.DeviceType devicetype) + { + if (devicetype != null) + getMendixObject().setValue(context, MemberNames.DeviceType.toString(), devicetype.toString()); + else + getMendixObject().setValue(context, MemberNames.DeviceType.toString(), null); + } + + /** + * @return value of Device_Account + */ + public final administration.proxies.Account getDevice_Account() throws com.mendix.core.CoreException + { + return getDevice_Account(getContext()); + } + + /** + * @param context + * @return value of Device_Account + */ + public final administration.proxies.Account getDevice_Account(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException + { + administration.proxies.Account result = null; + com.mendix.systemwideinterfaces.core.IMendixIdentifier identifier = getMendixObject().getValue(context, MemberNames.Device_Account.toString()); + if (identifier != null) + result = administration.proxies.Account.load(context, identifier); + return result; + } + + /** + * Set value of Device_Account + * @param device_account + */ + public final void setDevice_Account(administration.proxies.Account device_account) + { + setDevice_Account(getContext(), device_account); + } + + /** + * Set value of Device_Account + * @param context + * @param device_account + */ + public final void setDevice_Account(com.mendix.systemwideinterfaces.core.IContext context, administration.proxies.Account device_account) + { + if (device_account == null) + getMendixObject().setValue(context, MemberNames.Device_Account.toString(), null); + else + getMendixObject().setValue(context, MemberNames.Device_Account.toString(), device_account.getMendixObject().getId()); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return deviceMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final pushnotifications.proxies.Device that = (pushnotifications.proxies.Device) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "PushNotifications.Device"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/pushnotifications/proxies/DeviceType.java b/test/javasource/pushnotifications/proxies/DeviceType.java new file mode 100755 index 0000000..9f03d8c --- /dev/null +++ b/test/javasource/pushnotifications/proxies/DeviceType.java @@ -0,0 +1,33 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package pushnotifications.proxies; + +public enum DeviceType +{ + Android(new String[][] { new String[] { "en_US", "Android" }, new String[] { "nl_NL", "Android" } }), + iOS(new String[][] { new String[] { "en_US", "iOS" }, new String[] { "nl_NL", "iOS" } }), + Windows(new String[][] { new String[] { "en_US", "Windows" } }); + + private java.util.Map captions; + + private DeviceType(String[][] captionStrings) + { + this.captions = new java.util.HashMap(); + for (String[] captionString : captionStrings) + captions.put(captionString[0], captionString[1]); + } + + public String getCaption(String languageCode) + { + if (captions.containsKey(languageCode)) + return captions.get(languageCode); + return captions.get("en_US"); + } + + public String getCaption() + { + return captions.get("en_US"); + } +} diff --git a/test/javasource/pushnotifications/proxies/GCMSettings.java b/test/javasource/pushnotifications/proxies/GCMSettings.java new file mode 100755 index 0000000..779214a --- /dev/null +++ b/test/javasource/pushnotifications/proxies/GCMSettings.java @@ -0,0 +1,313 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package pushnotifications.proxies; + +/** + * Google implementation. + */ +public class GCMSettings extends pushnotifications.proxies.MessagingServiceSettings +{ + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "PushNotifications.GCMSettings"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + XMPPServer("XMPPServer"), + XMPPPort("XMPPPort"), + SenderId("SenderId"), + APIKey("APIKey"), + DTAPMode("DTAPMode"), + Enabled("Enabled"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public GCMSettings(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "PushNotifications.GCMSettings")); + } + + protected GCMSettings(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject gCMSettingsMendixObject) + { + super(context, gCMSettingsMendixObject); + if (!com.mendix.core.Core.isSubClassOf("PushNotifications.GCMSettings", gCMSettingsMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a PushNotifications.GCMSettings"); + } + + /** + * @deprecated Use 'GCMSettings.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static pushnotifications.proxies.GCMSettings initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return pushnotifications.proxies.GCMSettings.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.getSudoContext() can be used to obtain sudo access). + */ + public static pushnotifications.proxies.GCMSettings initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new pushnotifications.proxies.GCMSettings(context, mendixObject); + } + + public static pushnotifications.proxies.GCMSettings 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 pushnotifications.proxies.GCMSettings.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//PushNotifications.GCMSettings" + xpathConstraint)) + result.add(pushnotifications.proxies.GCMSettings.initialize(context, obj)); + return result; + } + + /** + * @return value of XMPPServer + */ + public final String getXMPPServer() + { + return getXMPPServer(getContext()); + } + + /** + * @param context + * @return value of XMPPServer + */ + public final String getXMPPServer(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.XMPPServer.toString()); + } + + /** + * Set value of XMPPServer + * @param xmppserver + */ + public final void setXMPPServer(String xmppserver) + { + setXMPPServer(getContext(), xmppserver); + } + + /** + * Set value of XMPPServer + * @param context + * @param xmppserver + */ + public final void setXMPPServer(com.mendix.systemwideinterfaces.core.IContext context, String xmppserver) + { + getMendixObject().setValue(context, MemberNames.XMPPServer.toString(), xmppserver); + } + + /** + * @return value of XMPPPort + */ + public final Integer getXMPPPort() + { + return getXMPPPort(getContext()); + } + + /** + * @param context + * @return value of XMPPPort + */ + public final Integer getXMPPPort(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Integer) getMendixObject().getValue(context, MemberNames.XMPPPort.toString()); + } + + /** + * Set value of XMPPPort + * @param xmppport + */ + public final void setXMPPPort(Integer xmppport) + { + setXMPPPort(getContext(), xmppport); + } + + /** + * Set value of XMPPPort + * @param context + * @param xmppport + */ + public final void setXMPPPort(com.mendix.systemwideinterfaces.core.IContext context, Integer xmppport) + { + getMendixObject().setValue(context, MemberNames.XMPPPort.toString(), xmppport); + } + + /** + * @return value of SenderId + */ + public final Long getSenderId() + { + return getSenderId(getContext()); + } + + /** + * @param context + * @return value of SenderId + */ + public final Long getSenderId(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Long) getMendixObject().getValue(context, MemberNames.SenderId.toString()); + } + + /** + * Set value of SenderId + * @param senderid + */ + public final void setSenderId(Long senderid) + { + setSenderId(getContext(), senderid); + } + + /** + * Set value of SenderId + * @param context + * @param senderid + */ + public final void setSenderId(com.mendix.systemwideinterfaces.core.IContext context, Long senderid) + { + getMendixObject().setValue(context, MemberNames.SenderId.toString(), senderid); + } + + /** + * @return value of APIKey + */ + public final String getAPIKey() + { + return getAPIKey(getContext()); + } + + /** + * @param context + * @return value of APIKey + */ + public final String getAPIKey(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.APIKey.toString()); + } + + /** + * Set value of APIKey + * @param apikey + */ + public final void setAPIKey(String apikey) + { + setAPIKey(getContext(), apikey); + } + + /** + * Set value of APIKey + * @param context + * @param apikey + */ + public final void setAPIKey(com.mendix.systemwideinterfaces.core.IContext context, String apikey) + { + getMendixObject().setValue(context, MemberNames.APIKey.toString(), apikey); + } + + /** + * Set value of DTAPMode + * @param dtapmode + */ + public final pushnotifications.proxies.DTAPMode getDTAPMode() + { + return getDTAPMode(getContext()); + } + + /** + * @param context + * @return value of DTAPMode + */ + public final pushnotifications.proxies.DTAPMode getDTAPMode(com.mendix.systemwideinterfaces.core.IContext context) + { + Object obj = getMendixObject().getValue(context, MemberNames.DTAPMode.toString()); + if (obj == null) + return null; + + return pushnotifications.proxies.DTAPMode.valueOf((java.lang.String) obj); + } + + /** + * Set value of DTAPMode + * @param dtapmode + */ + public final void setDTAPMode(pushnotifications.proxies.DTAPMode dtapmode) + { + setDTAPMode(getContext(), dtapmode); + } + + /** + * Set value of DTAPMode + * @param context + * @param dtapmode + */ + public final void setDTAPMode(com.mendix.systemwideinterfaces.core.IContext context, pushnotifications.proxies.DTAPMode dtapmode) + { + if (dtapmode != null) + getMendixObject().setValue(context, MemberNames.DTAPMode.toString(), dtapmode.toString()); + else + getMendixObject().setValue(context, MemberNames.DTAPMode.toString(), null); + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final pushnotifications.proxies.GCMSettings that = (pushnotifications.proxies.GCMSettings) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "PushNotifications.GCMSettings"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Override + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/pushnotifications/proxies/GoogleLoggingLevel.java b/test/javasource/pushnotifications/proxies/GoogleLoggingLevel.java new file mode 100755 index 0000000..8a0ee9b --- /dev/null +++ b/test/javasource/pushnotifications/proxies/GoogleLoggingLevel.java @@ -0,0 +1,32 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package pushnotifications.proxies; + +public enum GoogleLoggingLevel +{ + Connection(new String[][] { new String[] { "en_US", "" }, new String[] { "nl_NL", "Connection" } }), + Message(new String[][] { new String[] { "en_US", "" }, new String[] { "nl_NL", "Message" } }); + + private java.util.Map captions; + + private GoogleLoggingLevel(String[][] captionStrings) + { + this.captions = new java.util.HashMap(); + for (String[] captionString : captionStrings) + captions.put(captionString[0], captionString[1]); + } + + public String getCaption(String languageCode) + { + if (captions.containsKey(languageCode)) + return captions.get(languageCode); + return captions.get("en_US"); + } + + public String getCaption() + { + return captions.get("en_US"); + } +} diff --git a/test/javasource/pushnotifications/proxies/GoogleMessage.java b/test/javasource/pushnotifications/proxies/GoogleMessage.java new file mode 100755 index 0000000..9962676 --- /dev/null +++ b/test/javasource/pushnotifications/proxies/GoogleMessage.java @@ -0,0 +1,202 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package pushnotifications.proxies; + +/** + * + */ +public class GoogleMessage extends pushnotifications.proxies.Message +{ + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "PushNotifications.GoogleMessage"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + TimeToLive("TimeToLive"), + Title("Title"), + DeviceType("DeviceType"), + To("To"), + MessageId("MessageId"), + Message("Message"), + Failed("Failed"), + FailedReason("FailedReason"), + FailedCount("FailedCount"), + NextTry("NextTry"), + Queued("Queued"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public GoogleMessage(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "PushNotifications.GoogleMessage")); + } + + protected GoogleMessage(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject googleMessageMendixObject) + { + super(context, googleMessageMendixObject); + if (!com.mendix.core.Core.isSubClassOf("PushNotifications.GoogleMessage", googleMessageMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a PushNotifications.GoogleMessage"); + } + + /** + * @deprecated Use 'GoogleMessage.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static pushnotifications.proxies.GoogleMessage initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return pushnotifications.proxies.GoogleMessage.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.getSudoContext() can be used to obtain sudo access). + */ + public static pushnotifications.proxies.GoogleMessage initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new pushnotifications.proxies.GoogleMessage(context, mendixObject); + } + + public static pushnotifications.proxies.GoogleMessage 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 pushnotifications.proxies.GoogleMessage.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//PushNotifications.GoogleMessage" + xpathConstraint)) + result.add(pushnotifications.proxies.GoogleMessage.initialize(context, obj)); + return result; + } + + /** + * @return value of TimeToLive + */ + public final Long getTimeToLive() + { + return getTimeToLive(getContext()); + } + + /** + * @param context + * @return value of TimeToLive + */ + public final Long getTimeToLive(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Long) getMendixObject().getValue(context, MemberNames.TimeToLive.toString()); + } + + /** + * Set value of TimeToLive + * @param timetolive + */ + public final void setTimeToLive(Long timetolive) + { + setTimeToLive(getContext(), timetolive); + } + + /** + * Set value of TimeToLive + * @param context + * @param timetolive + */ + public final void setTimeToLive(com.mendix.systemwideinterfaces.core.IContext context, Long timetolive) + { + getMendixObject().setValue(context, MemberNames.TimeToLive.toString(), timetolive); + } + + /** + * @return value of Title + */ + public final String getTitle() + { + return getTitle(getContext()); + } + + /** + * @param context + * @return value of Title + */ + public final String getTitle(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Title.toString()); + } + + /** + * Set value of Title + * @param title + */ + public final void setTitle(String title) + { + setTitle(getContext(), title); + } + + /** + * Set value of Title + * @param context + * @param title + */ + public final void setTitle(com.mendix.systemwideinterfaces.core.IContext context, String title) + { + getMendixObject().setValue(context, MemberNames.Title.toString(), title); + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final pushnotifications.proxies.GoogleMessage that = (pushnotifications.proxies.GoogleMessage) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "PushNotifications.GoogleMessage"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Override + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/pushnotifications/proxies/Message.java b/test/javasource/pushnotifications/proxies/Message.java new file mode 100755 index 0000000..248cc75 --- /dev/null +++ b/test/javasource/pushnotifications/proxies/Message.java @@ -0,0 +1,523 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package pushnotifications.proxies; + +/** + * + */ +public class Message +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject messageMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "PushNotifications.Message"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + DeviceType("DeviceType"), + To("To"), + MessageId("MessageId"), + Message("Message"), + Failed("Failed"), + FailedReason("FailedReason"), + FailedCount("FailedCount"), + NextTry("NextTry"), + Queued("Queued"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public Message(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "PushNotifications.Message")); + } + + protected Message(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject messageMendixObject) + { + if (messageMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("PushNotifications.Message", messageMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a PushNotifications.Message"); + + this.messageMendixObject = messageMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'Message.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static pushnotifications.proxies.Message initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return pushnotifications.proxies.Message.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.getSudoContext() can be used to obtain sudo access). + */ + public static pushnotifications.proxies.Message initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + if (com.mendix.core.Core.isSubClassOf("PushNotifications.AppleMessage", mendixObject.getType())) + return pushnotifications.proxies.AppleMessage.initialize(context, mendixObject); + + if (com.mendix.core.Core.isSubClassOf("PushNotifications.GoogleMessage", mendixObject.getType())) + return pushnotifications.proxies.GoogleMessage.initialize(context, mendixObject); + + if (com.mendix.core.Core.isSubClassOf("PushNotifications.WindowsMessage", mendixObject.getType())) + return pushnotifications.proxies.WindowsMessage.initialize(context, mendixObject); + + return new pushnotifications.proxies.Message(context, mendixObject); + } + + public static pushnotifications.proxies.Message 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 pushnotifications.proxies.Message.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//PushNotifications.Message" + xpathConstraint)) + result.add(pushnotifications.proxies.Message.initialize(context, obj)); + return result; + } + + /** + * 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()); + } + /** + * Set value of DeviceType + * @param devicetype + */ + public final pushnotifications.proxies.DeviceType getDeviceType() + { + return getDeviceType(getContext()); + } + + /** + * @param context + * @return value of DeviceType + */ + public final pushnotifications.proxies.DeviceType getDeviceType(com.mendix.systemwideinterfaces.core.IContext context) + { + Object obj = getMendixObject().getValue(context, MemberNames.DeviceType.toString()); + if (obj == null) + return null; + + return pushnotifications.proxies.DeviceType.valueOf((java.lang.String) obj); + } + + /** + * Set value of DeviceType + * @param devicetype + */ + public final void setDeviceType(pushnotifications.proxies.DeviceType devicetype) + { + setDeviceType(getContext(), devicetype); + } + + /** + * Set value of DeviceType + * @param context + * @param devicetype + */ + public final void setDeviceType(com.mendix.systemwideinterfaces.core.IContext context, pushnotifications.proxies.DeviceType devicetype) + { + if (devicetype != null) + getMendixObject().setValue(context, MemberNames.DeviceType.toString(), devicetype.toString()); + else + getMendixObject().setValue(context, MemberNames.DeviceType.toString(), null); + } + + /** + * @return value of To + */ + public final String getTo() + { + return getTo(getContext()); + } + + /** + * @param context + * @return value of To + */ + public final String getTo(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.To.toString()); + } + + /** + * Set value of To + * @param to + */ + public final void setTo(String to) + { + setTo(getContext(), to); + } + + /** + * Set value of To + * @param context + * @param to + */ + public final void setTo(com.mendix.systemwideinterfaces.core.IContext context, String to) + { + getMendixObject().setValue(context, MemberNames.To.toString(), to); + } + + /** + * @return value of MessageId + */ + public final String getMessageId() + { + return getMessageId(getContext()); + } + + /** + * @param context + * @return value of MessageId + */ + public final String getMessageId(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.MessageId.toString()); + } + + /** + * Set value of MessageId + * @param messageid + */ + public final void setMessageId(String messageid) + { + setMessageId(getContext(), messageid); + } + + /** + * Set value of MessageId + * @param context + * @param messageid + */ + public final void setMessageId(com.mendix.systemwideinterfaces.core.IContext context, String messageid) + { + getMendixObject().setValue(context, MemberNames.MessageId.toString(), messageid); + } + + /** + * @return value of Message + */ + public final String getMessage() + { + return getMessage(getContext()); + } + + /** + * @param context + * @return value of Message + */ + public final String getMessage(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Message.toString()); + } + + /** + * Set value of Message + * @param message + */ + public final void setMessage(String message) + { + setMessage(getContext(), message); + } + + /** + * Set value of Message + * @param context + * @param message + */ + public final void setMessage(com.mendix.systemwideinterfaces.core.IContext context, String message) + { + getMendixObject().setValue(context, MemberNames.Message.toString(), message); + } + + /** + * @return value of Failed + */ + public final Boolean getFailed() + { + return getFailed(getContext()); + } + + /** + * @param context + * @return value of Failed + */ + public final Boolean getFailed(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Boolean) getMendixObject().getValue(context, MemberNames.Failed.toString()); + } + + /** + * Set value of Failed + * @param failed + */ + public final void setFailed(Boolean failed) + { + setFailed(getContext(), failed); + } + + /** + * Set value of Failed + * @param context + * @param failed + */ + public final void setFailed(com.mendix.systemwideinterfaces.core.IContext context, Boolean failed) + { + getMendixObject().setValue(context, MemberNames.Failed.toString(), failed); + } + + /** + * @return value of FailedReason + */ + public final String getFailedReason() + { + return getFailedReason(getContext()); + } + + /** + * @param context + * @return value of FailedReason + */ + public final String getFailedReason(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.FailedReason.toString()); + } + + /** + * Set value of FailedReason + * @param failedreason + */ + public final void setFailedReason(String failedreason) + { + setFailedReason(getContext(), failedreason); + } + + /** + * Set value of FailedReason + * @param context + * @param failedreason + */ + public final void setFailedReason(com.mendix.systemwideinterfaces.core.IContext context, String failedreason) + { + getMendixObject().setValue(context, MemberNames.FailedReason.toString(), failedreason); + } + + /** + * @return value of FailedCount + */ + public final Integer getFailedCount() + { + return getFailedCount(getContext()); + } + + /** + * @param context + * @return value of FailedCount + */ + public final Integer getFailedCount(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Integer) getMendixObject().getValue(context, MemberNames.FailedCount.toString()); + } + + /** + * Set value of FailedCount + * @param failedcount + */ + public final void setFailedCount(Integer failedcount) + { + setFailedCount(getContext(), failedcount); + } + + /** + * Set value of FailedCount + * @param context + * @param failedcount + */ + public final void setFailedCount(com.mendix.systemwideinterfaces.core.IContext context, Integer failedcount) + { + getMendixObject().setValue(context, MemberNames.FailedCount.toString(), failedcount); + } + + /** + * @return value of NextTry + */ + public final java.util.Date getNextTry() + { + return getNextTry(getContext()); + } + + /** + * @param context + * @return value of NextTry + */ + public final java.util.Date getNextTry(com.mendix.systemwideinterfaces.core.IContext context) + { + return (java.util.Date) getMendixObject().getValue(context, MemberNames.NextTry.toString()); + } + + /** + * Set value of NextTry + * @param nexttry + */ + public final void setNextTry(java.util.Date nexttry) + { + setNextTry(getContext(), nexttry); + } + + /** + * Set value of NextTry + * @param context + * @param nexttry + */ + public final void setNextTry(com.mendix.systemwideinterfaces.core.IContext context, java.util.Date nexttry) + { + getMendixObject().setValue(context, MemberNames.NextTry.toString(), nexttry); + } + + /** + * @return value of Queued + */ + public final Boolean getQueued() + { + return getQueued(getContext()); + } + + /** + * @param context + * @return value of Queued + */ + public final Boolean getQueued(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Boolean) getMendixObject().getValue(context, MemberNames.Queued.toString()); + } + + /** + * Set value of Queued + * @param queued + */ + public final void setQueued(Boolean queued) + { + setQueued(getContext(), queued); + } + + /** + * Set value of Queued + * @param context + * @param queued + */ + public final void setQueued(com.mendix.systemwideinterfaces.core.IContext context, Boolean queued) + { + getMendixObject().setValue(context, MemberNames.Queued.toString(), queued); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return messageMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final pushnotifications.proxies.Message that = (pushnotifications.proxies.Message) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "PushNotifications.Message"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/pushnotifications/proxies/MessagingServiceSettings.java b/test/javasource/pushnotifications/proxies/MessagingServiceSettings.java new file mode 100755 index 0000000..6a08167 --- /dev/null +++ b/test/javasource/pushnotifications/proxies/MessagingServiceSettings.java @@ -0,0 +1,216 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package pushnotifications.proxies; + +/** + * + */ +public class MessagingServiceSettings +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject messagingServiceSettingsMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "PushNotifications.MessagingServiceSettings"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + Enabled("Enabled"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public MessagingServiceSettings(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "PushNotifications.MessagingServiceSettings")); + } + + protected MessagingServiceSettings(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject messagingServiceSettingsMendixObject) + { + if (messagingServiceSettingsMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("PushNotifications.MessagingServiceSettings", messagingServiceSettingsMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a PushNotifications.MessagingServiceSettings"); + + this.messagingServiceSettingsMendixObject = messagingServiceSettingsMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'MessagingServiceSettings.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static pushnotifications.proxies.MessagingServiceSettings initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return pushnotifications.proxies.MessagingServiceSettings.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.getSudoContext() can be used to obtain sudo access). + */ + public static pushnotifications.proxies.MessagingServiceSettings initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + if (com.mendix.core.Core.isSubClassOf("PushNotifications.APNSettings", mendixObject.getType())) + return pushnotifications.proxies.APNSettings.initialize(context, mendixObject); + + if (com.mendix.core.Core.isSubClassOf("PushNotifications.GCMSettings", mendixObject.getType())) + return pushnotifications.proxies.GCMSettings.initialize(context, mendixObject); + + return new pushnotifications.proxies.MessagingServiceSettings(context, mendixObject); + } + + public static pushnotifications.proxies.MessagingServiceSettings 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 pushnotifications.proxies.MessagingServiceSettings.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//PushNotifications.MessagingServiceSettings" + xpathConstraint)) + result.add(pushnotifications.proxies.MessagingServiceSettings.initialize(context, obj)); + return result; + } + + /** + * 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 Enabled + */ + public final Boolean getEnabled() + { + return getEnabled(getContext()); + } + + /** + * @param context + * @return value of Enabled + */ + public final Boolean getEnabled(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Boolean) getMendixObject().getValue(context, MemberNames.Enabled.toString()); + } + + /** + * Set value of Enabled + * @param enabled + */ + public final void setEnabled(Boolean enabled) + { + setEnabled(getContext(), enabled); + } + + /** + * Set value of Enabled + * @param context + * @param enabled + */ + public final void setEnabled(com.mendix.systemwideinterfaces.core.IContext context, Boolean enabled) + { + getMendixObject().setValue(context, MemberNames.Enabled.toString(), enabled); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return messagingServiceSettingsMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final pushnotifications.proxies.MessagingServiceSettings that = (pushnotifications.proxies.MessagingServiceSettings) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "PushNotifications.MessagingServiceSettings"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/pushnotifications/proxies/WindowsMessage.java b/test/javasource/pushnotifications/proxies/WindowsMessage.java new file mode 100755 index 0000000..4e0fa47 --- /dev/null +++ b/test/javasource/pushnotifications/proxies/WindowsMessage.java @@ -0,0 +1,202 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package pushnotifications.proxies; + +/** + * + */ +public class WindowsMessage extends pushnotifications.proxies.Message +{ + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "PushNotifications.WindowsMessage"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + Title("Title"), + URL("URL"), + DeviceType("DeviceType"), + To("To"), + MessageId("MessageId"), + Message("Message"), + Failed("Failed"), + FailedReason("FailedReason"), + FailedCount("FailedCount"), + NextTry("NextTry"), + Queued("Queued"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public WindowsMessage(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "PushNotifications.WindowsMessage")); + } + + protected WindowsMessage(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject windowsMessageMendixObject) + { + super(context, windowsMessageMendixObject); + if (!com.mendix.core.Core.isSubClassOf("PushNotifications.WindowsMessage", windowsMessageMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a PushNotifications.WindowsMessage"); + } + + /** + * @deprecated Use 'WindowsMessage.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static pushnotifications.proxies.WindowsMessage initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return pushnotifications.proxies.WindowsMessage.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.getSudoContext() can be used to obtain sudo access). + */ + public static pushnotifications.proxies.WindowsMessage initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new pushnotifications.proxies.WindowsMessage(context, mendixObject); + } + + public static pushnotifications.proxies.WindowsMessage 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 pushnotifications.proxies.WindowsMessage.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//PushNotifications.WindowsMessage" + xpathConstraint)) + result.add(pushnotifications.proxies.WindowsMessage.initialize(context, obj)); + return result; + } + + /** + * @return value of Title + */ + public final String getTitle() + { + return getTitle(getContext()); + } + + /** + * @param context + * @return value of Title + */ + public final String getTitle(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Title.toString()); + } + + /** + * Set value of Title + * @param title + */ + public final void setTitle(String title) + { + setTitle(getContext(), title); + } + + /** + * Set value of Title + * @param context + * @param title + */ + public final void setTitle(com.mendix.systemwideinterfaces.core.IContext context, String title) + { + getMendixObject().setValue(context, MemberNames.Title.toString(), title); + } + + /** + * @return value of URL + */ + public final String getURL() + { + return getURL(getContext()); + } + + /** + * @param context + * @return value of URL + */ + public final String getURL(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.URL.toString()); + } + + /** + * Set value of URL + * @param url + */ + public final void setURL(String url) + { + setURL(getContext(), url); + } + + /** + * Set value of URL + * @param context + * @param url + */ + public final void setURL(com.mendix.systemwideinterfaces.core.IContext context, String url) + { + getMendixObject().setValue(context, MemberNames.URL.toString(), url); + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final pushnotifications.proxies.WindowsMessage that = (pushnotifications.proxies.WindowsMessage) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "PushNotifications.WindowsMessage"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Override + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/pushnotifications/proxies/constants/Constants.java b/test/javasource/pushnotifications/proxies/constants/Constants.java new file mode 100755 index 0000000..18889c3 --- /dev/null +++ b/test/javasource/pushnotifications/proxies/constants/Constants.java @@ -0,0 +1,22 @@ +// This file was generated by Mendix Modeler 6.0. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package pushnotifications.proxies.constants; + +import com.mendix.core.Core; + +public class Constants +{ + // These are the constants for the PushNotifications module + + public static String getLogNode() + { + return (String)Core.getConfiguration().getConstantValue("PushNotifications.LogNode"); + } + + public static Long getMaxFailedCount() + { + return (Long)Core.getConfiguration().getConstantValue("PushNotifications.MaxFailedCount"); + } +} \ No newline at end of file diff --git a/test/javasource/pushnotifications/proxies/microflows/Microflows.java b/test/javasource/pushnotifications/proxies/microflows/Microflows.java new file mode 100755 index 0000000..bfb6abe --- /dev/null +++ b/test/javasource/pushnotifications/proxies/microflows/Microflows.java @@ -0,0 +1,472 @@ +// This file was generated by Mendix Modeler 6.0. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package pushnotifications.proxies.microflows; + +import java.util.HashMap; +import java.util.Map; +import com.mendix.core.Core; +import com.mendix.core.CoreException; +import com.mendix.systemwideinterfaces.MendixRuntimeException; +import com.mendix.systemwideinterfaces.core.IContext; +import com.mendix.systemwideinterfaces.core.IMendixObject; + +public class Microflows +{ + // These are the microflows for the PushNotifications module + + public static void aCo_Device(IContext context, pushnotifications.proxies.Device _device) + { + try + { + Map params = new HashMap(); + params.put("Device", _device == null ? null : _device.getMendixObject()); + Core.execute(context, "PushNotifications.ACo_Device", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void aCr_Message(IContext context, pushnotifications.proxies.Message _message) + { + try + { + Map params = new HashMap(); + params.put("Message", _message == null ? null : _message.getMendixObject()); + Core.execute(context, "PushNotifications.ACr_Message", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static boolean afterStartup_PushNotifications(IContext context) + { + try + { + Map params = new HashMap(); + return (Boolean)Core.execute(context, "PushNotifications.AfterStartup_PushNotifications", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void background_SendAppleMessages(IContext context, java.util.List _appleMessageList) + { + try + { + Map params = new HashMap(); + java.util.ArrayList listparam_appleMessageList = null; + if (_appleMessageList != null) + { + listparam_appleMessageList = new java.util.ArrayList(); + for (pushnotifications.proxies.AppleMessage obj : _appleMessageList) + listparam_appleMessageList.add(obj.getMendixObject()); + } + params.put("AppleMessageList", listparam_appleMessageList); + Core.execute(context, "PushNotifications.Background_SendAppleMessages", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void background_SendGoogleMessages(IContext context, java.util.List _googleMessageList) + { + try + { + Map params = new HashMap(); + java.util.ArrayList listparam_googleMessageList = null; + if (_googleMessageList != null) + { + listparam_googleMessageList = new java.util.ArrayList(); + for (pushnotifications.proxies.GoogleMessage obj : _googleMessageList) + listparam_googleMessageList.add(obj.getMendixObject()); + } + params.put("GoogleMessageList", listparam_googleMessageList); + Core.execute(context, "PushNotifications.Background_SendGoogleMessages", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void background_SendWindowsMessage(IContext context, java.util.List _windowsMessageList) + { + try + { + Map params = new HashMap(); + java.util.ArrayList listparam_windowsMessageList = null; + if (_windowsMessageList != null) + { + listparam_windowsMessageList = new java.util.ArrayList(); + for (pushnotifications.proxies.WindowsMessage obj : _windowsMessageList) + listparam_windowsMessageList.add(obj.getMendixObject()); + } + params.put("WindowsMessageList", listparam_windowsMessageList); + Core.execute(context, "PushNotifications.Background_SendWindowsMessage", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void createAndQueueMessage(IContext context, pushnotifications.proxies.Device _device, String _messageText, String _title, Long _badge, String _launchImage, String _sound) + { + try + { + Map params = new HashMap(); + params.put("Device", _device == null ? null : _device.getMendixObject()); + params.put("MessageText", _messageText); + params.put("Title", _title); + params.put("Badge", _badge); + params.put("LaunchImage", _launchImage); + params.put("Sound", _sound); + Core.execute(context, "PushNotifications.CreateAndQueueMessage", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void createAndSendMessage(IContext context, pushnotifications.proxies.Device _device, String _messageText, String _title, Long _badge, String _launchImage, String _sound) + { + try + { + Map params = new HashMap(); + params.put("Device", _device == null ? null : _device.getMendixObject()); + params.put("MessageText", _messageText); + params.put("Title", _title); + params.put("Badge", _badge); + params.put("LaunchImage", _launchImage); + params.put("Sound", _sound); + Core.execute(context, "PushNotifications.CreateAndSendMessage", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static pushnotifications.proxies.Message createMessage(IContext context, pushnotifications.proxies.Device _device, String _message, String _title, Long _badge, String _launchImage, String _sound, boolean _queued) + { + try + { + Map params = new HashMap(); + params.put("Device", _device == null ? null : _device.getMendixObject()); + params.put("Message", _message); + params.put("Title", _title); + params.put("Badge", _badge); + params.put("LaunchImage", _launchImage); + params.put("Sound", _sound); + params.put("Queued", _queued); + IMendixObject result = (IMendixObject)Core.execute(context, "PushNotifications.CreateMessage", params); + return result == null ? null : pushnotifications.proxies.Message.initialize(context, result); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static pushnotifications.proxies.AppleMessage dS_CreateAppleMessage(IContext context) + { + try + { + Map params = new HashMap(); + IMendixObject result = (IMendixObject)Core.execute(context, "PushNotifications.DS_CreateAppleMessage", params); + return result == null ? null : pushnotifications.proxies.AppleMessage.initialize(context, result); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static pushnotifications.proxies.AppleMessage dS_CreateAppleMessageForDevice(IContext context, pushnotifications.proxies.Device _device) + { + try + { + Map params = new HashMap(); + params.put("Device", _device == null ? null : _device.getMendixObject()); + IMendixObject result = (IMendixObject)Core.execute(context, "PushNotifications.DS_CreateAppleMessageForDevice", params); + return result == null ? null : pushnotifications.proxies.AppleMessage.initialize(context, result); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static pushnotifications.proxies.GoogleMessage dS_CreateGoogleMessage(IContext context) + { + try + { + Map params = new HashMap(); + IMendixObject result = (IMendixObject)Core.execute(context, "PushNotifications.DS_CreateGoogleMessage", params); + return result == null ? null : pushnotifications.proxies.GoogleMessage.initialize(context, result); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static pushnotifications.proxies.GoogleMessage dS_CreateGoogleMessageForDevice(IContext context, pushnotifications.proxies.Device _device) + { + try + { + Map params = new HashMap(); + params.put("Device", _device == null ? null : _device.getMendixObject()); + IMendixObject result = (IMendixObject)Core.execute(context, "PushNotifications.DS_CreateGoogleMessageForDevice", params); + return result == null ? null : pushnotifications.proxies.GoogleMessage.initialize(context, result); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static pushnotifications.proxies.WindowsMessage dS_CreateWindowsMessage(IContext context, pushnotifications.proxies.Device _device) + { + try + { + Map params = new HashMap(); + params.put("Device", _device == null ? null : _device.getMendixObject()); + IMendixObject result = (IMendixObject)Core.execute(context, "PushNotifications.DS_CreateWindowsMessage", params); + return result == null ? null : pushnotifications.proxies.WindowsMessage.initialize(context, result); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static pushnotifications.proxies.Device dS_Device(IContext context) + { + try + { + Map params = new HashMap(); + IMendixObject result = (IMendixObject)Core.execute(context, "PushNotifications.DS_Device", params); + return result == null ? null : pushnotifications.proxies.Device.initialize(context, result); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static pushnotifications.proxies.APNSettings getAPNSettings(IContext context, pushnotifications.proxies.DTAPMode _dTAPMode) + { + try + { + Map params = new HashMap(); + params.put("DTAPMode", _dTAPMode == null ? null : _dTAPMode.name()); + IMendixObject result = (IMendixObject)Core.execute(context, "PushNotifications.GetAPNSettings", params); + return result == null ? null : pushnotifications.proxies.APNSettings.initialize(context, result); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static pushnotifications.proxies.DTAPMode getDTAPMode(IContext context) + { + try + { + Map params = new HashMap(); + String result = (String)Core.execute(context, "PushNotifications.GetDTAPMode", params); + if (result == null) + return null; + return pushnotifications.proxies.DTAPMode.valueOf(result); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static pushnotifications.proxies.GCMSettings getGCMSettings(IContext context, pushnotifications.proxies.DTAPMode _dTAPMode) + { + try + { + Map params = new HashMap(); + params.put("DTAPMode", _dTAPMode == null ? null : _dTAPMode.name()); + IMendixObject result = (IMendixObject)Core.execute(context, "PushNotifications.GetGCMSettings", params); + return result == null ? null : pushnotifications.proxies.GCMSettings.initialize(context, result); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void iVK_CreateAppleAdministration(IContext context) + { + try + { + Map params = new HashMap(); + Core.execute(context, "PushNotifications.IVK_CreateAppleAdministration", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void iVK_OpenMessageDetails(IContext context, pushnotifications.proxies.Message _message) + { + try + { + Map params = new HashMap(); + params.put("Message", _message == null ? null : _message.getMendixObject()); + Core.execute(context, "PushNotifications.IVK_OpenMessageDetails", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void iVK_OpenSendMessageForm(IContext context, pushnotifications.proxies.Device _device) + { + try + { + Map params = new HashMap(); + params.put("Device", _device == null ? null : _device.getMendixObject()); + Core.execute(context, "PushNotifications.IVK_OpenSendMessageForm", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void iVK_RestartAPN(IContext context, pushnotifications.proxies.APNSettings _aPNSettings) + { + try + { + Map params = new HashMap(); + params.put("APNSettings", _aPNSettings == null ? null : _aPNSettings.getMendixObject()); + Core.execute(context, "PushNotifications.IVK_RestartAPN", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void iVK_RestartGCM(IContext context, pushnotifications.proxies.GCMSettings _gCMSettings) + { + try + { + Map params = new HashMap(); + params.put("GCMSettings", _gCMSettings == null ? null : _gCMSettings.getMendixObject()); + Core.execute(context, "PushNotifications.IVK_RestartGCM", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void iVK_SaveAPNSettings(IContext context, pushnotifications.proxies.APNSettings _aPNSettings) + { + try + { + Map params = new HashMap(); + params.put("APNSettings", _aPNSettings == null ? null : _aPNSettings.getMendixObject()); + Core.execute(context, "PushNotifications.IVK_SaveAPNSettings", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void sE_FeedbackService(IContext context) + { + try + { + Map params = new HashMap(); + Core.execute(context, "PushNotifications.SE_FeedbackService", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void sE_SendQueuedMessages(IContext context) + { + try + { + Map params = new HashMap(); + Core.execute(context, "PushNotifications.SE_SendQueuedMessages", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void sendMessageImmediately(IContext context, pushnotifications.proxies.Message _message) + { + try + { + Map params = new HashMap(); + params.put("Message", _message == null ? null : _message.getMendixObject()); + Core.execute(context, "PushNotifications.SendMessageImmediately", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void sendMessageQueued(IContext context, pushnotifications.proxies.Message _message) + { + try + { + Map params = new HashMap(); + params.put("Message", _message == null ? null : _message.getMendixObject()); + Core.execute(context, "PushNotifications.SendMessageQueued", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } + + public static void sendMessagesImmediately(IContext context, java.util.List _messageList) + { + try + { + Map params = new HashMap(); + java.util.ArrayList listparam_messageList = null; + if (_messageList != null) + { + listparam_messageList = new java.util.ArrayList(); + for (pushnotifications.proxies.Message obj : _messageList) + listparam_messageList.add(obj.getMendixObject()); + } + params.put("MessageList", listparam_messageList); + Core.execute(context, "PushNotifications.SendMessagesImmediately", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } +} \ No newline at end of file diff --git a/test/javasource/system/UserActionsRegistrar.java b/test/javasource/system/UserActionsRegistrar.java index 0f51e23..a5f8a9c 100644 --- a/test/javasource/system/UserActionsRegistrar.java +++ b/test/javasource/system/UserActionsRegistrar.java @@ -124,13 +124,11 @@ public void handleEvent(Event event) component.actionRegistry().registerUserAction(encryption.actions.DecryptString.class); component.actionRegistry().registerUserAction(encryption.actions.EncryptString.class); component.actionRegistry().registerUserAction(pushnotifications.actions.PollFeedbackService.class); - component.actionRegistry().registerUserAction(pushnotifications.actions.QueueMessage.class); component.actionRegistry().registerUserAction(pushnotifications.actions.RestartGCM.class); component.actionRegistry().registerUserAction(pushnotifications.actions.SendAppleMessages.class); component.actionRegistry().registerUserAction(pushnotifications.actions.SendGoogleMessages.class); - component.actionRegistry().registerUserAction(pushnotifications.actions.SendMessage.class); component.actionRegistry().registerUserAction(pushnotifications.actions.SendMessagesInBackground.class); - component.actionRegistry().registerUserAction(pushnotifications.actions.SendWindowsMessage.class); + component.actionRegistry().registerUserAction(pushnotifications.actions.SendWindowMessage.class); component.actionRegistry().registerUserAction(pushnotifications.actions.StartAPN.class); component.actionRegistry().registerUserAction(pushnotifications.actions.StartGCM.class); component.actionRegistry().registerUserAction(pushnotifications.actions.StopAPN.class); diff --git a/test/javasource/system/proxies/DeviceType.java b/test/javasource/system/proxies/DeviceType.java new file mode 100644 index 0000000..b29200f --- /dev/null +++ b/test/javasource/system/proxies/DeviceType.java @@ -0,0 +1,33 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package system.proxies; + +public enum DeviceType +{ + Phone(new String[][] { new String[] { "en_US", "Phone" }, new String[] { "nl_NL", "Phone" } }), + Tablet(new String[][] { new String[] { "en_US", "Tablet" }, new String[] { "nl_NL", "Tablet" } }), + Desktop(new String[][] { new String[] { "en_US", "Desktop" }, new String[] { "nl_NL", "Desktop" } }); + + private java.util.Map captions; + + private DeviceType(String[][] captionStrings) + { + this.captions = new java.util.HashMap(); + for (String[] captionString : captionStrings) + captions.put(captionString[0], captionString[1]); + } + + public String getCaption(String languageCode) + { + if (captions.containsKey(languageCode)) + return captions.get(languageCode); + return captions.get("en_US"); + } + + public String getCaption() + { + return captions.get("en_US"); + } +} diff --git a/test/javasource/system/proxies/Error.java b/test/javasource/system/proxies/Error.java new file mode 100644 index 0000000..7933f09 --- /dev/null +++ b/test/javasource/system/proxies/Error.java @@ -0,0 +1,279 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package system.proxies; + +/** + * + */ +public class Error +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject errorMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "System.Error"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + ErrorType("ErrorType"), + Message("Message"), + Stacktrace("Stacktrace"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public Error(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "System.Error")); + } + + protected Error(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject errorMendixObject) + { + if (errorMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("System.Error", errorMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a System.Error"); + + this.errorMendixObject = errorMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'Error.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static system.proxies.Error initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return system.proxies.Error.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.getSudoContext() can be used to obtain sudo access). + */ + public static system.proxies.Error initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + if (com.mendix.core.Core.isSubClassOf("System.SoapFault", mendixObject.getType())) + return system.proxies.SoapFault.initialize(context, mendixObject); + + return new system.proxies.Error(context, mendixObject); + } + + public static system.proxies.Error 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 system.proxies.Error.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 ErrorType + */ + public final String getErrorType() + { + return getErrorType(getContext()); + } + + /** + * @param context + * @return value of ErrorType + */ + public final String getErrorType(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.ErrorType.toString()); + } + + /** + * Set value of ErrorType + * @param errortype + */ + public final void setErrorType(String errortype) + { + setErrorType(getContext(), errortype); + } + + /** + * Set value of ErrorType + * @param context + * @param errortype + */ + public final void setErrorType(com.mendix.systemwideinterfaces.core.IContext context, String errortype) + { + getMendixObject().setValue(context, MemberNames.ErrorType.toString(), errortype); + } + + /** + * @return value of Message + */ + public final String getMessage() + { + return getMessage(getContext()); + } + + /** + * @param context + * @return value of Message + */ + public final String getMessage(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Message.toString()); + } + + /** + * Set value of Message + * @param message + */ + public final void setMessage(String message) + { + setMessage(getContext(), message); + } + + /** + * Set value of Message + * @param context + * @param message + */ + public final void setMessage(com.mendix.systemwideinterfaces.core.IContext context, String message) + { + getMendixObject().setValue(context, MemberNames.Message.toString(), message); + } + + /** + * @return value of Stacktrace + */ + public final String getStacktrace() + { + return getStacktrace(getContext()); + } + + /** + * @param context + * @return value of Stacktrace + */ + public final String getStacktrace(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Stacktrace.toString()); + } + + /** + * Set value of Stacktrace + * @param stacktrace + */ + public final void setStacktrace(String stacktrace) + { + setStacktrace(getContext(), stacktrace); + } + + /** + * Set value of Stacktrace + * @param context + * @param stacktrace + */ + public final void setStacktrace(com.mendix.systemwideinterfaces.core.IContext context, String stacktrace) + { + getMendixObject().setValue(context, MemberNames.Stacktrace.toString(), stacktrace); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return errorMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final system.proxies.Error that = (system.proxies.Error) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "System.Error"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/system/proxies/EventStatus.java b/test/javasource/system/proxies/EventStatus.java new file mode 100644 index 0000000..0e7bbb3 --- /dev/null +++ b/test/javasource/system/proxies/EventStatus.java @@ -0,0 +1,33 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package system.proxies; + +public enum EventStatus +{ + Running(new String[][] { new String[] { "en_US", "Running" }, new String[] { "nl_NL", "Bezig" } }), + Completed(new String[][] { new String[] { "en_US", "Completed" }, new String[] { "nl_NL", "Voltooid" } }), + Error(new String[][] { new String[] { "en_US", "Error" }, new String[] { "nl_NL", "Fout" } }); + + private java.util.Map captions; + + private EventStatus(String[][] captionStrings) + { + this.captions = new java.util.HashMap(); + for (String[] captionString : captionStrings) + captions.put(captionString[0], captionString[1]); + } + + public String getCaption(String languageCode) + { + if (captions.containsKey(languageCode)) + return captions.get(languageCode); + return captions.get("en_US"); + } + + public String getCaption() + { + return captions.get("en_US"); + } +} diff --git a/test/javasource/system/proxies/FileDocument.java b/test/javasource/system/proxies/FileDocument.java new file mode 100644 index 0000000..0b93683 --- /dev/null +++ b/test/javasource/system/proxies/FileDocument.java @@ -0,0 +1,359 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package system.proxies; + +/** + * + */ +public class FileDocument +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject fileDocumentMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "System.FileDocument"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + FileID("FileID"), + Name("Name"), + DeleteAfterDownload("DeleteAfterDownload"), + Contents("Contents"), + HasContents("HasContents"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public FileDocument(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "System.FileDocument")); + } + + protected FileDocument(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject fileDocumentMendixObject) + { + if (fileDocumentMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("System.FileDocument", fileDocumentMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a System.FileDocument"); + + this.fileDocumentMendixObject = fileDocumentMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'FileDocument.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static system.proxies.FileDocument initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return system.proxies.FileDocument.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.getSudoContext() can be used to obtain sudo access). + */ + public static system.proxies.FileDocument initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + if (com.mendix.core.Core.isSubClassOf("PushNotifications.APNCertificate", mendixObject.getType())) + return pushnotifications.proxies.APNCertificate.initialize(context, mendixObject); + + if (com.mendix.core.Core.isSubClassOf("System.Image", mendixObject.getType())) + return system.proxies.Image.initialize(context, mendixObject); + + return new system.proxies.FileDocument(context, mendixObject); + } + + public static system.proxies.FileDocument 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 system.proxies.FileDocument.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//System.FileDocument" + xpathConstraint)) + result.add(system.proxies.FileDocument.initialize(context, obj)); + return result; + } + + /** + * 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 FileID + */ + public final Long getFileID() + { + return getFileID(getContext()); + } + + /** + * @param context + * @return value of FileID + */ + public final Long getFileID(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Long) getMendixObject().getValue(context, MemberNames.FileID.toString()); + } + + /** + * Set value of FileID + * @param fileid + */ + public final void setFileID(Long fileid) + { + setFileID(getContext(), fileid); + } + + /** + * Set value of FileID + * @param context + * @param fileid + */ + public final void setFileID(com.mendix.systemwideinterfaces.core.IContext context, Long fileid) + { + getMendixObject().setValue(context, MemberNames.FileID.toString(), fileid); + } + + /** + * @return value of Name + */ + public final String getName() + { + return getName(getContext()); + } + + /** + * @param context + * @return value of Name + */ + public final String getName(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Name.toString()); + } + + /** + * Set value of Name + * @param name + */ + public final void setName(String name) + { + setName(getContext(), name); + } + + /** + * Set value of Name + * @param context + * @param name + */ + public final void setName(com.mendix.systemwideinterfaces.core.IContext context, String name) + { + getMendixObject().setValue(context, MemberNames.Name.toString(), name); + } + + /** + * @return value of DeleteAfterDownload + */ + public final Boolean getDeleteAfterDownload() + { + return getDeleteAfterDownload(getContext()); + } + + /** + * @param context + * @return value of DeleteAfterDownload + */ + public final Boolean getDeleteAfterDownload(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Boolean) getMendixObject().getValue(context, MemberNames.DeleteAfterDownload.toString()); + } + + /** + * Set value of DeleteAfterDownload + * @param deleteafterdownload + */ + public final void setDeleteAfterDownload(Boolean deleteafterdownload) + { + setDeleteAfterDownload(getContext(), deleteafterdownload); + } + + /** + * Set value of DeleteAfterDownload + * @param context + * @param deleteafterdownload + */ + public final void setDeleteAfterDownload(com.mendix.systemwideinterfaces.core.IContext context, Boolean deleteafterdownload) + { + getMendixObject().setValue(context, MemberNames.DeleteAfterDownload.toString(), deleteafterdownload); + } + + /** + * The contents of the binary field will be written to the output stream. + * The output stream will be closed at the end. + * + * @param context + * @param outputStream + */ + public final void getContents(com.mendix.systemwideinterfaces.core.IContext context, java.io.OutputStream outputStream) + { + com.mendix.core.objectmanagement.member.MendixBinary binary = (com.mendix.core.objectmanagement.member.MendixBinary) getMendixObject().getMember(context, MemberNames.Contents.toString()); + binary.retrieveValue(context, outputStream); + } + + /** + * Stores the bytes from the given InputStream. + * + * Please note that the input stream will be immediately sent to the data store, + * whether you commit the Mendix object or not. + * + * @param context + * @param inputStream + * @param length the number of bytes in the stream + */ + public final void setContents(com.mendix.systemwideinterfaces.core.IContext context, java.io.InputStream inputStream, long length) + { + if (getMendixObject().getState() == com.mendix.systemwideinterfaces.core.IMendixObject.ObjectState.INSTANTIATED) + try { commit(); } catch (com.mendix.core.CoreException ex) { } + com.mendix.core.objectmanagement.member.MendixBinary binary = (com.mendix.core.objectmanagement.member.MendixBinary) getMendixObject().getMember(context, MemberNames.Contents.toString()); + binary.storeValue(context, inputStream, length); + } + + /** + * @return value of HasContents + */ + public final Boolean getHasContents() + { + return getHasContents(getContext()); + } + + /** + * @param context + * @return value of HasContents + */ + public final Boolean getHasContents(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Boolean) getMendixObject().getValue(context, MemberNames.HasContents.toString()); + } + + /** + * Set value of HasContents + * @param hascontents + */ + public final void setHasContents(Boolean hascontents) + { + setHasContents(getContext(), hascontents); + } + + /** + * Set value of HasContents + * @param context + * @param hascontents + */ + public final void setHasContents(com.mendix.systemwideinterfaces.core.IContext context, Boolean hascontents) + { + getMendixObject().setValue(context, MemberNames.HasContents.toString(), hascontents); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return fileDocumentMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final system.proxies.FileDocument that = (system.proxies.FileDocument) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "System.FileDocument"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/system/proxies/Image.java b/test/javasource/system/proxies/Image.java new file mode 100644 index 0000000..404c2ef --- /dev/null +++ b/test/javasource/system/proxies/Image.java @@ -0,0 +1,161 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package system.proxies; + +/** + * + */ +public class Image extends system.proxies.FileDocument +{ + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "System.Image"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + PublicThumbnailPath("PublicThumbnailPath"), + FileID("FileID"), + Name("Name"), + DeleteAfterDownload("DeleteAfterDownload"), + Contents("Contents"), + HasContents("HasContents"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public Image(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "System.Image")); + } + + protected Image(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject imageMendixObject) + { + super(context, imageMendixObject); + if (!com.mendix.core.Core.isSubClassOf("System.Image", imageMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a System.Image"); + } + + /** + * @deprecated Use 'Image.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static system.proxies.Image initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return system.proxies.Image.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.getSudoContext() can be used to obtain sudo access). + */ + public static system.proxies.Image initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new system.proxies.Image(context, mendixObject); + } + + public static system.proxies.Image 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 system.proxies.Image.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//System.Image" + xpathConstraint)) + result.add(system.proxies.Image.initialize(context, obj)); + return result; + } + + /** + * @return value of PublicThumbnailPath + */ + public final String getPublicThumbnailPath() + { + return getPublicThumbnailPath(getContext()); + } + + /** + * @param context + * @return value of PublicThumbnailPath + */ + public final String getPublicThumbnailPath(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.PublicThumbnailPath.toString()); + } + + /** + * Set value of PublicThumbnailPath + * @param publicthumbnailpath + */ + public final void setPublicThumbnailPath(String publicthumbnailpath) + { + setPublicThumbnailPath(getContext(), publicthumbnailpath); + } + + /** + * Set value of PublicThumbnailPath + * @param context + * @param publicthumbnailpath + */ + public final void setPublicThumbnailPath(com.mendix.systemwideinterfaces.core.IContext context, String publicthumbnailpath) + { + getMendixObject().setValue(context, MemberNames.PublicThumbnailPath.toString(), publicthumbnailpath); + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final system.proxies.Image that = (system.proxies.Image) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "System.Image"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Override + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/system/proxies/Language.java b/test/javasource/system/proxies/Language.java new file mode 100644 index 0000000..8fea1ad --- /dev/null +++ b/test/javasource/system/proxies/Language.java @@ -0,0 +1,247 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package system.proxies; + +/** + * + */ +public class Language +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject languageMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "System.Language"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + Code("Code"), + Description("Description"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public Language(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "System.Language")); + } + + protected Language(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject languageMendixObject) + { + if (languageMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("System.Language", languageMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a System.Language"); + + this.languageMendixObject = languageMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'Language.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static system.proxies.Language initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return system.proxies.Language.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.getSudoContext() can be used to obtain sudo access). + */ + public static system.proxies.Language initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new system.proxies.Language(context, mendixObject); + } + + public static system.proxies.Language 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 system.proxies.Language.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//System.Language" + xpathConstraint)) + result.add(system.proxies.Language.initialize(context, obj)); + return result; + } + + /** + * 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 Code + */ + public final String getCode() + { + return getCode(getContext()); + } + + /** + * @param context + * @return value of Code + */ + public final String getCode(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Code.toString()); + } + + /** + * Set value of Code + * @param code + */ + public final void setCode(String code) + { + setCode(getContext(), code); + } + + /** + * Set value of Code + * @param context + * @param code + */ + public final void setCode(com.mendix.systemwideinterfaces.core.IContext context, String code) + { + getMendixObject().setValue(context, MemberNames.Code.toString(), code); + } + + /** + * @return value of Description + */ + public final String getDescription() + { + return getDescription(getContext()); + } + + /** + * @param context + * @return value of Description + */ + public final String getDescription(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Description.toString()); + } + + /** + * Set value of Description + * @param description + */ + public final void setDescription(String description) + { + setDescription(getContext(), description); + } + + /** + * Set value of Description + * @param context + * @param description + */ + public final void setDescription(com.mendix.systemwideinterfaces.core.IContext context, String description) + { + getMendixObject().setValue(context, MemberNames.Description.toString(), description); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return languageMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final system.proxies.Language that = (system.proxies.Language) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "System.Language"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/system/proxies/ScheduledEventInformation.java b/test/javasource/system/proxies/ScheduledEventInformation.java new file mode 100644 index 0000000..b742376 --- /dev/null +++ b/test/javasource/system/proxies/ScheduledEventInformation.java @@ -0,0 +1,366 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package system.proxies; + +/** + * + */ +public class ScheduledEventInformation +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject scheduledEventInformationMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "System.ScheduledEventInformation"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + Name("Name"), + Description("Description"), + StartTime("StartTime"), + EndTime("EndTime"), + Status("Status"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public ScheduledEventInformation(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "System.ScheduledEventInformation")); + } + + protected ScheduledEventInformation(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject scheduledEventInformationMendixObject) + { + if (scheduledEventInformationMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("System.ScheduledEventInformation", scheduledEventInformationMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a System.ScheduledEventInformation"); + + this.scheduledEventInformationMendixObject = scheduledEventInformationMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'ScheduledEventInformation.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static system.proxies.ScheduledEventInformation initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return system.proxies.ScheduledEventInformation.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.getSudoContext() can be used to obtain sudo access). + */ + public static system.proxies.ScheduledEventInformation initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new system.proxies.ScheduledEventInformation(context, mendixObject); + } + + public static system.proxies.ScheduledEventInformation 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 system.proxies.ScheduledEventInformation.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//System.ScheduledEventInformation" + xpathConstraint)) + result.add(system.proxies.ScheduledEventInformation.initialize(context, obj)); + return result; + } + + /** + * 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 Name + */ + public final String getName() + { + return getName(getContext()); + } + + /** + * @param context + * @return value of Name + */ + public final String getName(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Name.toString()); + } + + /** + * Set value of Name + * @param name + */ + public final void setName(String name) + { + setName(getContext(), name); + } + + /** + * Set value of Name + * @param context + * @param name + */ + public final void setName(com.mendix.systemwideinterfaces.core.IContext context, String name) + { + getMendixObject().setValue(context, MemberNames.Name.toString(), name); + } + + /** + * @return value of Description + */ + public final String getDescription() + { + return getDescription(getContext()); + } + + /** + * @param context + * @return value of Description + */ + public final String getDescription(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Description.toString()); + } + + /** + * Set value of Description + * @param description + */ + public final void setDescription(String description) + { + setDescription(getContext(), description); + } + + /** + * Set value of Description + * @param context + * @param description + */ + public final void setDescription(com.mendix.systemwideinterfaces.core.IContext context, String description) + { + getMendixObject().setValue(context, MemberNames.Description.toString(), description); + } + + /** + * @return value of StartTime + */ + public final java.util.Date getStartTime() + { + return getStartTime(getContext()); + } + + /** + * @param context + * @return value of StartTime + */ + public final java.util.Date getStartTime(com.mendix.systemwideinterfaces.core.IContext context) + { + return (java.util.Date) getMendixObject().getValue(context, MemberNames.StartTime.toString()); + } + + /** + * Set value of StartTime + * @param starttime + */ + public final void setStartTime(java.util.Date starttime) + { + setStartTime(getContext(), starttime); + } + + /** + * Set value of StartTime + * @param context + * @param starttime + */ + public final void setStartTime(com.mendix.systemwideinterfaces.core.IContext context, java.util.Date starttime) + { + getMendixObject().setValue(context, MemberNames.StartTime.toString(), starttime); + } + + /** + * @return value of EndTime + */ + public final java.util.Date getEndTime() + { + return getEndTime(getContext()); + } + + /** + * @param context + * @return value of EndTime + */ + public final java.util.Date getEndTime(com.mendix.systemwideinterfaces.core.IContext context) + { + return (java.util.Date) getMendixObject().getValue(context, MemberNames.EndTime.toString()); + } + + /** + * Set value of EndTime + * @param endtime + */ + public final void setEndTime(java.util.Date endtime) + { + setEndTime(getContext(), endtime); + } + + /** + * Set value of EndTime + * @param context + * @param endtime + */ + public final void setEndTime(com.mendix.systemwideinterfaces.core.IContext context, java.util.Date endtime) + { + getMendixObject().setValue(context, MemberNames.EndTime.toString(), endtime); + } + + /** + * Set value of Status + * @param status + */ + public final system.proxies.EventStatus getStatus() + { + return getStatus(getContext()); + } + + /** + * @param context + * @return value of Status + */ + public final system.proxies.EventStatus getStatus(com.mendix.systemwideinterfaces.core.IContext context) + { + Object obj = getMendixObject().getValue(context, MemberNames.Status.toString()); + if (obj == null) + return null; + + return system.proxies.EventStatus.valueOf((java.lang.String) obj); + } + + /** + * Set value of Status + * @param status + */ + public final void setStatus(system.proxies.EventStatus status) + { + setStatus(getContext(), status); + } + + /** + * Set value of Status + * @param context + * @param status + */ + public final void setStatus(com.mendix.systemwideinterfaces.core.IContext context, system.proxies.EventStatus status) + { + if (status != null) + getMendixObject().setValue(context, MemberNames.Status.toString(), status.toString()); + else + getMendixObject().setValue(context, MemberNames.Status.toString(), null); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return scheduledEventInformationMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final system.proxies.ScheduledEventInformation that = (system.proxies.ScheduledEventInformation) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "System.ScheduledEventInformation"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/system/proxies/Session.java b/test/javasource/system/proxies/Session.java new file mode 100644 index 0000000..86215ec --- /dev/null +++ b/test/javasource/system/proxies/Session.java @@ -0,0 +1,328 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package system.proxies; + +/** + * + */ +public class Session +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject sessionMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "System.Session"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + SessionId("SessionId"), + CSRFToken("CSRFToken"), + LastActive("LastActive"), + Session_User("System.Session_User"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public Session(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "System.Session")); + } + + protected Session(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject sessionMendixObject) + { + if (sessionMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("System.Session", sessionMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a System.Session"); + + this.sessionMendixObject = sessionMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'Session.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static system.proxies.Session initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return system.proxies.Session.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.getSudoContext() can be used to obtain sudo access). + */ + public static system.proxies.Session initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new system.proxies.Session(context, mendixObject); + } + + public static system.proxies.Session 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 system.proxies.Session.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//System.Session" + xpathConstraint)) + result.add(system.proxies.Session.initialize(context, obj)); + return result; + } + + /** + * 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 SessionId + */ + public final String getSessionId() + { + return getSessionId(getContext()); + } + + /** + * @param context + * @return value of SessionId + */ + public final String getSessionId(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.SessionId.toString()); + } + + /** + * Set value of SessionId + * @param sessionid + */ + public final void setSessionId(String sessionid) + { + setSessionId(getContext(), sessionid); + } + + /** + * Set value of SessionId + * @param context + * @param sessionid + */ + public final void setSessionId(com.mendix.systemwideinterfaces.core.IContext context, String sessionid) + { + getMendixObject().setValue(context, MemberNames.SessionId.toString(), sessionid); + } + + /** + * @return value of CSRFToken + */ + public final String getCSRFToken() + { + return getCSRFToken(getContext()); + } + + /** + * @param context + * @return value of CSRFToken + */ + public final String getCSRFToken(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.CSRFToken.toString()); + } + + /** + * Set value of CSRFToken + * @param csrftoken + */ + public final void setCSRFToken(String csrftoken) + { + setCSRFToken(getContext(), csrftoken); + } + + /** + * Set value of CSRFToken + * @param context + * @param csrftoken + */ + public final void setCSRFToken(com.mendix.systemwideinterfaces.core.IContext context, String csrftoken) + { + getMendixObject().setValue(context, MemberNames.CSRFToken.toString(), csrftoken); + } + + /** + * @return value of LastActive + */ + public final java.util.Date getLastActive() + { + return getLastActive(getContext()); + } + + /** + * @param context + * @return value of LastActive + */ + public final java.util.Date getLastActive(com.mendix.systemwideinterfaces.core.IContext context) + { + return (java.util.Date) getMendixObject().getValue(context, MemberNames.LastActive.toString()); + } + + /** + * Set value of LastActive + * @param lastactive + */ + public final void setLastActive(java.util.Date lastactive) + { + setLastActive(getContext(), lastactive); + } + + /** + * Set value of LastActive + * @param context + * @param lastactive + */ + public final void setLastActive(com.mendix.systemwideinterfaces.core.IContext context, java.util.Date lastactive) + { + getMendixObject().setValue(context, MemberNames.LastActive.toString(), lastactive); + } + + /** + * @return value of Session_User + */ + public final system.proxies.User getSession_User() throws com.mendix.core.CoreException + { + return getSession_User(getContext()); + } + + /** + * @param context + * @return value of Session_User + */ + public final system.proxies.User getSession_User(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException + { + system.proxies.User result = null; + com.mendix.systemwideinterfaces.core.IMendixIdentifier identifier = getMendixObject().getValue(context, MemberNames.Session_User.toString()); + if (identifier != null) + result = system.proxies.User.load(context, identifier); + return result; + } + + /** + * Set value of Session_User + * @param session_user + */ + public final void setSession_User(system.proxies.User session_user) + { + setSession_User(getContext(), session_user); + } + + /** + * Set value of Session_User + * @param context + * @param session_user + */ + public final void setSession_User(com.mendix.systemwideinterfaces.core.IContext context, system.proxies.User session_user) + { + if (session_user == null) + getMendixObject().setValue(context, MemberNames.Session_User.toString(), null); + else + getMendixObject().setValue(context, MemberNames.Session_User.toString(), session_user.getMendixObject().getId()); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return sessionMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final system.proxies.Session that = (system.proxies.Session) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "System.Session"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/system/proxies/SoapFault.java b/test/javasource/system/proxies/SoapFault.java new file mode 100644 index 0000000..9d47270 --- /dev/null +++ b/test/javasource/system/proxies/SoapFault.java @@ -0,0 +1,299 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package system.proxies; + +/** + * + */ +public class SoapFault extends system.proxies.Error +{ + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "System.SoapFault"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + Code("Code"), + Reason("Reason"), + Node("Node"), + Role("Role"), + Detail("Detail"), + ErrorType("ErrorType"), + Message("Message"), + Stacktrace("Stacktrace"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public SoapFault(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "System.SoapFault")); + } + + protected SoapFault(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject soapFaultMendixObject) + { + super(context, soapFaultMendixObject); + if (!com.mendix.core.Core.isSubClassOf("System.SoapFault", soapFaultMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a System.SoapFault"); + } + + /** + * @deprecated Use 'SoapFault.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static system.proxies.SoapFault initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return system.proxies.SoapFault.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.getSudoContext() can be used to obtain sudo access). + */ + public static system.proxies.SoapFault initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new system.proxies.SoapFault(context, mendixObject); + } + + public static system.proxies.SoapFault 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 system.proxies.SoapFault.initialize(context, mendixObject); + } + + /** + * @return value of Code + */ + public final String getCode() + { + return getCode(getContext()); + } + + /** + * @param context + * @return value of Code + */ + public final String getCode(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Code.toString()); + } + + /** + * Set value of Code + * @param code + */ + public final void setCode(String code) + { + setCode(getContext(), code); + } + + /** + * Set value of Code + * @param context + * @param code + */ + public final void setCode(com.mendix.systemwideinterfaces.core.IContext context, String code) + { + getMendixObject().setValue(context, MemberNames.Code.toString(), code); + } + + /** + * @return value of Reason + */ + public final String getReason() + { + return getReason(getContext()); + } + + /** + * @param context + * @return value of Reason + */ + public final String getReason(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Reason.toString()); + } + + /** + * Set value of Reason + * @param reason + */ + public final void setReason(String reason) + { + setReason(getContext(), reason); + } + + /** + * Set value of Reason + * @param context + * @param reason + */ + public final void setReason(com.mendix.systemwideinterfaces.core.IContext context, String reason) + { + getMendixObject().setValue(context, MemberNames.Reason.toString(), reason); + } + + /** + * @return value of Node + */ + public final String getNode() + { + return getNode(getContext()); + } + + /** + * @param context + * @return value of Node + */ + public final String getNode(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Node.toString()); + } + + /** + * Set value of Node + * @param node + */ + public final void setNode(String node) + { + setNode(getContext(), node); + } + + /** + * Set value of Node + * @param context + * @param node + */ + public final void setNode(com.mendix.systemwideinterfaces.core.IContext context, String node) + { + getMendixObject().setValue(context, MemberNames.Node.toString(), node); + } + + /** + * @return value of Role + */ + public final String getRole() + { + return getRole(getContext()); + } + + /** + * @param context + * @return value of Role + */ + public final String getRole(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Role.toString()); + } + + /** + * Set value of Role + * @param role + */ + public final void setRole(String role) + { + setRole(getContext(), role); + } + + /** + * Set value of Role + * @param context + * @param role + */ + public final void setRole(com.mendix.systemwideinterfaces.core.IContext context, String role) + { + getMendixObject().setValue(context, MemberNames.Role.toString(), role); + } + + /** + * @return value of Detail + */ + public final String getDetail() + { + return getDetail(getContext()); + } + + /** + * @param context + * @return value of Detail + */ + public final String getDetail(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Detail.toString()); + } + + /** + * Set value of Detail + * @param detail + */ + public final void setDetail(String detail) + { + setDetail(getContext(), detail); + } + + /** + * Set value of Detail + * @param context + * @param detail + */ + public final void setDetail(com.mendix.systemwideinterfaces.core.IContext context, String detail) + { + getMendixObject().setValue(context, MemberNames.Detail.toString(), detail); + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final system.proxies.SoapFault that = (system.proxies.SoapFault) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "System.SoapFault"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Override + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/system/proxies/Statistics.java b/test/javasource/system/proxies/Statistics.java new file mode 100644 index 0000000..b377aef --- /dev/null +++ b/test/javasource/system/proxies/Statistics.java @@ -0,0 +1,365 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package system.proxies; + +/** + * + */ +public class Statistics +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject statisticsMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "System.Statistics"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + MaxNumberOfConcurrentUsers("MaxNumberOfConcurrentUsers"), + MaxNumberOfAnonymousConcurrentUsers("MaxNumberOfAnonymousConcurrentUsers"), + MaxNumberOfNamedUsers("MaxNumberOfNamedUsers"), + LastUpdate("LastUpdate"), + ClusterManager("System.ClusterManager"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public Statistics(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "System.Statistics")); + } + + protected Statistics(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject statisticsMendixObject) + { + if (statisticsMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("System.Statistics", statisticsMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a System.Statistics"); + + this.statisticsMendixObject = statisticsMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'Statistics.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static system.proxies.Statistics initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return system.proxies.Statistics.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.getSudoContext() can be used to obtain sudo access). + */ + public static system.proxies.Statistics initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new system.proxies.Statistics(context, mendixObject); + } + + public static system.proxies.Statistics 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 system.proxies.Statistics.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//System.Statistics" + xpathConstraint)) + result.add(system.proxies.Statistics.initialize(context, obj)); + return result; + } + + /** + * 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 MaxNumberOfConcurrentUsers + */ + public final Integer getMaxNumberOfConcurrentUsers() + { + return getMaxNumberOfConcurrentUsers(getContext()); + } + + /** + * @param context + * @return value of MaxNumberOfConcurrentUsers + */ + public final Integer getMaxNumberOfConcurrentUsers(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Integer) getMendixObject().getValue(context, MemberNames.MaxNumberOfConcurrentUsers.toString()); + } + + /** + * Set value of MaxNumberOfConcurrentUsers + * @param maxnumberofconcurrentusers + */ + public final void setMaxNumberOfConcurrentUsers(Integer maxnumberofconcurrentusers) + { + setMaxNumberOfConcurrentUsers(getContext(), maxnumberofconcurrentusers); + } + + /** + * Set value of MaxNumberOfConcurrentUsers + * @param context + * @param maxnumberofconcurrentusers + */ + public final void setMaxNumberOfConcurrentUsers(com.mendix.systemwideinterfaces.core.IContext context, Integer maxnumberofconcurrentusers) + { + getMendixObject().setValue(context, MemberNames.MaxNumberOfConcurrentUsers.toString(), maxnumberofconcurrentusers); + } + + /** + * @return value of MaxNumberOfAnonymousConcurrentUsers + */ + public final Integer getMaxNumberOfAnonymousConcurrentUsers() + { + return getMaxNumberOfAnonymousConcurrentUsers(getContext()); + } + + /** + * @param context + * @return value of MaxNumberOfAnonymousConcurrentUsers + */ + public final Integer getMaxNumberOfAnonymousConcurrentUsers(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Integer) getMendixObject().getValue(context, MemberNames.MaxNumberOfAnonymousConcurrentUsers.toString()); + } + + /** + * Set value of MaxNumberOfAnonymousConcurrentUsers + * @param maxnumberofanonymousconcurrentusers + */ + public final void setMaxNumberOfAnonymousConcurrentUsers(Integer maxnumberofanonymousconcurrentusers) + { + setMaxNumberOfAnonymousConcurrentUsers(getContext(), maxnumberofanonymousconcurrentusers); + } + + /** + * Set value of MaxNumberOfAnonymousConcurrentUsers + * @param context + * @param maxnumberofanonymousconcurrentusers + */ + public final void setMaxNumberOfAnonymousConcurrentUsers(com.mendix.systemwideinterfaces.core.IContext context, Integer maxnumberofanonymousconcurrentusers) + { + getMendixObject().setValue(context, MemberNames.MaxNumberOfAnonymousConcurrentUsers.toString(), maxnumberofanonymousconcurrentusers); + } + + /** + * @return value of MaxNumberOfNamedUsers + */ + public final Integer getMaxNumberOfNamedUsers() + { + return getMaxNumberOfNamedUsers(getContext()); + } + + /** + * @param context + * @return value of MaxNumberOfNamedUsers + */ + public final Integer getMaxNumberOfNamedUsers(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Integer) getMendixObject().getValue(context, MemberNames.MaxNumberOfNamedUsers.toString()); + } + + /** + * Set value of MaxNumberOfNamedUsers + * @param maxnumberofnamedusers + */ + public final void setMaxNumberOfNamedUsers(Integer maxnumberofnamedusers) + { + setMaxNumberOfNamedUsers(getContext(), maxnumberofnamedusers); + } + + /** + * Set value of MaxNumberOfNamedUsers + * @param context + * @param maxnumberofnamedusers + */ + public final void setMaxNumberOfNamedUsers(com.mendix.systemwideinterfaces.core.IContext context, Integer maxnumberofnamedusers) + { + getMendixObject().setValue(context, MemberNames.MaxNumberOfNamedUsers.toString(), maxnumberofnamedusers); + } + + /** + * @return value of LastUpdate + */ + public final java.util.Date getLastUpdate() + { + return getLastUpdate(getContext()); + } + + /** + * @param context + * @return value of LastUpdate + */ + public final java.util.Date getLastUpdate(com.mendix.systemwideinterfaces.core.IContext context) + { + return (java.util.Date) getMendixObject().getValue(context, MemberNames.LastUpdate.toString()); + } + + /** + * Set value of LastUpdate + * @param lastupdate + */ + public final void setLastUpdate(java.util.Date lastupdate) + { + setLastUpdate(getContext(), lastupdate); + } + + /** + * Set value of LastUpdate + * @param context + * @param lastupdate + */ + public final void setLastUpdate(com.mendix.systemwideinterfaces.core.IContext context, java.util.Date lastupdate) + { + getMendixObject().setValue(context, MemberNames.LastUpdate.toString(), lastupdate); + } + + /** + * @return value of ClusterManager + */ + public final system.proxies.XASInstance getClusterManager() throws com.mendix.core.CoreException + { + return getClusterManager(getContext()); + } + + /** + * @param context + * @return value of ClusterManager + */ + public final system.proxies.XASInstance getClusterManager(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException + { + system.proxies.XASInstance result = null; + com.mendix.systemwideinterfaces.core.IMendixIdentifier identifier = getMendixObject().getValue(context, MemberNames.ClusterManager.toString()); + if (identifier != null) + result = system.proxies.XASInstance.load(context, identifier); + return result; + } + + /** + * Set value of ClusterManager + * @param clustermanager + */ + public final void setClusterManager(system.proxies.XASInstance clustermanager) + { + setClusterManager(getContext(), clustermanager); + } + + /** + * Set value of ClusterManager + * @param context + * @param clustermanager + */ + public final void setClusterManager(com.mendix.systemwideinterfaces.core.IContext context, system.proxies.XASInstance clustermanager) + { + if (clustermanager == null) + getMendixObject().setValue(context, MemberNames.ClusterManager.toString(), null); + else + getMendixObject().setValue(context, MemberNames.ClusterManager.toString(), clustermanager.getMendixObject().getId()); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return statisticsMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final system.proxies.Statistics that = (system.proxies.Statistics) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "System.Statistics"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/system/proxies/TimeZone.java b/test/javasource/system/proxies/TimeZone.java new file mode 100644 index 0000000..18cf0c7 --- /dev/null +++ b/test/javasource/system/proxies/TimeZone.java @@ -0,0 +1,284 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package system.proxies; + +/** + * + */ +public class TimeZone +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject timeZoneMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "System.TimeZone"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + Code("Code"), + Description("Description"), + RawOffset("RawOffset"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public TimeZone(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "System.TimeZone")); + } + + protected TimeZone(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject timeZoneMendixObject) + { + if (timeZoneMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("System.TimeZone", timeZoneMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a System.TimeZone"); + + this.timeZoneMendixObject = timeZoneMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'TimeZone.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static system.proxies.TimeZone initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return system.proxies.TimeZone.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.getSudoContext() can be used to obtain sudo access). + */ + public static system.proxies.TimeZone initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new system.proxies.TimeZone(context, mendixObject); + } + + public static system.proxies.TimeZone 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 system.proxies.TimeZone.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//System.TimeZone" + xpathConstraint)) + result.add(system.proxies.TimeZone.initialize(context, obj)); + return result; + } + + /** + * 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 Code + */ + public final String getCode() + { + return getCode(getContext()); + } + + /** + * @param context + * @return value of Code + */ + public final String getCode(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Code.toString()); + } + + /** + * Set value of Code + * @param code + */ + public final void setCode(String code) + { + setCode(getContext(), code); + } + + /** + * Set value of Code + * @param context + * @param code + */ + public final void setCode(com.mendix.systemwideinterfaces.core.IContext context, String code) + { + getMendixObject().setValue(context, MemberNames.Code.toString(), code); + } + + /** + * @return value of Description + */ + public final String getDescription() + { + return getDescription(getContext()); + } + + /** + * @param context + * @return value of Description + */ + public final String getDescription(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Description.toString()); + } + + /** + * Set value of Description + * @param description + */ + public final void setDescription(String description) + { + setDescription(getContext(), description); + } + + /** + * Set value of Description + * @param context + * @param description + */ + public final void setDescription(com.mendix.systemwideinterfaces.core.IContext context, String description) + { + getMendixObject().setValue(context, MemberNames.Description.toString(), description); + } + + /** + * @return value of RawOffset + */ + public final Integer getRawOffset() + { + return getRawOffset(getContext()); + } + + /** + * @param context + * @return value of RawOffset + */ + public final Integer getRawOffset(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Integer) getMendixObject().getValue(context, MemberNames.RawOffset.toString()); + } + + /** + * Set value of RawOffset + * @param rawoffset + */ + public final void setRawOffset(Integer rawoffset) + { + setRawOffset(getContext(), rawoffset); + } + + /** + * Set value of RawOffset + * @param context + * @param rawoffset + */ + public final void setRawOffset(com.mendix.systemwideinterfaces.core.IContext context, Integer rawoffset) + { + getMendixObject().setValue(context, MemberNames.RawOffset.toString(), rawoffset); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return timeZoneMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final system.proxies.TimeZone that = (system.proxies.TimeZone) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "System.TimeZone"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/system/proxies/User.java b/test/javasource/system/proxies/User.java new file mode 100644 index 0000000..8232551 --- /dev/null +++ b/test/javasource/system/proxies/User.java @@ -0,0 +1,590 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package system.proxies; + +/** + * + */ +public class User +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject userMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "System.User"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + Name("Name"), + Password("Password"), + LastLogin("LastLogin"), + Blocked("Blocked"), + Active("Active"), + FailedLogins("FailedLogins"), + WebServiceUser("WebServiceUser"), + IsAnonymous("IsAnonymous"), + UserRoles("System.UserRoles"), + User_Language("System.User_Language"), + User_TimeZone("System.User_TimeZone"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public User(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "System.User")); + } + + protected User(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject userMendixObject) + { + if (userMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("System.User", userMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a System.User"); + + this.userMendixObject = userMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'User.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static system.proxies.User initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return system.proxies.User.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.getSudoContext() can be used to obtain sudo access). + */ + public static system.proxies.User initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + if (com.mendix.core.Core.isSubClassOf("Administration.Account", mendixObject.getType())) + return administration.proxies.Account.initialize(context, mendixObject); + + return new system.proxies.User(context, mendixObject); + } + + public static system.proxies.User 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 system.proxies.User.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//System.User" + xpathConstraint)) + result.add(system.proxies.User.initialize(context, obj)); + return result; + } + + /** + * 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 Name + */ + public final String getName() + { + return getName(getContext()); + } + + /** + * @param context + * @return value of Name + */ + public final String getName(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Name.toString()); + } + + /** + * Set value of Name + * @param name + */ + public final void setName(String name) + { + setName(getContext(), name); + } + + /** + * Set value of Name + * @param context + * @param name + */ + public final void setName(com.mendix.systemwideinterfaces.core.IContext context, String name) + { + getMendixObject().setValue(context, MemberNames.Name.toString(), name); + } + + /** + * Set value of Password + * @param password + */ + public final void setPassword(String password) + { + setPassword(getContext(), password); + } + + /** + * Set value of Password + * @param context + * @param password + */ + public final void setPassword(com.mendix.systemwideinterfaces.core.IContext context, String password) + { + getMendixObject().setValue(context, MemberNames.Password.toString(), password); + } + + /** + * @return value of LastLogin + */ + public final java.util.Date getLastLogin() + { + return getLastLogin(getContext()); + } + + /** + * @param context + * @return value of LastLogin + */ + public final java.util.Date getLastLogin(com.mendix.systemwideinterfaces.core.IContext context) + { + return (java.util.Date) getMendixObject().getValue(context, MemberNames.LastLogin.toString()); + } + + /** + * Set value of LastLogin + * @param lastlogin + */ + public final void setLastLogin(java.util.Date lastlogin) + { + setLastLogin(getContext(), lastlogin); + } + + /** + * Set value of LastLogin + * @param context + * @param lastlogin + */ + public final void setLastLogin(com.mendix.systemwideinterfaces.core.IContext context, java.util.Date lastlogin) + { + getMendixObject().setValue(context, MemberNames.LastLogin.toString(), lastlogin); + } + + /** + * @return value of Blocked + */ + public final Boolean getBlocked() + { + return getBlocked(getContext()); + } + + /** + * @param context + * @return value of Blocked + */ + public final Boolean getBlocked(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Boolean) getMendixObject().getValue(context, MemberNames.Blocked.toString()); + } + + /** + * Set value of Blocked + * @param blocked + */ + public final void setBlocked(Boolean blocked) + { + setBlocked(getContext(), blocked); + } + + /** + * Set value of Blocked + * @param context + * @param blocked + */ + public final void setBlocked(com.mendix.systemwideinterfaces.core.IContext context, Boolean blocked) + { + getMendixObject().setValue(context, MemberNames.Blocked.toString(), blocked); + } + + /** + * @return value of Active + */ + public final Boolean getActive() + { + return getActive(getContext()); + } + + /** + * @param context + * @return value of Active + */ + public final Boolean getActive(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Boolean) getMendixObject().getValue(context, MemberNames.Active.toString()); + } + + /** + * Set value of Active + * @param active + */ + public final void setActive(Boolean active) + { + setActive(getContext(), active); + } + + /** + * Set value of Active + * @param context + * @param active + */ + public final void setActive(com.mendix.systemwideinterfaces.core.IContext context, Boolean active) + { + getMendixObject().setValue(context, MemberNames.Active.toString(), active); + } + + /** + * @return value of FailedLogins + */ + public final Integer getFailedLogins() + { + return getFailedLogins(getContext()); + } + + /** + * @param context + * @return value of FailedLogins + */ + public final Integer getFailedLogins(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Integer) getMendixObject().getValue(context, MemberNames.FailedLogins.toString()); + } + + /** + * Set value of FailedLogins + * @param failedlogins + */ + public final void setFailedLogins(Integer failedlogins) + { + setFailedLogins(getContext(), failedlogins); + } + + /** + * Set value of FailedLogins + * @param context + * @param failedlogins + */ + public final void setFailedLogins(com.mendix.systemwideinterfaces.core.IContext context, Integer failedlogins) + { + getMendixObject().setValue(context, MemberNames.FailedLogins.toString(), failedlogins); + } + + /** + * @return value of WebServiceUser + */ + public final Boolean getWebServiceUser() + { + return getWebServiceUser(getContext()); + } + + /** + * @param context + * @return value of WebServiceUser + */ + public final Boolean getWebServiceUser(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Boolean) getMendixObject().getValue(context, MemberNames.WebServiceUser.toString()); + } + + /** + * Set value of WebServiceUser + * @param webserviceuser + */ + public final void setWebServiceUser(Boolean webserviceuser) + { + setWebServiceUser(getContext(), webserviceuser); + } + + /** + * Set value of WebServiceUser + * @param context + * @param webserviceuser + */ + public final void setWebServiceUser(com.mendix.systemwideinterfaces.core.IContext context, Boolean webserviceuser) + { + getMendixObject().setValue(context, MemberNames.WebServiceUser.toString(), webserviceuser); + } + + /** + * @return value of IsAnonymous + */ + public final Boolean getIsAnonymous() + { + return getIsAnonymous(getContext()); + } + + /** + * @param context + * @return value of IsAnonymous + */ + public final Boolean getIsAnonymous(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Boolean) getMendixObject().getValue(context, MemberNames.IsAnonymous.toString()); + } + + /** + * Set value of IsAnonymous + * @param isanonymous + */ + public final void setIsAnonymous(Boolean isanonymous) + { + setIsAnonymous(getContext(), isanonymous); + } + + /** + * Set value of IsAnonymous + * @param context + * @param isanonymous + */ + public final void setIsAnonymous(com.mendix.systemwideinterfaces.core.IContext context, Boolean isanonymous) + { + getMendixObject().setValue(context, MemberNames.IsAnonymous.toString(), isanonymous); + } + + /** + * @return value of UserRoles + */ + public final java.util.List getUserRoles() throws com.mendix.core.CoreException + { + return getUserRoles(getContext()); + } + + /** + * @param context + * @return value of UserRoles + */ + @SuppressWarnings("unchecked") + public final java.util.List getUserRoles(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + Object valueObject = getMendixObject().getValue(context, MemberNames.UserRoles.toString()); + if (valueObject == null) + return result; + for (com.mendix.systemwideinterfaces.core.IMendixObject mendixObject : com.mendix.core.Core.retrieveIdList(context, (java.util.List) valueObject)) + result.add(system.proxies.UserRole.initialize(context, mendixObject)); + return result; + } + + /** + * Set value of UserRoles + * @param userroles + */ + public final void setUserRoles(java.util.List userroles) + { + setUserRoles(getContext(), userroles); + } + + /** + * Set value of UserRoles + * @param context + * @param userroles + */ + public final void setUserRoles(com.mendix.systemwideinterfaces.core.IContext context, java.util.List userroles) + { + java.util.List identifiers = new java.util.ArrayList(); + for (system.proxies.UserRole proxyObject : userroles) + identifiers.add(proxyObject.getMendixObject().getId()); + getMendixObject().setValue(context, MemberNames.UserRoles.toString(), identifiers); + } + + /** + * @return value of User_Language + */ + public final system.proxies.Language getUser_Language() throws com.mendix.core.CoreException + { + return getUser_Language(getContext()); + } + + /** + * @param context + * @return value of User_Language + */ + public final system.proxies.Language getUser_Language(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException + { + system.proxies.Language result = null; + com.mendix.systemwideinterfaces.core.IMendixIdentifier identifier = getMendixObject().getValue(context, MemberNames.User_Language.toString()); + if (identifier != null) + result = system.proxies.Language.load(context, identifier); + return result; + } + + /** + * Set value of User_Language + * @param user_language + */ + public final void setUser_Language(system.proxies.Language user_language) + { + setUser_Language(getContext(), user_language); + } + + /** + * Set value of User_Language + * @param context + * @param user_language + */ + public final void setUser_Language(com.mendix.systemwideinterfaces.core.IContext context, system.proxies.Language user_language) + { + if (user_language == null) + getMendixObject().setValue(context, MemberNames.User_Language.toString(), null); + else + getMendixObject().setValue(context, MemberNames.User_Language.toString(), user_language.getMendixObject().getId()); + } + + /** + * @return value of User_TimeZone + */ + public final system.proxies.TimeZone getUser_TimeZone() throws com.mendix.core.CoreException + { + return getUser_TimeZone(getContext()); + } + + /** + * @param context + * @return value of User_TimeZone + */ + public final system.proxies.TimeZone getUser_TimeZone(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException + { + system.proxies.TimeZone result = null; + com.mendix.systemwideinterfaces.core.IMendixIdentifier identifier = getMendixObject().getValue(context, MemberNames.User_TimeZone.toString()); + if (identifier != null) + result = system.proxies.TimeZone.load(context, identifier); + return result; + } + + /** + * Set value of User_TimeZone + * @param user_timezone + */ + public final void setUser_TimeZone(system.proxies.TimeZone user_timezone) + { + setUser_TimeZone(getContext(), user_timezone); + } + + /** + * Set value of User_TimeZone + * @param context + * @param user_timezone + */ + public final void setUser_TimeZone(com.mendix.systemwideinterfaces.core.IContext context, system.proxies.TimeZone user_timezone) + { + if (user_timezone == null) + getMendixObject().setValue(context, MemberNames.User_TimeZone.toString(), null); + else + getMendixObject().setValue(context, MemberNames.User_TimeZone.toString(), user_timezone.getMendixObject().getId()); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return userMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final system.proxies.User that = (system.proxies.User) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "System.User"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/system/proxies/UserRole.java b/test/javasource/system/proxies/UserRole.java new file mode 100644 index 0000000..c57735b --- /dev/null +++ b/test/javasource/system/proxies/UserRole.java @@ -0,0 +1,331 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package system.proxies; + +/** + * + */ +public class UserRole +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject userRoleMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "System.UserRole"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + ModelGUID("ModelGUID"), + Name("Name"), + Description("Description"), + grantableRoles("System.grantableRoles"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public UserRole(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "System.UserRole")); + } + + protected UserRole(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject userRoleMendixObject) + { + if (userRoleMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("System.UserRole", userRoleMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a System.UserRole"); + + this.userRoleMendixObject = userRoleMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'UserRole.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static system.proxies.UserRole initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return system.proxies.UserRole.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.getSudoContext() can be used to obtain sudo access). + */ + public static system.proxies.UserRole initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new system.proxies.UserRole(context, mendixObject); + } + + public static system.proxies.UserRole 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 system.proxies.UserRole.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//System.UserRole" + xpathConstraint)) + result.add(system.proxies.UserRole.initialize(context, obj)); + return result; + } + + /** + * 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 ModelGUID + */ + public final String getModelGUID() + { + return getModelGUID(getContext()); + } + + /** + * @param context + * @return value of ModelGUID + */ + public final String getModelGUID(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.ModelGUID.toString()); + } + + /** + * Set value of ModelGUID + * @param modelguid + */ + public final void setModelGUID(String modelguid) + { + setModelGUID(getContext(), modelguid); + } + + /** + * Set value of ModelGUID + * @param context + * @param modelguid + */ + public final void setModelGUID(com.mendix.systemwideinterfaces.core.IContext context, String modelguid) + { + getMendixObject().setValue(context, MemberNames.ModelGUID.toString(), modelguid); + } + + /** + * @return value of Name + */ + public final String getName() + { + return getName(getContext()); + } + + /** + * @param context + * @return value of Name + */ + public final String getName(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Name.toString()); + } + + /** + * Set value of Name + * @param name + */ + public final void setName(String name) + { + setName(getContext(), name); + } + + /** + * Set value of Name + * @param context + * @param name + */ + public final void setName(com.mendix.systemwideinterfaces.core.IContext context, String name) + { + getMendixObject().setValue(context, MemberNames.Name.toString(), name); + } + + /** + * @return value of Description + */ + public final String getDescription() + { + return getDescription(getContext()); + } + + /** + * @param context + * @return value of Description + */ + public final String getDescription(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.Description.toString()); + } + + /** + * Set value of Description + * @param description + */ + public final void setDescription(String description) + { + setDescription(getContext(), description); + } + + /** + * Set value of Description + * @param context + * @param description + */ + public final void setDescription(com.mendix.systemwideinterfaces.core.IContext context, String description) + { + getMendixObject().setValue(context, MemberNames.Description.toString(), description); + } + + /** + * @return value of grantableRoles + */ + public final java.util.List getgrantableRoles() throws com.mendix.core.CoreException + { + return getgrantableRoles(getContext()); + } + + /** + * @param context + * @return value of grantableRoles + */ + @SuppressWarnings("unchecked") + public final java.util.List getgrantableRoles(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + Object valueObject = getMendixObject().getValue(context, MemberNames.grantableRoles.toString()); + if (valueObject == null) + return result; + for (com.mendix.systemwideinterfaces.core.IMendixObject mendixObject : com.mendix.core.Core.retrieveIdList(context, (java.util.List) valueObject)) + result.add(system.proxies.UserRole.initialize(context, mendixObject)); + return result; + } + + /** + * Set value of grantableRoles + * @param grantableroles + */ + public final void setgrantableRoles(java.util.List grantableroles) + { + setgrantableRoles(getContext(), grantableroles); + } + + /** + * Set value of grantableRoles + * @param context + * @param grantableroles + */ + public final void setgrantableRoles(com.mendix.systemwideinterfaces.core.IContext context, java.util.List grantableroles) + { + java.util.List identifiers = new java.util.ArrayList(); + for (system.proxies.UserRole proxyObject : grantableroles) + identifiers.add(proxyObject.getMendixObject().getId()); + getMendixObject().setValue(context, MemberNames.grantableRoles.toString(), identifiers); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return userRoleMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final system.proxies.UserRole that = (system.proxies.UserRole) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "System.UserRole"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/system/proxies/XASInstance.java b/test/javasource/system/proxies/XASInstance.java new file mode 100644 index 0000000..0b2d3a1 --- /dev/null +++ b/test/javasource/system/proxies/XASInstance.java @@ -0,0 +1,358 @@ +// This file was generated by Mendix Modeler. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package system.proxies; + +/** + * + */ +public class XASInstance +{ + private final com.mendix.systemwideinterfaces.core.IMendixObject xASInstanceMendixObject; + + private final com.mendix.systemwideinterfaces.core.IContext context; + + /** + * Internal name of this entity + */ + public static final java.lang.String entityName = "System.XASInstance"; + + /** + * Enum describing members of this entity + */ + public enum MemberNames + { + XASId("XASId"), + LastUpdate("LastUpdate"), + AllowedNumberOfConcurrentUsers("AllowedNumberOfConcurrentUsers"), + PartnerName("PartnerName"), + CustomerName("CustomerName"); + + private java.lang.String metaName; + + MemberNames(java.lang.String s) + { + metaName = s; + } + + @Override + public java.lang.String toString() + { + return metaName; + } + } + + public XASInstance(com.mendix.systemwideinterfaces.core.IContext context) + { + this(context, com.mendix.core.Core.instantiate(context, "System.XASInstance")); + } + + protected XASInstance(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject xASInstanceMendixObject) + { + if (xASInstanceMendixObject == null) + throw new java.lang.IllegalArgumentException("The given object cannot be null."); + if (!com.mendix.core.Core.isSubClassOf("System.XASInstance", xASInstanceMendixObject.getType())) + throw new java.lang.IllegalArgumentException("The given object is not a System.XASInstance"); + + this.xASInstanceMendixObject = xASInstanceMendixObject; + this.context = context; + } + + /** + * @deprecated Use 'XASInstance.load(IContext, IMendixIdentifier)' instead. + */ + @Deprecated + public static system.proxies.XASInstance initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException + { + return system.proxies.XASInstance.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.getSudoContext() can be used to obtain sudo access). + */ + public static system.proxies.XASInstance initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) + { + return new system.proxies.XASInstance(context, mendixObject); + } + + public static system.proxies.XASInstance 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 system.proxies.XASInstance.initialize(context, mendixObject); + } + + public static java.util.List load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException + { + java.util.List result = new java.util.ArrayList(); + for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//System.XASInstance" + xpathConstraint)) + result.add(system.proxies.XASInstance.initialize(context, obj)); + return result; + } + + /** + * 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 XASId + */ + public final String getXASId() + { + return getXASId(getContext()); + } + + /** + * @param context + * @return value of XASId + */ + public final String getXASId(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.XASId.toString()); + } + + /** + * Set value of XASId + * @param xasid + */ + public final void setXASId(String xasid) + { + setXASId(getContext(), xasid); + } + + /** + * Set value of XASId + * @param context + * @param xasid + */ + public final void setXASId(com.mendix.systemwideinterfaces.core.IContext context, String xasid) + { + getMendixObject().setValue(context, MemberNames.XASId.toString(), xasid); + } + + /** + * @return value of LastUpdate + */ + public final java.util.Date getLastUpdate() + { + return getLastUpdate(getContext()); + } + + /** + * @param context + * @return value of LastUpdate + */ + public final java.util.Date getLastUpdate(com.mendix.systemwideinterfaces.core.IContext context) + { + return (java.util.Date) getMendixObject().getValue(context, MemberNames.LastUpdate.toString()); + } + + /** + * Set value of LastUpdate + * @param lastupdate + */ + public final void setLastUpdate(java.util.Date lastupdate) + { + setLastUpdate(getContext(), lastupdate); + } + + /** + * Set value of LastUpdate + * @param context + * @param lastupdate + */ + public final void setLastUpdate(com.mendix.systemwideinterfaces.core.IContext context, java.util.Date lastupdate) + { + getMendixObject().setValue(context, MemberNames.LastUpdate.toString(), lastupdate); + } + + /** + * @return value of AllowedNumberOfConcurrentUsers + */ + public final Integer getAllowedNumberOfConcurrentUsers() + { + return getAllowedNumberOfConcurrentUsers(getContext()); + } + + /** + * @param context + * @return value of AllowedNumberOfConcurrentUsers + */ + public final Integer getAllowedNumberOfConcurrentUsers(com.mendix.systemwideinterfaces.core.IContext context) + { + return (Integer) getMendixObject().getValue(context, MemberNames.AllowedNumberOfConcurrentUsers.toString()); + } + + /** + * Set value of AllowedNumberOfConcurrentUsers + * @param allowednumberofconcurrentusers + */ + public final void setAllowedNumberOfConcurrentUsers(Integer allowednumberofconcurrentusers) + { + setAllowedNumberOfConcurrentUsers(getContext(), allowednumberofconcurrentusers); + } + + /** + * Set value of AllowedNumberOfConcurrentUsers + * @param context + * @param allowednumberofconcurrentusers + */ + public final void setAllowedNumberOfConcurrentUsers(com.mendix.systemwideinterfaces.core.IContext context, Integer allowednumberofconcurrentusers) + { + getMendixObject().setValue(context, MemberNames.AllowedNumberOfConcurrentUsers.toString(), allowednumberofconcurrentusers); + } + + /** + * @return value of PartnerName + */ + public final String getPartnerName() + { + return getPartnerName(getContext()); + } + + /** + * @param context + * @return value of PartnerName + */ + public final String getPartnerName(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.PartnerName.toString()); + } + + /** + * Set value of PartnerName + * @param partnername + */ + public final void setPartnerName(String partnername) + { + setPartnerName(getContext(), partnername); + } + + /** + * Set value of PartnerName + * @param context + * @param partnername + */ + public final void setPartnerName(com.mendix.systemwideinterfaces.core.IContext context, String partnername) + { + getMendixObject().setValue(context, MemberNames.PartnerName.toString(), partnername); + } + + /** + * @return value of CustomerName + */ + public final String getCustomerName() + { + return getCustomerName(getContext()); + } + + /** + * @param context + * @return value of CustomerName + */ + public final String getCustomerName(com.mendix.systemwideinterfaces.core.IContext context) + { + return (String) getMendixObject().getValue(context, MemberNames.CustomerName.toString()); + } + + /** + * Set value of CustomerName + * @param customername + */ + public final void setCustomerName(String customername) + { + setCustomerName(getContext(), customername); + } + + /** + * Set value of CustomerName + * @param context + * @param customername + */ + public final void setCustomerName(com.mendix.systemwideinterfaces.core.IContext context, String customername) + { + getMendixObject().setValue(context, MemberNames.CustomerName.toString(), customername); + } + + /** + * @return the IMendixObject instance of this proxy for use in the Core interface. + */ + public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() + { + return xASInstanceMendixObject; + } + + /** + * @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; + } + + @Override + public boolean equals(Object obj) + { + if (obj == this) + return true; + + if (obj != null && getClass().equals(obj.getClass())) + { + final system.proxies.XASInstance that = (system.proxies.XASInstance) obj; + return getMendixObject().equals(that.getMendixObject()); + } + return false; + } + + @Override + public int hashCode() + { + return getMendixObject().hashCode(); + } + + /** + * @return String name of this class + */ + public static java.lang.String getType() + { + return "System.XASInstance"; + } + + /** + * @return String GUID from this object, format: ID_0000000000 + * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. + */ + @Deprecated + public java.lang.String getGUID() + { + return "ID_" + getMendixObject().getId().toLong(); + } +} diff --git a/test/javasource/system/proxies/microflows/Microflows.java b/test/javasource/system/proxies/microflows/Microflows.java new file mode 100644 index 0000000..cd655ae --- /dev/null +++ b/test/javasource/system/proxies/microflows/Microflows.java @@ -0,0 +1,30 @@ +// This file was generated by Mendix Modeler 6.0. +// +// WARNING: Code you write here will be lost the next time you deploy the project. + +package system.proxies.microflows; + +import java.util.HashMap; +import java.util.Map; +import com.mendix.core.Core; +import com.mendix.core.CoreException; +import com.mendix.systemwideinterfaces.MendixRuntimeException; +import com.mendix.systemwideinterfaces.core.IContext; + +public class Microflows +{ + // These are the microflows for the System module + + public static void showHomePage(IContext context) + { + try + { + Map params = new HashMap(); + Core.execute(context, "System.ShowHomePage", params); + } + catch (CoreException e) + { + throw new MendixRuntimeException(e); + } + } +} \ No newline at end of file diff --git a/test/widgets/MxPushNotifications.mpk b/test/widgets/MxPushNotifications.mpk index 9524182..d4df92e 100644 Binary files a/test/widgets/MxPushNotifications.mpk and b/test/widgets/MxPushNotifications.mpk differ