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 OwnerOptionIdentifierforExistingOrNoOwner(@Nullable String ownerId)static @NotNull OwnerOptionIdentifierforExistingOwner(@NotNull String ownerId)static @NotNull OwnerOptionIdentifierforNoOwner()static @NotNull OwnerOptionIdentifierfromStringValue(@NotNull String value)Converts string value of the option identifier (like `none` or `existing-XXX`) to the internalized form (this class).static @NotNull OwnerOptionIdentifierfromStringValueForgiving(@NotNull String value)AsfromStringValue(String)but more forgiving: It accepts also invalid string values.@Nullable StringgetExistingOwnerId()@NotNull StringgetStringValue()booleanisNewOwner()static OwnerOptionIdentifierof(@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()
-
-