Package com.saperion.ws.wrapper
Enum SaWsMatchKind
- java.lang.Object
-
- java.lang.Enum<SaWsMatchKind>
-
- com.saperion.ws.wrapper.SaWsMatchKind
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SaWsMatchKind>
public enum SaWsMatchKind extends java.lang.Enum<SaWsMatchKind>
The user-rights-match-kinds used by the webservice.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXACT_ALL
matches if exactly all rights are existing.MINIMUM_SUBSET
matches if a minimum subset of rights is existing.ONE_OF
matches if at least one right is existing.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.saperion.util.MatchKind
fromWebService(SaWsMatchKind type)
Converts the SaWsMatchKind enum to an MatchKind enum.static SaWsMatchKind
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SaWsMatchKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONE_OF
public static final SaWsMatchKind ONE_OF
matches if at least one right is existing.
-
EXACT_ALL
public static final SaWsMatchKind EXACT_ALL
matches if exactly all rights are existing.
-
MINIMUM_SUBSET
public static final SaWsMatchKind MINIMUM_SUBSET
matches if a minimum subset of rights is existing.
-
-
Method Detail
-
values
public static SaWsMatchKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SaWsMatchKind c : SaWsMatchKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SaWsMatchKind valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromWebService
public static com.saperion.util.MatchKind fromWebService(SaWsMatchKind type)
Converts the SaWsMatchKind enum to an MatchKind enum.- Parameters:
type
- The SaWsMatchKind enum to match.- Returns:
- The matched MatchKind enum with MatchKind.MKEXACT as default.
-
-