@Override public File asFile() throws UnexpectedIOException { return sobj.asFile(); }
private File tryGetFileFrom(ISObject sobj) { String className = sobj.getClass().getSimpleName(); if (className.contains("FileSObject")) { return sobj.asFile(); } return null; }
private File tryGetFileFrom(ISObject sobj) { String className = sobj.getClass().getSimpleName(); if (className.contains("FileSObject")) { return sobj.asFile(); } return null; }
@Override public File asFile() throws UnexpectedIOException { return buf().asFile(); }
@Override public File asFile() throws UnexpectedIOException { return force().asFile(); }
@Override public File asFile() throws UnexpectedIOException { return force().asFile(); }
@Override public File resolve(File file, String s, ParamValueProvider paramValueProvider) { ActionContext ctx = $.cast(paramValueProvider); ISObject sobj = ctx.upload(s); return null == sobj ? null : sobj.asFile(); } }
@Override public File resolve(File file, String s, ParamValueProvider paramValueProvider) { ActionContext ctx = $.cast(paramValueProvider); ISObject sobj = ctx.upload(s); return null == sobj ? null : sobj.asFile(); } }
attachment.attachFile(sobj.asFile(), contentType, null); attachment.setFileName(fileName); mp.addBodyPart(attachment);
attachment.attachFile(sobj.asFile(), contentType, null); attachment.setFileName(fileName); mp.addBodyPart(attachment);