/** * Get the primary attachment if the object has multiple attachments. * <p> * The unique attachment of the object has only one. * * @param source * @return * @throws IOException */ default String getPrimaryAttachment(Object source) throws IOException { return getAttachment(source, null); } }
final String content = iAttachmentsListLoader.getAttachment(controller.getModel(), attachmentName); final String fileName = selectedDirectory + File.separator + attachmentName; final String suffix = com.nexitia.emaginplatform.core.commons.utils.StringUtils.substringBeforeLast(fileName, ".");