Enum Class WsStemSaveResult.WsStemSaveResultCode
java.lang.Object
java.lang.Enum<WsStemSaveResult.WsStemSaveResultCode>
edu.internet2.middleware.grouper.ws.coresoap.WsStemSaveResult.WsStemSaveResultCode
- All Implemented Interfaces:
Serializable
,Comparable<WsStemSaveResult.WsStemSaveResultCode>
,Constable
- Enclosing class:
- WsStemSaveResult
public static enum WsStemSaveResult.WsStemSaveResultCode
extends Enum<WsStemSaveResult.WsStemSaveResultCode>
result code of a request
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionproblem with savinguser not allowedinvalid query, can only happen if lite querythe save was not foundsuccessful additionsuccessful additionsuccessful additionwas a success but rolled back -
Method Summary
Modifier and TypeMethodDescriptionif there is one result, convert to the results codeboolean
if this is a successful resultnameForVersion
(GrouperVersion clientVersion) get the name label for a certain version of clientReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS_INSERTED
successful addition -
SUCCESS_UPDATED
successful addition -
SUCCESS_NO_CHANGES_NEEDED
successful addition -
INVALID_QUERY
invalid query, can only happen if lite query -
STEM_NOT_FOUND
the save was not found -
EXCEPTION
problem with saving -
TRANSACTION_ROLLED_BACK
was a success but rolled back -
INSUFFICIENT_PRIVILEGES
user not allowed
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
nameForVersion
get the name label for a certain version of client- Parameters:
clientVersion
-- Returns:
-
isSuccess
public boolean isSuccess()if this is a successful result- Returns:
- true if success
-
convertToLiteCode
if there is one result, convert to the results code- Returns:
- result code
-