private void initTabsWithErrors() {
   tabsWithErrors = new TreeSet<FieldScreenRenderTab>();
   selectedTab =
       new ScreenTabErrorHelper()
           .initialiseTabsWithErrors(
               tabsWithErrors,
               getErrors(),
               getFieldScreenRenderer(),
               ActionContext.getParameters());
 }
  protected void doValidation() {
    try {
      // just checking that the issue exists and that the user has permission to see it.
      getIssue();
    } catch (IssuePermissionException ipe) {
      return;
    } catch (IssueNotFoundException infe) {
      return;
    }

    final IssueInputParameters issueInputParameters =
        new IssueInputParametersImpl(ActionContext.getParameters());
    issueInputParameters.setRetainExistingValuesWhenParameterNotProvided(false);
    transitionResult =
        issueService.validateTransition(
            getRemoteUser(), getIssueObject().getId(), action, issueInputParameters);
    setFieldValuesHolder(transitionResult.getFieldValuesHolder());
    if (!transitionResult.isValid()) {
      addErrorCollection(transitionResult.getErrorCollection());
    }
  }
Exemplo n.º 3
0
 // This is taken out as a protected method such that it can be overridden, and the doValidation()
 // method reused by subclass actions
 protected void populateFromParams(OrderableField orderableField) {
   orderableField.populateFromParams(
       getBulkEditBean().getFieldValuesHolder(), ActionContext.getParameters());
 }
 public boolean isSearchRequested() {
   return ActionContext.getParameters().get("Search") != null;
 }