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
Modifier and TypeClassDescriptionstatic enum
Enumeration for the type of subscription. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SubscriptionId
forTesting
(SubscriptionId.Type type, String timeValidityString) @NotNull LocalDate
The first day after the declared time validity.@NotNull SubscriptionId.Type
getType()
boolean
isDemo()
Is this a 05-style (demo) subscription?boolean
Is the subscription information malformed (corrupted)?boolean
isNone()
Is the subscription information missing?boolean
Is the subscription well-formed?static SubscriptionId
static SubscriptionId
none()
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
-