Skip to content

Commit

Permalink
Remove unused code, remove irrelevant features, remove partial transl…
Browse files Browse the repository at this point in the history
…ation, streamline CMS naming
  • Loading branch information
ivy-tru committed Jun 23, 2023
1 parent 37cd8d4 commit 06891a9
Show file tree
Hide file tree
Showing 11 changed files with 97 additions and 957 deletions.
28 changes: 0 additions & 28 deletions master-detail-demo/cms/cms_de.yaml

This file was deleted.

12 changes: 3 additions & 9 deletions master-detail-demo/cms/cms_en.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
com:
axonivy:
demo:
statefuldatatable:
masterdetail:
enums:
Availability:
IN_ORDER:
Expand Down Expand Up @@ -32,9 +32,9 @@ Dialogs:
com:
axonivy:
demo:
statefuldatatable:
masterdetail:
ui:
StatefulDatatable:
ProductList:
Error:
deliveryDateBeforeOrderDate: Delivery date cannot be before Order date
actions: Actions
Expand All @@ -46,8 +46,6 @@ Dialogs:
copy: Copy
copyProduct: Copy Product
delete: Delete
deleteProfileHeader: Profile Deletion
deleteProfileMessage: Are you sure you want to delete this profile?
deleteSelected: Delete selected
deletionHeader: Deleting products
deletionMessage: Do you want to delete all the selected products?
Expand All @@ -64,14 +62,10 @@ Dialogs:
productDetail: Product Detail
productName: Product Name
products: List of products
profilType: Profile Type
profileName: Profilname
publicProfiles: Public Profiles
quality: Quality
quantity: Quantity
required: 'Required:'
save: Save
saveProfile: Save Profile
state: State
title: Stateful Datatable
validThrough: Valid Through
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,11 @@
public class DaoServiceRegistry {

private static ProductRepoDAO productRepoDAO = null;
private static ProductDatabaseDAO productDatabaseDAO = null;

public static ProductRepoDAO getProductRepoDAO() {
if(productRepoDAO == null) {
productRepoDAO = new ProductRepoDAO();
}
return productRepoDAO;
}

public static ProductDatabaseDAO getProductDatabaseDAO() {
if(productDatabaseDAO == null) {
productDatabaseDAO = new ProductDatabaseDAO();
}
return productDatabaseDAO;
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,4 @@ public static void createAndSaveBusinessTestData() throws ParseException {
DaoServiceRegistry.getProductRepoDAO().save(product);
}
}

public static void createAndSaveDatabaseTestData() throws ParseException {
for(Product product : createTestData()) {
DaoServiceRegistry.getProductDatabaseDAO().save(product);
}
}
}
Loading

0 comments on commit 06891a9

Please sign in to comment.