Interface IResolvedAttachmentListProcessor<R,E extends Throwable>
- Type Parameters:
R- Type of the combined result of all attachment items.E- Type of the error that may be thrown when in case of an error.
- All Known Implementing Classes:
StandardErrorAttachmentListProcessor
public interface IResolvedAttachmentListProcessor<R,E extends Throwable>
Handler for processing the results obtained when a list of referenced attachments was resolved, see
IResolvedAttachmentList.collectResult(IResolvedAttachmentListProcessor).- Since:
- 8.1.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionCollector<? super IResolvedAttachmentItem,?, R> voidonAttachmentCountReducedToZeroByFilter(AAttachmentListResolutionError.AttachmentCountReducedToZeroByFilter error) Callback for handling an error of typeEAttachmentItemResolutionError.ATTACHMENT_COUNT_REDUCED_TO_ZERO_BY_FILTER_OPTIONS.voidCallback for handling an error of typeEAttachmentItemResolutionError.ATTACHMENT_QUERY_DOES_NOT_MATCH.voidCallback for handling an error of typeEAttachmentItemResolutionError.CANNOT_PROCESS_ATTACHMENT_ITEM.voidCallback for handling an error of typeEAttachmentItemResolutionError.CANNOT_PROCESS_ATTACHMENT_LIST.voidCallback for handling an error of typeEAttachmentItemResolutionError.DATABASE_ERROR.voidCallback for handling an error of typeEAttachmentItemResolutionError.FILE_SYSTEM_ERROR.voidCallback for handling an error of typeEAttachmentItemResolutionError.NODE_DOES_NOT_EXIST.voidCallback for handling an error of typeEAttachmentItemResolutionError.NODE_DOES_NOT_PROVIDE_ATTACHMENTS.voidCallback for handling an error of typeEAttachmentItemResolutionError.NODE_NOT_EXECUTED.voidCallback when all attachment items were resolved and not a single attachment was found.voidCallback for handling an error of typeEAttachmentItemResolutionError.UPLOAD_FIELD_DOES_NOT_EXIST.voidonUploadFieldDoesNotProvideAttachments(AAttachmentListResolutionError.UploadFieldDoesNotProvideAttachments error) Callback for handling an error of typeEAttachmentItemResolutionError.UPLOAD_FIELD_DOES_NOT_PROVIDE_ATTACHMENTS.
-
Method Details
-
collector
Collector<? super IResolvedAttachmentItem,?, collector()R> - Returns:
- Collector that combines all attachment items into the final result.
-
onAttachmentCountReducedToZeroByFilter
void onAttachmentCountReducedToZeroByFilter(AAttachmentListResolutionError.AttachmentCountReducedToZeroByFilter error) throws E Callback for handling an error of typeEAttachmentItemResolutionError.ATTACHMENT_COUNT_REDUCED_TO_ZERO_BY_FILTER_OPTIONS.- Parameters:
error- The error that occurred.- Throws:
E- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onAttachmentQueryDoesNotMatch
void onAttachmentQueryDoesNotMatch(AAttachmentListResolutionError.AttachmentQueryDoesNotMatch error) throws E Callback for handling an error of typeEAttachmentItemResolutionError.ATTACHMENT_QUERY_DOES_NOT_MATCH.- Parameters:
error- The error that occurred.- Throws:
E- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onCannotProcessAttachmentItem
void onCannotProcessAttachmentItem(AAttachmentListResolutionError.CannotProcessAttachmentItem error) throws E Callback for handling an error of typeEAttachmentItemResolutionError.CANNOT_PROCESS_ATTACHMENT_ITEM.- Parameters:
error- The error that occurred.- Throws:
E- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onCannotProcessAttachmentList
void onCannotProcessAttachmentList(AAttachmentListResolutionError.CannotProcessAttachmentList error) throws E Callback for handling an error of typeEAttachmentItemResolutionError.CANNOT_PROCESS_ATTACHMENT_LIST.- Parameters:
error- The error that occurred.- Throws:
E- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onDatabaseError
Callback for handling an error of typeEAttachmentItemResolutionError.DATABASE_ERROR.- Parameters:
error- The error that occurred.- Throws:
E- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onFileSystemError
Callback for handling an error of typeEAttachmentItemResolutionError.FILE_SYSTEM_ERROR.- Parameters:
error- The error that occurred.- Throws:
E- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onNodeDoesNotExist
Callback for handling an error of typeEAttachmentItemResolutionError.NODE_DOES_NOT_EXIST.- Parameters:
error- The error that occurred.- Throws:
E- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onNodeDoesNotProvideAttachments
void onNodeDoesNotProvideAttachments(AAttachmentListResolutionError.NodeDoesNotProvideAttachments error) throws E Callback for handling an error of typeEAttachmentItemResolutionError.NODE_DOES_NOT_PROVIDE_ATTACHMENTS.- Parameters:
error- The error that occurred.- Throws:
E- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onNodeNotExecuted
Callback for handling an error of typeEAttachmentItemResolutionError.NODE_NOT_EXECUTED.- Parameters:
error- The error that occurred.- Throws:
E- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onResolvedAttachmentListEmpty
Callback when all attachment items were resolved and not a single attachment was found.- Throws:
E- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onUploadFieldDoesNotExist
void onUploadFieldDoesNotExist(AAttachmentListResolutionError.UploadFieldDoesNotExist error) throws E Callback for handling an error of typeEAttachmentItemResolutionError.UPLOAD_FIELD_DOES_NOT_EXIST.- Parameters:
error- The error that occurred.- Throws:
E- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-
onUploadFieldDoesNotProvideAttachments
void onUploadFieldDoesNotProvideAttachments(AAttachmentListResolutionError.UploadFieldDoesNotProvideAttachments error) throws E Callback for handling an error of typeEAttachmentItemResolutionError.UPLOAD_FIELD_DOES_NOT_PROVIDE_ATTACHMENTS.- Parameters:
error- The error that occurred.- Throws:
E- May be thrown when the error cannot be handled otherwise. This exception is propagated.
-