Class OwnerOptionIdentifier
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.cases.OwnerOptionIdentifier
-
public class OwnerOptionIdentifier extends Object
-
-
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)
This method is forgiving: It accepts also invalid string values.static @NotNull OwnerOptionIdentifier
fromStringValueForgiving(@NotNull String value)
@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
This method is forgiving: It accepts also invalid string values.- Throws:
SchemaException
-
fromStringValueForgiving
@NotNull public static @NotNull OwnerOptionIdentifier fromStringValueForgiving(@NotNull @NotNull String value)
-
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()
-
-