Skip to content

Commit 7db0c3e

Browse files
authored
Merge pull request #69 from mendix/dat/remove-deprecated-method-calls
[DAT-4108] Remove deprecated methods
2 parents 94843b3 + 22847b0 commit 7db0c3e

5 files changed

Lines changed: 8 additions & 7 deletions

File tree

Audit trail.mpr

0 Bytes
Binary file not shown.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=10.1.0
1+
version=10.1.1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

javasource/audittrail/log/CreateLogObject.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public static IMendixObject createAuditLogItems(final IMendixObject auditableObj
110110
String association = null;
111111

112112
// Set the association for the AuditableObject inheriting from superclass
113-
if (Core.isSubClassOf(AudittrailSuperClass.getType(), auditableObject.getType())) {
113+
if (auditableObject.getMetaObject().isSubClassOf(AudittrailSuperClass.getType())) {
114114
logObject.setValue(sudoContext, Log.MemberNames.Log_AudittrailSuperClass.toString(),
115115
auditableObject.getId());
116116
} else {
@@ -122,13 +122,13 @@ public static IMendixObject createAuditLogItems(final IMendixObject auditableObj
122122
if (association == null) {
123123
final IMetaObject imObject = Core.getMetaObject(auditableObject.getType());
124124
for (final IMetaAssociation ass : imObject.getMetaAssociationsParent()) {
125-
if (Core.isSubClassOf(Log.getType(), ass.getChild().getId())
125+
if (ass.getChild().isSubClassOf(Log.getType())
126126
&& ass.getType() == AssociationType.REFERENCESET) {
127127
association = ass.getName();
128128

129129
// Ticket 56528
130130
final MendixObjectReferenceSet logReferenceSet = (MendixObjectReferenceSet) auditableObject
131-
.getMember(sudoContext, association);
131+
.getMember(association);
132132
logReferenceSet.addValue(sudoContext, logObject.getId());
133133

134134
setAssociationName(auditableObject.getType(), association);
@@ -138,7 +138,7 @@ public static IMendixObject createAuditLogItems(final IMendixObject auditableObj
138138
// If not found, try to look up the child of the association
139139
if (association == null) {
140140
for (final IMetaAssociation ass : imObject.getMetaAssociationsChild()) {
141-
if (Core.isSubClassOf(Log.getType(), ass.getParent().getId())
141+
if (ass.getParent().isSubClassOf(Log.getType())
142142
&& !ass.getName().equals(Log.MemberNames.Log_User.toString())
143143
&& (ass.getType() == AssociationType.REFERENCESET
144144
|| ass.getOwner() != AssociationOwner.BOTH)) {
@@ -156,7 +156,7 @@ public static IMendixObject createAuditLogItems(final IMendixObject auditableObj
156156
else {
157157
try {
158158
if (auditableObject.hasMember(association)) {
159-
((MendixObjectReferenceSet) auditableObject.getMember(context, association))
159+
((MendixObjectReferenceSet) auditableObject.getMember(association))
160160
.addValue(sudoContext, logObject.getId());
161161
} else if (logObject.hasMember(association)) {
162162
logObject.setValue(sudoContext, association, auditableObject.getId());
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
We removed usages of deprecated methods in `com.mendix.core.Core` from the implementation that were missed in the previous version

0 commit comments

Comments
 (0)