Class IssueSubscriptionHelper

java.lang.Object
com.onenetwork.platform.common.issue.IssueSubscriptionHelper

public class IssueSubscriptionHelper
extends java.lang.Object
Utility class for IssueSubscription
  • Constructor Summary

    Constructors 
    Constructor Description
    IssueSubscriptionHelper()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String getStringEnumFilterValue​(IssueSubscriptionFilter filter, java.lang.String enumType, java.lang.String modelvalue)
    A convenience method for the string enumeration filter value.
    static java.util.List<java.lang.String> getStringEnumFilterValues​(java.lang.String enumType, org.json.JSONArray array)
    A convenience method for the multi-select enumeration filter values.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getStringEnumFilterValues

      public static java.util.List<java.lang.String> getStringEnumFilterValues​(java.lang.String enumType, org.json.JSONArray array)
      A convenience method for the multi-select enumeration filter values. It will automatically convert enumeration short value to string and leave string as is
      Parameters:
      enumType - enumeration name, i.e. ZBKS.Genre
      array - enumeration values. This will be either enum short values or string values
    • getStringEnumFilterValue

      public static java.lang.String getStringEnumFilterValue​(IssueSubscriptionFilter filter, java.lang.String enumType, java.lang.String modelvalue)
      A convenience method for the string enumeration filter value.

      • For single-select - returns the model value as is
      • For multi-select -
        • Returns the model value as is if the enum filter values are persisted as string
        • Convert the model value to numeric if the enum filter values are persisted as numeric
      Parameters:
      filter - IssueSubscriptionFilter
      enumType - enumeration name, i.e. ZBKS.Genre
      modelvalue - enum value on model