Package com.veeva.vault.sdk.api.file
Interface FileReferenceReadOperation
public interface FileReferenceReadOperation
A sequence of instructions that can be chained together, building up a
FileReference read operation
which can be executed with execute().-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes theFileReferenceReadOperation.onError(Consumer<FileReferenceReadOperationError> onErrorConsumer) Sets the function called when theFileReferenceReadOperationencounters errors.onSuccess(Consumer<FileReferenceReadOperationResponse> onSuccessConsumer) Sets the function called when theFileReferenceReadOperationsucceeds.
-
Method Details
-
onSuccess
FileReferenceReadOperation onSuccess(Consumer<FileReferenceReadOperationResponse> onSuccessConsumer) Sets the function called when theFileReferenceReadOperationsucceeds.- Parameters:
onSuccessConsumer- the callback to invoke for successful FileReference read operations- Returns:
- FileReferenceReadOperation
-
onError
Sets the function called when theFileReferenceReadOperationencounters errors.- Parameters:
onErrorConsumer- the callback to invoke for failed FileReference read operations- Returns:
- FileReferenceReadOperation
-
execute
void execute()Executes theFileReferenceReadOperation.
-