Class WsResultMeta
java.lang.Object
edu.internet2.middleware.grouper.ws.coresoap.WsResultMeta
result metadata (if success, result code, etc) for one result
(each ws call can have one or many result metadatas)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendResultMessage
(String errorMessage) append error message to list of error messagesvoid
appendResultMessageError
(String error) append result message error if configured to send errors to clientvoid
append result stack if configured to send stack to client.void
assignHttpStatusCode
(int statusCode1) status code for http lite / rest .void
assignResultCode
(WsResultCode wsResultCode1) set result code which includes the success and http status codevoid
assignResultCode
(WsResultCode wsResultCode1, GrouperVersion clientVersion) set result code which includes the success and http status codevoid
assignResultCode
(String resultCode1) code of the result for this subject SUCCESS: means everything ok SUBJECT_NOT_FOUND: cant find the subject SUBJECT_DUPLICATE: found multiple subjectsvoid
assignSuccess
(String success1) T or F as to whether it was a successful assignmentvoid
copyFields
(WsResultMeta wsResultMeta) copy fields from another result meta.WsParam[]
code of the result for this subject SUCCESS: means everything ok SUBJECT_NOT_FOUND: cant find the subject SUBJECT_DUPLICATE: found multiple subjectsreserved for future purposeerror message if there is an errorT or F as to whether it was a successful assignmentint
status code for http lite / rest .void
void
setResultCode
(String resultCode1) void
setResultCode2
(String resultCode1) void
setResultMessage
(String errorMessage) error message if there is an errorvoid
setSuccess
(String theSuccess) T or F as to whether it was a successful assignmenttoString()
make sure this is an explicit toString
-
Constructor Details
-
WsResultMeta
public WsResultMeta()
-
-
Method Details
-
toString
make sure this is an explicit toString -
copyFields
copy fields from another result meta. will append warnings and errors- Parameters:
wsResultMeta
-
-
appendResultMessageError
append result stack if configured to send stack to client. or just send exception message if configured. or nothing- Parameters:
error
-
-
appendResultMessageError
append result message error if configured to send errors to client- Parameters:
error
-
-
appendResultMessage
append error message to list of error messages- Parameters:
errorMessage
-
-
getResultCode
code of the result for this subject SUCCESS: means everything ok SUBJECT_NOT_FOUND: cant find the subject SUBJECT_DUPLICATE: found multiple subjects
- Returns:
- the resultCode
-
getResultCode2
reserved for future purpose
- Returns:
- the resultCode
-
getResultMessage
error message if there is an error- Returns:
- the errorMessage
-
getSuccess
T or F as to whether it was a successful assignment- Returns:
- the success
-
setResultCode
- Parameters:
resultCode1
- the resultCode to set
-
setResultCode2
- Parameters:
resultCode1
- the resultCode2 to set
-
setSuccess
T or F as to whether it was a successful assignment- Parameters:
theSuccess
- T | F
-
assignResultCode
code of the result for this subject SUCCESS: means everything ok SUBJECT_NOT_FOUND: cant find the subject SUBJECT_DUPLICATE: found multiple subjects
- Parameters:
resultCode1
- the resultCode to set
-
assignResultCode
set result code which includes the success and http status code- Parameters:
wsResultCode1
- beangrouperWsVersion
-
-
assignResultCode
set result code which includes the success and http status code- Parameters:
wsResultCode1
- beanclientVersion
-
-
setResultMessage
error message if there is an error- Parameters:
errorMessage
- the errorMessage to set
-
assignSuccess
T or F as to whether it was a successful assignment- Parameters:
success1
- the success to set
-
retrieveHttpStatusCode
public int retrieveHttpStatusCode()status code for http lite / rest . not a getter so isnt in soap/lite response- Returns:
- the status code e.g. 200, if 500, then not initted
-
assignHttpStatusCode
public void assignHttpStatusCode(int statusCode1) status code for http lite / rest . not a setter so isnt in soap/lite response- Parameters:
statusCode1
- the status code e.g. 200, if 500, then not initted
-
getParams
- Returns:
- the params
-
setParams
- Parameters:
params1
- the params to set
-