Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class GetAllSelectableLabelsRemoteOperation(
return try {
val status = client.execute(getMethod)
if (status != HttpStatus.SC_OK) {
Log_OC.e(TAG, "Get all selectable labels failed with status code: $status")
return RemoteOperationResult(false, getMethod)
}
val response = ocsJson.decodeFromString<OcsKotlinResponse<EntityLabels>>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class GetAvailableHoldLabelsRemoteOperation(
return try {
val status = client.execute(getMethod)
if (status != HttpStatus.SC_OK) {
Log_OC.e(TAG, "Get available hold labels failed with status code: $status")
return RemoteOperationResult(false, getMethod)
}
val response = ocsJson.decodeFromString<OcsKotlinResponse<List<HoldLabelInfo>>>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class GetAvailableRetentionLabelsRemoteOperation(
return try {
val status = client.execute(getMethod)
if (status != HttpStatus.SC_OK) {
Log_OC.e(TAG, "Get available retention labels failed with status code: $status")
return RemoteOperationResult(false, getMethod)
}
val response = ocsJson.decodeFromString<OcsKotlinResponse<List<RetentionLabelInfo>>>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class GetAvailableSensitivityLabelsRemoteOperation(
return try {
val status = client.execute(getMethod)
if (status != HttpStatus.SC_OK) {
Log_OC.e(TAG, "Get available sensitivity labels failed with status code: $status")
return RemoteOperationResult(false, getMethod)
}
val response = ocsJson.decodeFromString<OcsKotlinResponse<List<SensitivityLabelInfo>>>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class GetEntityLabelsRemoteOperation(
return try {
val status = client.execute(getMethod)
if (status != HttpStatus.SC_OK) {
Log_OC.e(TAG, "Get entity labels failed with status code: $status")
return RemoteOperationResult(false, getMethod)
}
val response = ocsJson.decodeFromString<OcsKotlinResponse<EntityLabels>>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class RemoveLabelRemoteOperation(
return try {
val status = client.execute(deleteMethod)
if (status != HttpStatus.SC_OK) {
Log_OC.e(TAG, "Remove label from entity failed with status code: $status")
return RemoteOperationResult(false, deleteMethod)
}
val response = ocsJson.decodeFromString<OcsKotlinResponse<GovernanceLabelResponse>>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class SetLabelRemoteOperation(
return try {
val status = client.execute(postMethod)
if (status != HttpStatus.SC_OK) {
Log_OC.e(TAG, "Apply label to entity failed with status code: $status")
return RemoteOperationResult(false, postMethod)
}
val response = ocsJson.decodeFromString<OcsKotlinResponse<GovernanceLabelResponse>>(
Expand Down
Loading