Class IgnorableAdminTaskCriteria

    • Constructor Detail

      • IgnorableAdminTaskCriteria

        public IgnorableAdminTaskCriteria​(String key,
                                          SettingsManager settingsManager)
        Constructor
        Parameters:
        key - the key of the admin task
        settingsManager - the settings manager
      • IgnorableAdminTaskCriteria

        public IgnorableAdminTaskCriteria​(String key,
                                          SettingsManager settingsManager,
                                          AdminConfigurationCriteria alternativeCriteria)
        Constructor with an alternative criteria. The task is ignored if either of the criteria is fulfilled.
        Parameters:
        key - the key of the admin task
        settingsManager - the settings manager
        alternativeCriteria - alternative criteria.
    • Method Detail

      • getIgnored

        public boolean getIgnored()
        Specified by:
        getIgnored in interface AdminConfigurationCriteria
        Returns:
        true if the acceptance criteria for this configuration has been ignored by an end-user, false otherwise.
      • setIgnored

        public void setIgnored​(boolean ignore)
        Specified by:
        setIgnored in interface AdminConfigurationCriteria
        Parameters:
        ignore - whether this acceptance criteria should be ignored or not.
      • isMet

        public boolean isMet()
        Description copied from interface: AdminConfigurationCriteria
        Whether the acceptance criteria is met or not for this admin configuration.
        Specified by:
        isMet in interface AdminConfigurationCriteria
        Returns:
        true if the acceptance criteria is met, false otherwise.
      • hasLiveValue

        public boolean hasLiveValue()
        Specified by:
        hasLiveValue in interface AdminConfigurationCriteria
        Returns:
        Whether the value for this configuration criteria should always be queried as opposed to cached. Useful for getting live data instead of an 'accepted value' when an associated task is completed.