java.lang.Object
com.riadalabs.jira.plugins.insight.services.progress.model.ProgressId
All Implemented Interfaces:
Serializable

@PublicApi public class ProgressId extends Object implements Serializable
A progress id made up of two concepts:

category: Each "functional area" (Import X, Import Y etc.)

resourceId: The id of the resource we want to track progress for. Could be an object id, object schema key etc.

See Also:
  • Constructor Details

  • Method Details

    • create

      public static ProgressId create(String resourceId, String category)
    • newInstance

      @Deprecated public static ProgressId newInstance(String resourceId, com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory category)
      Deprecated.
    • newInstance

      @Deprecated public static ProgressId newInstance(Integer resourceId, com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory category)
      Deprecated.
    • newAsyncTaskInstance

      public static ProgressId newAsyncTaskInstance()
    • newInstanceFromCacheKey

      public static ProgressId newInstanceFromCacheKey(String cacheKey)
    • getResourceId

      public String getResourceId()
    • getProgressCategory

      @Deprecated public com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory getProgressCategory()
      Deprecated.
      the category as ProgressCategory will throw IllegalStateException if this progress id's category can not be represented as a ProgressCategory
    • getCategory

      public String getCategory()
    • getUUID

      public String getUUID()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toCacheKey

      public String toCacheKey()
    • getCacheKey

      public String getCacheKey()
    • isCacheKeySameCategory

      public boolean isCacheKeySameCategory(String otherCacheKey)
    • toString

      public String toString()
      Overrides:
      toString in class Object