Enum UserMonitorFieldsCSVEnum

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<UserMonitorFieldsCSVEnum>

    public enum UserMonitorFieldsCSVEnum
    extends java.lang.Enum<UserMonitorFieldsCSVEnum>
    A enum to organize the options field for CSV Download User Segmentation.
    Since:
    11.1.0
    Version:
    $Revision: 22640 $ $Date: 2019-04-05 18:31:52 -0300 (Fri, 05 Apr 2019) $
    • Method Detail

      • values

        public static UserMonitorFieldsCSVEnum[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (UserMonitorFieldsCSVEnum c : UserMonitorFieldsCSVEnum.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static UserMonitorFieldsCSVEnum valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getLabel

        public java.lang.String getLabel​(IResource resource)
                                  throws PortalException
        Get localized label for the field.
        Parameters:
        resource - resource of strings.
        Returns:
        the localized label.
        Throws:
        PortalException
        Since:
        11.1.0
      • getLabel

        public static java.lang.String getLabel​(java.lang.String fullIdElasticSearchField,
                                                IResource resource)
                                         throws PortalException
        Get localized label for the field.
        Parameters:
        fullIdElasticSearchField - documentType elasticsearch field
        resource - resource of strings.
        Returns:
        the localized label.
        Throws:
        PortalException
        Since:
        11.1.0
      • getComparatorOrder

        public static int getComparatorOrder​(java.lang.String fullIdElasticSearchField)
        Create a index integer to helps the sort Comparable for class {link FieldReportCSV}
        Parameters:
        fullIdElasticSearchField - request field code
        Returns:
        a integer to sort field.
        Since:
        11.1.0
      • getComparatorOrder

        public int getComparatorOrder()
        Create a index integer to helps the sort Comparable for class {link FieldReportCSV}
        Returns:
        a integer to sort field.
        Since:
        11.1.0