Class EnablePlanBulkAction

    • Constructor Detail

      • EnablePlanBulkAction

        public EnablePlanBulkAction()
      • EnablePlanBulkAction

        public EnablePlanBulkAction​(@NotNull
                                    @NotNull PlanManager planManager)
    • Method Detail

      • getKey

        @NotNull
        public @NotNull String getKey()
        Description copied from interface: BulkAction
        Unique identifier for the action
        Specified by:
        getKey in interface BulkAction
        Returns:
      • getTitle

        @NotNull
        public @NotNull String getTitle()
        Description copied from interface: BulkAction
        What the label for the bulk action is
        Specified by:
        getTitle in interface BulkAction
        Returns:
      • getChangedItem

        @NotNull
        public @NotNull String getChangedItem()
        Description copied from interface: BulkAction
        Description of what will be changed as a result of this bulk action, also used as table heading to show what will be changed and what it has changed to
        Specified by:
        getChangedItem in interface BulkAction
        Returns:
      • getEditSnippetAction

        @NotNull
        public @NotNull BulkAction.WebWorkAction getEditSnippetAction()
        Description copied from interface: BulkAction
        Action to return the edit snippet (no form tags) edit the value. The snippet will not have access to any plan values
        Specified by:
        getEditSnippetAction in interface BulkAction
        Returns:
      • isApplicable

        public boolean isApplicable​(ImmutablePlan plan)
        Description copied from interface: BulkActionScope
        Returns whether or not a plan is applicable for a certain bulk action, eg. only plans with svn repositories for an action updating svn details
        Specified by:
        isApplicable in interface BulkActionScope
        Returns:
        true if applicable
      • hasUpdates

        public boolean hasUpdates()
        Description copied from interface: BulkAction
        Returns whether or not a plan's details have been updated in order to carry out the bulk action
        Specified by:
        hasUpdates in interface BulkAction
        Returns:
        true if updated
      • populateActionParameters

        public void populateActionParameters​(@NotNull
                                             @NotNull ActionParametersMap actionParameters,
                                             @NotNull
                                             @NotNull ImmutablePlan plan)
        Description copied from interface: BulkAction
        Provides possibility to populate action parameters before executing bulk action.
        Specified by:
        populateActionParameters in interface BulkAction
        Parameters:
        actionParameters - Action parameters to be populated
        plan - Plan which will be subject to action
      • getTotalBulkActionErrors

        public int getTotalBulkActionErrors()
      • setTotalBulkActionErrors

        public void setTotalBulkActionErrors​(int totalBulkActionErrors)
      • getNewDependenciesDisabled

        public boolean getNewDependenciesDisabled​(Map<String,​String[]> params)