Class StatusJson
java.lang.Object
com.blackberry.workspaces.sdk.api.json.BaseJson
com.blackberry.workspaces.sdk.api.json.StatusJson
- All Implemented Interfaces:
Serializable
public class StatusJson extends BaseJson
A command status
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description StatusJson()
-
Method Summary
Modifier and Type Method Description DocumentStatusForApi
getDocumentState()
Representing status: completed, in progress, error.String
getErrorText()
String with explanatory text in case of error.Integer
getStatusCode()
Integer representation of the status.void
setDocumentState(DocumentStatusForApi documentState)
Representing status: completed, in progress, error.void
setErrorText(String errorText)
String with explanatory text in case of error.void
setStatusCode(Integer statusCode)
Integer representation of the status.Methods inherited from class com.blackberry.workspaces.sdk.api.json.BaseJson
getObjType, setObjType, toString
-
Constructor Details
-
StatusJson
public StatusJson()
-
-
Method Details
-
getErrorText
String with explanatory text in case of error.- Returns:
- String with explanatory text in case of error.
-
setErrorText
String with explanatory text in case of error.- Parameters:
errorText
- String with explanatory text in case of error.
-
getDocumentState
Representing status: completed, in progress, error.- Returns:
- Representing status: completed, in progress, error.
-
setDocumentState
Representing status: completed, in progress, error.- Parameters:
documentState
- Representing status: completed, in progress, error.
-
getStatusCode
Integer representation of the status. Following is the list of possible values: 0 - COMPLETED 1 - CREATED 2 - CONVERTED_ONLY 3 - SEALED_ONLY 10 - UPLOAD_STARTED 11 - UPLOAD_FAILED 20 - CONVERSION_STARTED 21 - CONVERSION_FAILED 22 - CONVERSION_FINISHED 24 - SUBMISSION_STARTED 25 - SUBMISSION_FAILED 30 - SEAL_STARTED 31 - SEALING_FAILED 32 - SEAL_FINISHED 41 - DOCUMENT_ALREADY_SEALED- Returns:
- Integer representation of the status. Following is the list of possible values: 0 - COMPLETED 1 - CREATED 2 - CONVERTED_ONLY 3 - SEALED_ONLY 10 - UPLOAD_STARTED 11 - UPLOAD_FAILED 20 - CONVERSION_STARTED 21 - CONVERSION_FAILED 22 - CONVERSION_FINISHED 24 - SUBMISSION_STARTED 25 - SUBMISSION_FAILED 30 - SEAL_STARTED 31 - SEALING_FAILED 32 - SEAL_FINISHED 41 - DOCUMENT_ALREADY_SEALED
-
setStatusCode
Integer representation of the status. Following is the list of possible values: 0 - COMPLETED 1 - CREATED 2 - CONVERTED_ONLY 3 - SEALED_ONLY 10 - UPLOAD_STARTED 11 - UPLOAD_FAILED 20 - CONVERSION_STARTED 21 - CONVERSION_FAILED 22 - CONVERSION_FINISHED 24 - SUBMISSION_STARTED 25 - SUBMISSION_FAILED 30 - SEAL_STARTED 31 - SEALING_FAILED 32 - SEAL_FINISHED 41 - DOCUMENT_ALREADY_SEALED- Parameters:
statusCode
- Integer representation of the status. Following is the list of possible values: 0 - COMPLETED 1 - CREATED 2 - CONVERTED_ONLY 3 - SEALED_ONLY 10 - UPLOAD_STARTED 11 - UPLOAD_FAILED 20 - CONVERSION_STARTED 21 - CONVERSION_FAILED 22 - CONVERSION_FINISHED 24 - SUBMISSION_STARTED 25 - SUBMISSION_FAILED 30 - SEAL_STARTED 31 - SEALING_FAILED 32 - SEAL_FINISHED 41 - DOCUMENT_ALREADY_SEALED
-