Class SubscriptionId

java.lang.Object
com.evolveum.midpoint.repo.common.subscription.SubscriptionId
All Implemented Interfaces:
Serializable

public abstract class SubscriptionId extends Object implements Serializable
Parsed form of the subscription ID string. It is independent of the current system time and/or the system features used (like the database, clustering, and so on). Hence, the subscription can be e.g. expired. Please see SubscriptionState to obtain the "real" validity of this subscription in given time point and system feature set.
See Also:
  • Constructor Details

    • SubscriptionId

      public SubscriptionId()
  • Method Details

    • none

      public static SubscriptionId none()
    • malformed

      public static SubscriptionId malformed()
    • parse

      public static SubscriptionId parse(String stringValue)
    • forTesting

      @TestOnly public static SubscriptionId forTesting(SubscriptionId.Type type, String timeValidityString)
    • isDemo

      public boolean isDemo()
      Is this a 05-style (demo) subscription?
    • isNone

      public boolean isNone()
      Is the subscription information missing?
    • isMalformed

      public boolean isMalformed()
      Is the subscription information malformed (corrupted)?
    • isWellFormed

      public boolean isWellFormed()
      Is the subscription well-formed? Note it may or may not be expired. See also SubscriptionState.isActive().
    • getFirstDayAfter

      @NotNull public @NotNull LocalDate getFirstDayAfter()
      The first day after the declared time validity. E.g., June 1st, 2024 for `0524` subscription.
    • getType

      @NotNull public @NotNull SubscriptionId.Type getType()