Class SubscriptionId
java.lang.Object
com.evolveum.midpoint.repo.common.subscription.SubscriptionId
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration for the type of subscription. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SubscriptionIdforTesting(SubscriptionId.Type type, String timeValidityString) @NotNull LocalDateThe first day after the declared time validity.@NotNull SubscriptionId.TypegetType()booleanisDemo()Is this a 05-style (demo) subscription?booleanIs the subscription information malformed (corrupted)?booleanisNone()Is the subscription information missing?booleanIs the subscription well-formed? Note it may or may not be expired.static SubscriptionIdstatic SubscriptionIdnone()static SubscriptionId
-
Constructor Details
-
SubscriptionId
public SubscriptionId()
-
-
Method Details
-
none
-
malformed
-
parse
-
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 alsoSubscriptionState.isActive(). -
getFirstDayAfter
The first day after the declared time validity. E.g., June 1st, 2024 for `0524` subscription. -
getType
-