Ejemplo n.º 1
0
 @Override
 protected void onGo(ComponentContainer container, ScreenData<?> data) {
   if (CurrentProjectVariables.canRead(ProjectRolePermissionCollections.MILESTONES)) {
     super.onGo(container, data);
     view.displayStatus(OptionI18nEnum.MilestoneStatus.InProgress);
     AppContext.addFragment(
         "project/milestone/list/"
             + GenericLinkUtils.encodeParam(CurrentProjectVariables.getProjectId()),
         AppContext.getMessage(MilestoneI18nEnum.VIEW_LIST_TITLE));
   } else {
     NotificationUtil.showMessagePermissionAlert();
   }
 }
Ejemplo n.º 2
0
  @Override
  protected void onGo(ComponentContainer container, ScreenData<?> data) {
    if (CurrentProjectVariables.canRead(ProjectRolePermissionCollections.BUGS)) {
      InsideProjectNavigationMenu projectModuleMenu =
          (InsideProjectNavigationMenu)
              ((MobileNavigationManager) UI.getCurrent().getContent()).getNavigationMenu();
      projectModuleMenu.selectButton(AppContext.getMessage(ProjectCommonI18nEnum.VIEW_BUG));

      BugFilterParameter param = (BugFilterParameter) data.getParams();
      super.onGo(container, data);
      this.doSearch(param.getSearchCriteria());
      AppContext.addFragment(
          "project/bug/list/"
              + GenericLinkUtils.encodeParam(CurrentProjectVariables.getProjectId()),
          AppContext.getMessage(BugI18nEnum.VIEW_LIST_TITLE));

    } else {
      NotificationUtil.showMessagePermissionAlert();
    }
  }