17 October 2025
By default, the platform uses the MessageAttachmentsExtractor class to retrieve message attachments.
It can be configured by a custom extractor using the following system property:
tvc.collaboration.discussion.messageAttachmentsExtractor
The custom extractor should extend the AbstractMessageAttachmentsExtractor class and implement the required methods.
Example implementation:
public class CustomMessageAttachmentsExtractor extends AbstractMessageAttachmentsExtractor {
public CustomMessageAttachmentsExtractor(Statement base, ReadContext ctx) {
super(base, ctx);
}
@Override
public boolean hasAccess(SelectedData selectedData) {
// Custom logic to determine access permissions
return true;
}
@Override
public List<Statement> getStatementList() {
// Custom logic to pass additional statements
return Collections.emptyList();
}
}