Skip to content

Commit

Permalink
IVYPORTAL-17428 Check and remove deprecated features from portal - Co…
Browse files Browse the repository at this point in the history
…de + Docs

- Renamed data class property iCase to caze to avoid warning
  • Loading branch information
lttung-axonivy committed Aug 28, 2024
1 parent b343fb3 commit a6037b7
Show file tree
Hide file tree
Showing 19 changed files with 50 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@
"config" : {
"output" : {
"code" : [
"import org.apache.log4j.Level;",
"import com.axonivy.portal.components.ivydata.exception.PortalIvyDataException;",
"import com.axonivy.portal.components.util.ErrorHandler;",
"",
"for (PortalIvyDataException exception : in.exceptions) {",
" ErrorHandler.addError(org.apache.log4j.Priority.ERROR, exception);",
" ErrorHandler.addError(exception);",
"}"
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package com.axonivy.portal.components.util;

import org.apache.log4j.Priority;

import com.axonivy.portal.components.ivydata.exception.PortalIvyDataException;

import ch.ivyteam.ivy.environment.Ivy;

public class ErrorHandler {

private ErrorHandler() {}

public static void addError(Priority priority, PortalIvyDataException error) {
Ivy.log().log(priority, error.toString());
public static void addError(PortalIvyDataException error) {
Ivy.log().error(error.toString());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type" : "String",
"modifiers" : [ "PERSISTENT" ]
}, {
"name" : "iCase",
"name" : "caze",
"type" : "ch.ivyteam.ivy.workflow.ICase",
"modifiers" : [ "PERSISTENT" ]
}, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"processCall" : "Functional Processes/OpenCaseDetailsHook:call(ch.ivyteam.ivy.workflow.ICase,Boolean,Boolean)",
"call" : {
"map" : {
"param.caseView" : "in.iCase",
"param.caseView" : "in.caze",
"param.isShowBackButton" : "true",
"param.isOpenInFrame" : "in.isOpenInFrame"
}
Expand All @@ -59,11 +59,11 @@
"signature" : "openDetails",
"input" : {
"params" : [
{ "name" : "iCase", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" },
{ "name" : "caze", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" },
{ "name" : "isOpenInFrame", "type" : "Boolean", "desc" : "" }
],
"map" : {
"out.iCase" : "param.iCase",
"out.caze" : "param.caze",
"out.isOpenInFrame" : "param.isOpenInFrame"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"type" : "Boolean",
"modifiers" : [ "PERSISTENT" ]
}, {
"name" : "iCase",
"name" : "caze",
"type" : "ch.ivyteam.ivy.workflow.ICase",
"modifiers" : [ "PERSISTENT" ]
}, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"import ch.ivy.addon.portalkit.util.GrowlMessageUtils;",
"",
"if(in.isWorkingOnTask) {",
" GrowlMessageUtils.addFeedbackMessage(in.isTaskFinished, in.iCase);",
" GrowlMessageUtils.addFeedbackMessage(in.isTaskFinished, in.caze);",
"}"
]
}
Expand All @@ -65,10 +65,10 @@
"input" : {
"params" : [
{ "name" : "isWorkingOnTask", "type" : "Boolean", "desc" : "" },
{ "name" : "iCase", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" }
{ "name" : "caze", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" }
],
"map" : {
"out.iCase" : "param.iCase",
"out.caze" : "param.caze",
"out.isWorkingOnTask" : "param.isWorkingOnTask"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type" : "Boolean",
"modifiers" : [ "PERSISTENT" ]
}, {
"name" : "iCase",
"name" : "caze",
"type" : "ch.ivyteam.ivy.workflow.ICase",
"modifiers" : [ "PERSISTENT" ]
} ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"elements" : [ {
"id" : "f0",
"type" : "HtmlDialogStart",
"name" : "start(isTaskFinished, iCase)",
"name" : "start(isTaskFinished, caze)",
"config" : {
"signature" : "start",
"input" : {
"params" : [
{ "name" : "isTaskFinished", "type" : "Boolean", "desc" : "" },
{ "name" : "iCase", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" }
{ "name" : "caze", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" }
],
"map" : {
"out.iCase" : "param.iCase",
"out.caze" : "param.caze",
"out.isTaskFinished" : "param.isTaskFinished"
}
},
Expand Down Expand Up @@ -48,7 +48,7 @@
"code" : [
"import ch.ivy.addon.portalkit.util.GrowlMessageUtils;",
"",
"GrowlMessageUtils.addFeedbackMessage(in.isTaskFinished, in.iCase);"
"GrowlMessageUtils.addFeedbackMessage(in.isTaskFinished, in.caze);"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"namespace" : "ch.ivy.addon.portalkit.component.ActionStep",
"isBusinessCaseData" : false,
"fields" : [ {
"name" : "iCase",
"name" : "caze",
"type" : "ch.ivyteam.ivy.workflow.ICase",
"modifiers" : [ "PERSISTENT" ]
}, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@
"signature" : "openDetails",
"input" : {
"params" : [
{ "name" : "iCase", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" },
{ "name" : "caze", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" },
{ "name" : "inFrame", "type" : "Boolean", "desc" : "" }
],
"map" : {
"out.iCase" : "param.iCase",
"out.inFrame" : "param.inFrame"
"out.inFrame" : "param.inFrame",
"out.caze" : "param.caze"
}
},
"guid" : "1700AAD6E969D73E"
Expand All @@ -78,7 +78,7 @@
"processCall" : "Functional Processes/OpenPortalCaseDetailsHook:callForIFrame(ch.ivyteam.ivy.workflow.ICase,Boolean)",
"call" : {
"map" : {
"param.caseData" : "in.iCase",
"param.caseData" : "in.caze",
"param.isShowBackButton" : "true"
}
}
Expand Down Expand Up @@ -115,7 +115,7 @@
"processCall" : "Functional Processes/OpenPortalCaseDetailsHook:call(ch.ivyteam.ivy.workflow.ICase,Boolean)",
"call" : {
"map" : {
"param.caseData" : "in.iCase",
"param.caseData" : "in.caze",
"param.isShowBackButton" : "true"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"namespace" : "ch.ivy.addon.portalkit.component.CaseItem",
"isBusinessCaseData" : false,
"fields" : [ {
"name" : "iCase",
"name" : "caze",
"type" : "ch.ivyteam.ivy.workflow.ICase",
"modifiers" : [ "PERSISTENT" ]
}, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
}, {
"id" : "f3",
"type" : "HtmlDialogMethodStart",
"name" : "openDetails(iCase)",
"name" : "openDetails(caze)",
"config" : {
"signature" : "openDetails",
"input" : {
"params" : [
{ "name" : "iCase", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" },
{ "name" : "caze", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" },
{ "name" : "inFrame", "type" : "Boolean", "desc" : "" }
],
"map" : {
"out.iCase" : "param.iCase",
"out.caze" : "param.caze",
"out.inFrame" : "param.inFrame"
}
},
Expand All @@ -58,7 +58,7 @@
"processCall" : "Functional Processes/OpenPortalCaseDetailsHook:call(ch.ivyteam.ivy.workflow.ICase,Boolean)",
"call" : {
"map" : {
"param.caseData" : "in.iCase",
"param.caseData" : "in.caze",
"param.isShowBackButton" : "true"
}
}
Expand Down Expand Up @@ -90,7 +90,7 @@
"processCall" : "Functional Processes/OpenPortalCaseDetailsHook:callForIFrame(ch.ivyteam.ivy.workflow.ICase,Boolean)",
"call" : {
"map" : {
"param.caseData" : "in.iCase",
"param.caseData" : "in.caze",
"param.isShowBackButton" : "true"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,5 @@
"$schema" : "https://json-schema.axonivy.com/data-class/11.4.0/data-class.json",
"simpleName" : "CaseItemDescriptionData",
"namespace" : "ch.ivy.addon.portalkit.component.CaseItemDescription",
"isBusinessCaseData" : false,
"fields" : [ {
"name" : "iCase",
"type" : "ch.ivyteam.ivy.workflow.ICase",
"modifiers" : [ "PERSISTENT" ]
} ]
"isBusinessCaseData" : false
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"type" : "org.primefaces.event.FileUploadEvent",
"modifiers" : [ "PERSISTENT" ]
}, {
"name" : "iCase",
"name" : "caze",
"type" : "ch.ivyteam.ivy.workflow.ICase",
"modifiers" : [ "PERSISTENT" ]
}, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
"signature" : "initData",
"input" : {
"params" : [
{ "name" : "iCase", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" }
{ "name" : "caze", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" }
],
"map" : {
"out.iCase" : "param.iCase"
"out.caze" : "param.caze"
}
},
"guid" : "167E9DF0DE4FEF32"
Expand Down Expand Up @@ -293,7 +293,7 @@
"processCall" : "Functional Processes/GetDocumentList:getDocumentList(ch.ivyteam.ivy.workflow.ICase)",
"call" : {
"map" : {
"param.businessCase" : "in.iCase"
"param.businessCase" : "in.caze"
}
},
"output" : {
Expand All @@ -317,7 +317,7 @@
"processCall" : "Functional Processes/GetDocumentList:getDocumentList(ch.ivyteam.ivy.workflow.ICase)",
"call" : {
"map" : {
"param.businessCase" : "in.iCase"
"param.businessCase" : "in.caze"
}
},
"output" : {
Expand All @@ -341,7 +341,7 @@
"processCall" : "Functional Processes/GetDocumentList:getDocumentList(ch.ivyteam.ivy.workflow.ICase)",
"call" : {
"map" : {
"param.businessCase" : "in.iCase"
"param.businessCase" : "in.caze"
}
},
"output" : {
Expand All @@ -365,7 +365,7 @@
"processCall" : "Functional Processes/UploadDocument:uploadDocument(ch.ivyteam.ivy.workflow.ICase,org.primefaces.model.file.UploadedFile,Boolean,Boolean,String)",
"call" : {
"map" : {
"param.businessCase" : "in.iCase",
"param.businessCase" : "in.caze",
"param.uploadedFile" : "in.documentUploadEvent.getFile()"
}
},
Expand All @@ -391,7 +391,7 @@
"processCall" : "Functional Processes/DownloadDocument:downloadDocument(ch.ivyteam.ivy.workflow.ICase,com.axonivy.portal.components.ivydata.bo.IvyDocument)",
"call" : {
"map" : {
"param.bussinessCase" : "in.iCase",
"param.bussinessCase" : "in.caze",
"param.document" : "in.document"
}
},
Expand All @@ -417,7 +417,7 @@
"processCall" : "Functional Processes/DeleteDocument:deleteDocument(ch.ivyteam.ivy.workflow.ICase,com.axonivy.portal.components.ivydata.bo.IvyDocument)",
"call" : {
"map" : {
"param.businessCase" : "in.iCase",
"param.businessCase" : "in.caze",
"param.document" : "in.document"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"namespace" : "ch.ivy.addon.portalkit.component.CaseItemRelatedCases",
"isBusinessCaseData" : false,
"fields" : [ {
"name" : "iCase",
"name" : "caze",
"type" : "ch.ivyteam.ivy.workflow.ICase",
"modifiers" : [ "PERSISTENT" ]
}, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"code" : [
"import ch.ivy.addon.portalkit.datamodel.internal.RelatedCaseLazyDataModel;",
"",
"in.caseLazyDataModel = new RelatedCaseLazyDataModel(in.iCase.getId());"
"in.caseLazyDataModel = new RelatedCaseLazyDataModel(in.caze.getId());"
]
}
},
Expand All @@ -187,10 +187,10 @@
"signature" : "initData",
"input" : {
"params" : [
{ "name" : "iCase", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" }
{ "name" : "caze", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" }
],
"map" : {
"out.iCase" : "param.iCase"
"out.caze" : "param.caze"
}
},
"guid" : "177F659A0ABC7738"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type" : "Boolean",
"modifiers" : [ "PERSISTENT" ]
}, {
"name" : "iCase",
"name" : "caze",
"type" : "ch.ivyteam.ivy.workflow.ICase",
"modifiers" : [ "PERSISTENT" ]
} ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
"signature" : "leave",
"input" : {
"params" : [
{ "name" : "iCase", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" }
{ "name" : "caze", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" }
],
"map" : {
"out.iCase" : "param.iCase"
"out.caze" : "param.caze"
}
},
"guid" : "16FA866C14936E0D"
Expand All @@ -56,10 +56,10 @@
"signature" : "reserve",
"input" : {
"params" : [
{ "name" : "iCase", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" }
{ "name" : "caze", "type" : "ch.ivyteam.ivy.workflow.ICase", "desc" : "" }
],
"map" : {
"out.iCase" : "param.iCase"
"out.caze" : "param.caze"
}
},
"guid" : "16FA866CC3BA9742"
Expand All @@ -83,7 +83,7 @@
"code" : [
"import ch.ivy.addon.portalkit.util.GrowlMessageUtils;",
"",
"GrowlMessageUtils.addFeedbackMessage(in.isTaskFinished, in.iCase);"
"GrowlMessageUtils.addFeedbackMessage(in.isTaskFinished, in.caze);"
]
}
},
Expand Down

0 comments on commit a6037b7

Please sign in to comment.