Class AbstractGroupingElement<TYPE extends java.lang.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 java.lang.Enum<TYPE> & IGroupingType>
    extends java.lang.Object
    Abstract class that represents a grouping element for Event Analytics.
    Since:
    14.0.0
    Version:
    $Revision: 24979 $ $Date: 2022-05-02 16:48:21 -0300 (Mon, 02 May 2022) $
    • Constructor Detail

      • AbstractGroupingElement

        public AbstractGroupingElement​(org.json.JSONObject groupingJson,
                                       java.lang.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