@Override protected void onGo(ComponentContainer container, ScreenData<?> data) { if (data instanceof ProjectScreenData.Edit) { // TODO: Handle edit project } else { if (CurrentProjectVariables.canRead(ProjectRolePermissionCollections.PROJECT)) { super.onGo(container, data); view.displayDashboard(); AppContext.addFragment( ProjectLinkGenerator.generateProjectLink(CurrentProjectVariables.getProject().getId()), AppContext.getMessage(ProjectCommonI18nEnum.VIEW_DASHBOARD)); } else { NotificationUtil.showMessagePermissionAlert(); } } }
public ComponentSearchPanel() { this.project = CurrentProjectVariables.getProject(); }
public MessageSearchPanel() { this.project = CurrentProjectVariables.getProject(); }