Skip to content

Commit

Permalink
Merge pull request #14 from EdwinBetanc0urt/feature/menu-action-id-ac…
Browse files Browse the repository at this point in the history
…tion-uuid

feat: Add `action_id` and `action_uuid` on Menu structure.
  • Loading branch information
yamelsenih authored Apr 12, 2024
2 parents 77087f6 + bc8c4bc commit 714b70b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/org/spin/eca56/util/support/documents/Menu.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ private Map<String, Object> convertNode(MTreeNode node) {
referenceDetail.put("description", form.get_Translation(I_AD_Form.COLUMNNAME_Description, getLanguage()));
referenceDetail.put("help", form.get_Translation(I_AD_Form.COLUMNNAME_Help, getLanguage()));
detail.put("form", referenceDetail);
detail.put("action_id", form.getAD_Form_ID());
detail.put("action_uuid", form.getUUID());
}
} else if(menu.getAction().equals(MMenu.ACTION_Window)) {
if(menu.getAD_Window_ID() > 0) {
Expand All @@ -112,6 +114,8 @@ private Map<String, Object> convertNode(MTreeNode node) {
referenceDetail.put("description", window.get_Translation(I_AD_Window.COLUMNNAME_Description, getLanguage()));
referenceDetail.put("help", window.get_Translation(I_AD_Window.COLUMNNAME_Help, getLanguage()));
detail.put("window", referenceDetail);
detail.put("action_id", window.getAD_Window_ID());
detail.put("action_uuid", window.getUUID());
}
} else if(menu.getAction().equals(MMenu.ACTION_Process)
|| menu.getAction().equals(MMenu.ACTION_Report)) {
Expand All @@ -124,6 +128,8 @@ private Map<String, Object> convertNode(MTreeNode node) {
referenceDetail.put("description", process.get_Translation(I_AD_Process.COLUMNNAME_Description, getLanguage()));
referenceDetail.put("help", process.get_Translation(I_AD_Process.COLUMNNAME_Help, getLanguage()));
detail.put("process", referenceDetail);
detail.put("action_id", process.getAD_Process_ID());
detail.put("action_uuid", process.getUUID());
}
} else if(menu.getAction().equals(MMenu.ACTION_SmartBrowse)) {
if(menu.getAD_Browse_ID() > 0) {
Expand All @@ -135,6 +141,8 @@ private Map<String, Object> convertNode(MTreeNode node) {
referenceDetail.put("description", smartBrowser.get_Translation(I_AD_Browse.COLUMNNAME_Description, getLanguage()));
referenceDetail.put("help", smartBrowser.get_Translation(I_AD_Browse.COLUMNNAME_Help, getLanguage()));
detail.put("browse", referenceDetail);
detail.put("action_id", smartBrowser.getAD_Browse_ID());
detail.put("action_uuid", smartBrowser.getUUID());
}
} else if(menu.getAction().equals(MMenu.ACTION_WorkFlow)) {
if(menu.getAD_Workflow_ID() > 0) {
Expand All @@ -146,6 +154,8 @@ private Map<String, Object> convertNode(MTreeNode node) {
referenceDetail.put("description", workflow.get_Translation(I_AD_Workflow.COLUMNNAME_Description, getLanguage()));
referenceDetail.put("help", workflow.get_Translation(I_AD_Workflow.COLUMNNAME_Help, getLanguage()));
detail.put("workflow", referenceDetail);
detail.put("action_id", workflow.getAD_Workflow_ID());
detail.put("action_uuid", workflow.getUUID());
}
}
}
Expand Down

0 comments on commit 714b70b

Please sign in to comment.