Class OwnerOptionIdentifier
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.cases.OwnerOptionIdentifier
-
public class OwnerOptionIdentifier extends Object
Internalized (parsed) form of correlation option identifier (like `none` or `existing-XXX`).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OwnerOptionIdentifier
forExistingOrNoOwner(@Nullable String ownerId)
static @NotNull OwnerOptionIdentifier
forExistingOwner(@NotNull String ownerId)
static @NotNull OwnerOptionIdentifier
forNoOwner()
static @NotNull OwnerOptionIdentifier
fromStringValue(@NotNull String value)
Converts string value of the option identifier (like `none` or `existing-XXX`) to the internalized form (this class).static @NotNull OwnerOptionIdentifier
fromStringValueForgiving(@NotNull String value)
AsfromStringValue(String)
but more forgiving: It accepts also invalid string values.@Nullable String
getExistingOwnerId()
@NotNull String
getStringValue()
boolean
isNewOwner()
static OwnerOptionIdentifier
of(@NotNull ResourceObjectOwnerOptionType potentialOwner)
-
-
-
Method Detail
-
fromStringValue
@NotNull public static @NotNull OwnerOptionIdentifier fromStringValue(@NotNull @NotNull String value) throws SchemaException
Converts string value of the option identifier (like `none` or `existing-XXX`) to the internalized form (this class).- Throws:
SchemaException
-
fromStringValueForgiving
@NotNull public static @NotNull OwnerOptionIdentifier fromStringValueForgiving(@NotNull @NotNull String value)
AsfromStringValue(String)
but more forgiving: It accepts also invalid string values.
-
forNoOwner
@NotNull public static @NotNull OwnerOptionIdentifier forNoOwner()
-
forExistingOwner
@NotNull public static @NotNull OwnerOptionIdentifier forExistingOwner(@NotNull @NotNull String ownerId)
-
of
public static OwnerOptionIdentifier of(@NotNull @NotNull ResourceObjectOwnerOptionType potentialOwner) throws SchemaException
- Throws:
SchemaException
-
forExistingOrNoOwner
public static OwnerOptionIdentifier forExistingOrNoOwner(@Nullable @Nullable String ownerId)
-
getStringValue
@NotNull public @NotNull String getStringValue()
-
isNewOwner
public boolean isNewOwner()
-
getExistingOwnerId
@Nullable public @Nullable String getExistingOwnerId()
-
-