Class AbstractGroupingElement<TYPE extends Enum<TYPE> & IGroupingType>

  • Type Parameters:
    TYPE - the enum type that identifies which type of grouping is performed.
    Direct Known Subclasses:
    GroupBy, Metric

    public abstract class AbstractGroupingElement<TYPE extends Enum<TYPE> & IGroupingType>
    extends Object
    Abstract class that represents a grouping element for Event Analytics.
    Since:
    14.0.0
    Version:
    $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
    • Constructor Detail

      • AbstractGroupingElement

        public AbstractGroupingElement​(org.json.JSONObject groupingJson,
                                       Class<TYPE> enumClass)
                                throws PortalException
        Creates a new instance.
        Parameters:
        groupingJson - the JSON representation of this element.
        enumClass - the enum class.
        Throws:
        PortalException
        Since:
        14.2.0
    • Method Detail

      • getGroupingTyping

        public TYPE getGroupingTyping()
        Returns the grouping type.
        Returns:
        the grouping type.
        Since:
        14.0.0
      • getGroupingField

        public IMonitorField getGroupingField()
        Returns the grouping field (if any).
        Returns:
        the grouping field (if any).
        Since:
        14.0.0
      • getGroupingUserAttribute

        public UserAttribute getGroupingUserAttribute()
        Returns the grouping user attribute, if any.
        Returns:
        the grouping user attribute, if any.
        Since:
        14.2.0