diff --git a/meveo-admin-web/src/main/java/org/meveo/admin/action/admin/endpoint/WebsocketClientBean.java b/meveo-admin-web/src/main/java/org/meveo/admin/action/admin/endpoint/WebsocketClientBean.java index 9c04a89c3..01635f915 100644 --- a/meveo-admin-web/src/main/java/org/meveo/admin/action/admin/endpoint/WebsocketClientBean.java +++ b/meveo-admin-web/src/main/java/org/meveo/admin/action/admin/endpoint/WebsocketClientBean.java @@ -3,6 +3,7 @@ */ package org.meveo.admin.action.admin.endpoint; +import javax.annotation.PostConstruct; import javax.faces.view.ViewScoped; import javax.inject.Inject; import javax.inject.Named; @@ -37,6 +38,13 @@ public class WebsocketClientBean extends BaseCrudBean getBaseCrudApi() { diff --git a/meveo-admin-web/src/main/java/org/meveo/admin/action/admin/endpoint/WsEndpointListBean.java b/meveo-admin-web/src/main/java/org/meveo/admin/action/admin/endpoint/WsEndpointListBean.java index ee4d24bc4..e29a42da1 100644 --- a/meveo-admin-web/src/main/java/org/meveo/admin/action/admin/endpoint/WsEndpointListBean.java +++ b/meveo-admin-web/src/main/java/org/meveo/admin/action/admin/endpoint/WsEndpointListBean.java @@ -1,5 +1,6 @@ package org.meveo.admin.action.admin.endpoint; +import javax.annotation.PostConstruct; import javax.enterprise.context.ConversationScoped; import javax.inject.Named; @@ -11,4 +12,10 @@ @ConversationScoped public class WsEndpointListBean extends WsEndpointBean { + @PostConstruct + @Override + public void init() { + super.init(); + this.filters.put("moduleBelonging", this.getUserCurrentModule()); + } } diff --git a/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/EmailNotificationListBean.java b/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/EmailNotificationListBean.java index 1f69c05d6..e9a73e8cd 100644 --- a/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/EmailNotificationListBean.java +++ b/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/EmailNotificationListBean.java @@ -18,6 +18,7 @@ */ package org.meveo.admin.action.notification; +import javax.annotation.PostConstruct; import javax.enterprise.context.ConversationScoped; import javax.inject.Named; @@ -26,4 +27,11 @@ public class EmailNotificationListBean extends EmailNotificationBean { private static final long serialVersionUID = -3037867704912788042L; + + @PostConstruct + @Override + public void init() { + super.init(); + this.filters.put("moduleBelonging", this.getUserCurrentModule()); + } } \ No newline at end of file diff --git a/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/InboundRequestListBean.java b/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/InboundRequestListBean.java index bab6366b2..0b58f5d78 100644 --- a/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/InboundRequestListBean.java +++ b/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/InboundRequestListBean.java @@ -18,6 +18,7 @@ */ package org.meveo.admin.action.notification; +import javax.annotation.PostConstruct; import javax.enterprise.context.ConversationScoped; import javax.inject.Named; @@ -26,4 +27,11 @@ public class InboundRequestListBean extends InboundRequestBean { private static final long serialVersionUID = -3037867704912788043L; + + @PostConstruct + @Override + public void init() { + super.init(); + this.filters.put("moduleBelonging", this.getUserCurrentModule()); + } } \ No newline at end of file diff --git a/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/JobTriggerListBean.java b/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/JobTriggerListBean.java index f746bf957..1eb3a3b0f 100644 --- a/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/JobTriggerListBean.java +++ b/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/JobTriggerListBean.java @@ -18,6 +18,7 @@ */ package org.meveo.admin.action.notification; +import javax.annotation.PostConstruct; import javax.enterprise.context.ConversationScoped; import javax.inject.Named; @@ -26,4 +27,11 @@ public class JobTriggerListBean extends JobTriggerBean { private static final long serialVersionUID = -3037867704912788045L; + + @PostConstruct + @Override + public void init() { + super.init(); + this.filters.put("moduleBelonging", this.getUserCurrentModule()); + } } \ No newline at end of file diff --git a/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/NotificationHistoryBean.java b/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/NotificationHistoryBean.java index 2d3f362ee..5cf7d12ac 100644 --- a/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/NotificationHistoryBean.java +++ b/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/NotificationHistoryBean.java @@ -5,6 +5,7 @@ import java.util.HashMap; import java.util.Map; +import javax.annotation.PostConstruct; import javax.faces.view.ViewScoped; import javax.inject.Inject; import javax.inject.Named; @@ -54,6 +55,13 @@ public NotificationHistoryBean() { super(NotificationHistory.class); } + @PostConstruct + @Override + public void init() { + super.init(); + this.filters.put("moduleBelonging", this.getUserCurrentModule()); + } + @Override protected IPersistenceService getPersistenceService() { return notificationHistoryService; diff --git a/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/NotificationListBean.java b/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/NotificationListBean.java index 79d4f80aa..98bffcc9e 100644 --- a/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/NotificationListBean.java +++ b/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/NotificationListBean.java @@ -18,6 +18,7 @@ */ package org.meveo.admin.action.notification; +import javax.annotation.PostConstruct; import javax.enterprise.context.ConversationScoped; import javax.inject.Named; @@ -26,4 +27,11 @@ public class NotificationListBean extends NotificationBean { private static final long serialVersionUID = -3037867704912788045L; + + @PostConstruct + @Override + public void init() { + super.init(); + this.filters.put("moduleBelonging", this.getUserCurrentModule()); + } } \ No newline at end of file diff --git a/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/WebHookListBean.java b/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/WebHookListBean.java index 1d29ea1a1..8a070f175 100644 --- a/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/WebHookListBean.java +++ b/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/WebHookListBean.java @@ -18,6 +18,7 @@ */ package org.meveo.admin.action.notification; +import javax.annotation.PostConstruct; import javax.enterprise.context.ConversationScoped; import javax.inject.Named; @@ -26,4 +27,11 @@ public class WebHookListBean extends WebHookBean { private static final long serialVersionUID = -3037867704912788046L; + + @PostConstruct + @Override + public void init() { + super.init(); + this.filters.put("moduleBelonging", this.getUserCurrentModule()); + } } \ No newline at end of file diff --git a/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/WebNotificationListBean.java b/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/WebNotificationListBean.java index f401499bc..19f7d2ebd 100644 --- a/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/WebNotificationListBean.java +++ b/meveo-admin-web/src/main/java/org/meveo/admin/action/notification/WebNotificationListBean.java @@ -1,5 +1,6 @@ package org.meveo.admin.action.notification; +import javax.annotation.PostConstruct; import javax.enterprise.context.ConversationScoped; import javax.inject.Named; @@ -13,4 +14,11 @@ public class WebNotificationListBean extends WebNotificationBean { private static final long serialVersionUID = -7160105377348715515L; + @PostConstruct + @Override + public void init() { + super.init(); + this.filters.put("moduleBelonging", this.getUserCurrentModule()); + } + } diff --git a/meveo-admin-web/src/main/java/org/meveo/admin/action/wf/WorkflowListBean.java b/meveo-admin-web/src/main/java/org/meveo/admin/action/wf/WorkflowListBean.java index 55f4fee87..b71ddda29 100644 --- a/meveo-admin-web/src/main/java/org/meveo/admin/action/wf/WorkflowListBean.java +++ b/meveo-admin-web/src/main/java/org/meveo/admin/action/wf/WorkflowListBean.java @@ -18,6 +18,7 @@ */ package org.meveo.admin.action.wf; +import javax.annotation.PostConstruct; import javax.enterprise.context.ConversationScoped; import javax.inject.Named; @@ -26,4 +27,11 @@ public class WorkflowListBean extends WorkflowBean { private static final long serialVersionUID = -3037867704912788052L; + + @PostConstruct + @Override + public void init() { + super.init(); + this.filters.put("moduleBelonging", this.getUserCurrentModule()); + } } \ No newline at end of file diff --git a/meveo-admin-web/src/main/java/org/meveo/services/job/JobInstanceBean.java b/meveo-admin-web/src/main/java/org/meveo/services/job/JobInstanceBean.java index 90eccd796..631b45a92 100644 --- a/meveo-admin-web/src/main/java/org/meveo/services/job/JobInstanceBean.java +++ b/meveo-admin-web/src/main/java/org/meveo/services/job/JobInstanceBean.java @@ -2,6 +2,7 @@ import java.util.*; +import javax.annotation.PostConstruct; import javax.faces.view.ViewScoped; import javax.inject.Inject; import javax.inject.Named; @@ -62,6 +63,13 @@ public JobInstanceBean() { super(JobInstance.class); } + @PostConstruct + @Override + public void init() { + super.init(); + this.filters.put("moduleBelonging", this.getUserCurrentModule()); + } + @Override public JobInstance initEntity() { entity = super.initEntity(); diff --git a/meveo-admin-web/src/main/java/org/meveo/services/job/TimerEntityListBean.java b/meveo-admin-web/src/main/java/org/meveo/services/job/TimerEntityListBean.java index 46e2a6f7a..c77cb45a8 100644 --- a/meveo-admin-web/src/main/java/org/meveo/services/job/TimerEntityListBean.java +++ b/meveo-admin-web/src/main/java/org/meveo/services/job/TimerEntityListBean.java @@ -1,5 +1,6 @@ package org.meveo.services.job; +import javax.annotation.PostConstruct; import javax.enterprise.context.ConversationScoped; import javax.inject.Named; @@ -12,4 +13,11 @@ public class TimerEntityListBean extends TimerEntityBean { */ private static final long serialVersionUID = 291083155570451308L; + @PostConstruct + @Override + public void init() { + super.init(); + this.filters.put("moduleBelonging", this.getUserCurrentModule()); + } + }