Class WebDeliveryThresholdsMetricImpl

    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface WebThresholds
        Returns:
        the number of threshold instances.
      • add

        public WebThreshold add​(java.lang.String tmpId)
        Description copied from interface: WebThresholds
        Adds a new threshold object with the given temporary identifier. The identifier is no longer valid once the manipulation is submitted.
        Specified by:
        add in interface WebThresholds
        Parameters:
        tmpId - a temporary id used to refer to the new threshold
        Returns:
        a new threshold instance
      • reorder

        public void reorder​(java.lang.String[] ids)
        Description copied from interface: WebThresholds
        The array of identifiers define the new relative ordering of thresholds. Each identifier pair is subject to KeyedList.moveByKey(Object, Object). For example, if thresholds "a, b, c, d, e" were reordered with the parameter array "b, e", we would have "a, c, d, b, e".
        Specified by:
        reorder in interface WebThresholds
        Parameters:
        ids - array of threshold identifiers in relative order
      • remove

        public WebThreshold remove​(java.lang.String id)
        Description copied from interface: WebThresholds
        Removes a threshold.
        Specified by:
        remove in interface WebThresholds
        Parameters:
        id - identifier of threshold to remove.
        Returns:
        the threshold instance removed.
      • get

        public WebThreshold get​(java.lang.String id)
        Specified by:
        get in interface WebThresholds
        Parameters:
        id - identifier of the threshold instance
        Returns:
        the threshold instance matching the given identifier.
      • get

        public WebThreshold get​(int index)
        Specified by:
        get in interface WebThresholds
        Parameters:
        index - the index (starting from 0) of the threshold instance in the list
        Returns:
        the threshold instance at the index
      • elements

        public java.util.Enumeration elements()
        Specified by:
        elements in interface WebThresholds
        Returns:
        Enumeration of threshold instances.
      • populate

        public void populate​(WebThresholds thresholds)
        Description copied from interface: WebThresholds
        The populate method will populate the current collection with the contents of the given one. This is primarily intended to be used to propagate changes made to a copy obtained via the createCopy method back to the original.
        Specified by:
        populate in interface WebThresholds
        Parameters:
        thresholds - The source object whose definition will be copied into the current object.
      • createCopy

        public WebThresholds createCopy()
        Description copied from interface: WebThresholds
        Returns a WebThresholds collection that is a copy of the current object. Note that this copy will still be aware of its container, but the container will still be attached to the original WebThresholds object. The primary purpose of this method is to allow the caller to capture the state of the thresholds collection, and then edit the state without affecting the original collection. Typical usage will see this method being used along with the populate method, to move the information back from the copy to the original collection.
        Specified by:
        createCopy in interface WebThresholds
        Returns:
        A WebThresholds collection that is in exactly the same state as the original.
      • isModified

        public boolean isModified()
        Description copied from interface: WebThresholds
        Returns whether the WebThresholds object is modified or not.
        Specified by:
        isModified in interface WebThresholds
        Returns:
        True if the collection is modified, false otherwise.