Skip to content

Commit

Permalink
#605 Apply filter by module to other Module Items
Browse files Browse the repository at this point in the history
  • Loading branch information
mtnhan committed Nov 21, 2022
1 parent f0e8519 commit 0d3dfbe
Show file tree
Hide file tree
Showing 12 changed files with 95 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -37,6 +38,13 @@ public class WebsocketClientBean extends BaseCrudBean<WebsocketClient, Websocket
public WebsocketClientBean() {
super(WebsocketClient.class);
}

@PostConstruct
@Override
public void init() {
super.init();
this.filters.put("moduleBelonging", this.getUserCurrentModule());
}

@Override
public BaseCrudApi<WebsocketClient, WebsocketClientDto> getBaseCrudApi() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.meveo.admin.action.admin.endpoint;

import javax.annotation.PostConstruct;
import javax.enterprise.context.ConversationScoped;
import javax.inject.Named;

Expand All @@ -11,4 +12,10 @@
@ConversationScoped
public class WsEndpointListBean extends WsEndpointBean {

@PostConstruct
@Override
public void init() {
super.init();
this.filters.put("moduleBelonging", this.getUserCurrentModule());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package org.meveo.admin.action.notification;

import javax.annotation.PostConstruct;
import javax.enterprise.context.ConversationScoped;
import javax.inject.Named;

Expand All @@ -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());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package org.meveo.admin.action.notification;

import javax.annotation.PostConstruct;
import javax.enterprise.context.ConversationScoped;
import javax.inject.Named;

Expand All @@ -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());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package org.meveo.admin.action.notification;

import javax.annotation.PostConstruct;
import javax.enterprise.context.ConversationScoped;
import javax.inject.Named;

Expand All @@ -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());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<NotificationHistory> getPersistenceService() {
return notificationHistoryService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package org.meveo.admin.action.notification;

import javax.annotation.PostConstruct;
import javax.enterprise.context.ConversationScoped;
import javax.inject.Named;

Expand All @@ -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());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package org.meveo.admin.action.notification;

import javax.annotation.PostConstruct;
import javax.enterprise.context.ConversationScoped;
import javax.inject.Named;

Expand All @@ -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());
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.meveo.admin.action.notification;

import javax.annotation.PostConstruct;
import javax.enterprise.context.ConversationScoped;
import javax.inject.Named;

Expand All @@ -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());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package org.meveo.admin.action.wf;

import javax.annotation.PostConstruct;
import javax.enterprise.context.ConversationScoped;
import javax.inject.Named;

Expand All @@ -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());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.*;

import javax.annotation.PostConstruct;
import javax.faces.view.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;
Expand Down Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.meveo.services.job;

import javax.annotation.PostConstruct;
import javax.enterprise.context.ConversationScoped;
import javax.inject.Named;

Expand All @@ -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());
}

}

0 comments on commit 0d3dfbe

Please sign in to comment.