Package org.codelibs.fess.app.web.api
Class ApiResult.ApiUpdateResponse
java.lang.Object
org.codelibs.fess.app.web.api.ApiResult.ApiResponse
org.codelibs.fess.app.web.api.ApiResult.ApiUpdateResponse
- Enclosing class:
ApiResult
Represents an API response for an update operation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhether the item was created (true) or updated (false).protected StringThe ID of the updated item.Fields inherited from class org.codelibs.fess.app.web.api.ApiResult.ApiResponse
status, version -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.codelibs.fess.app.web.api.ApiResult.ApiResponse
status
-
Field Details
-
id
The ID of the updated item. -
created
protected boolean createdWhether the item was created (true) or updated (false).
-
-
Constructor Details
-
ApiUpdateResponse
public ApiUpdateResponse()Default constructor for ApiUpdateResponse.
-
-
Method Details
-
id
Sets the ID of the updated item.- Parameters:
id- The ID to set.- Returns:
- This ApiUpdateResponse instance.
-
created
Sets whether the item was created or updated.- Parameters:
created- True if created, false if updated.- Returns:
- This ApiUpdateResponse instance.
-
result
Description copied from class:ApiResult.ApiResponseReturns a new ApiResult instance with this ApiResponse.- Overrides:
resultin classApiResult.ApiResponse- Returns:
- A new ApiResult instance.
-